Skip to main content

Show Posts

This section allows you to view all Show Posts made by this member. Note that you can only see Show Posts made in areas you currently have access to.

Messages - cronco

1
Project logs / Re: Free PCB build - UBW32
Hi AndThen,

Thanks for your answer. I have modified PK2DeviceFile.dat file using the device file editor and advanced a bit in the debug.
I now have:
Quote
./pk2cmd -P  -W
Auto-Detect: Found part PIC32MX534F064H.
But I still have an error if I try to check if memory is blank:
Quote
./pk2cmd -C -PPIC32MX534F064H  -I -W
Downloading Programming Executive...
...FAILED. ReadPEVersion:0. wanted:265
 memory is NOT blank.

I have added a bit of debug to the pk2cmd source files (I use pk2cmd on a Linux computer but I have the same error on a windows computer with the standard microchip tool) to try to see where the error comes from.

So to be able to read RAM or flash, there are lots of steps well described in PIC32MX flash programming specification (http://http://ww1.microchip.com/downloads/en/DeviceDoc/61145J.pdf) and pk2cmd follows these steps. My error is a bus error (timeout). The PICkit returns a status indicating that communication between PICkit and target board has failed.

My error occurs in step 7. We have just copied a small executable to target RAM (pe_loader) and try to execute it to load another program to RAM. In PICKit2cmd source code, error is detected in  function CPICkitFunctions::DownloadPE by the call to BusErrorCheck function done after step 7-A. I am quite stucked here. I have only the machine code of the PE_loader, I can't read it and I am quite sure there is no error in the pkcmd2 code (this code is used to read/write flash for all PIC32 devices).

My guess was that RAM mapping on my board was different from PIC32MX320F064H RAM mapping but it looks OK.

Any idea is welcomed,

Christophe
2
Project logs / Re: Free PCB build - UBW32
Hi,

I have a Mini32 board from Mikroelektronika. The microcontroller inside is a PIC32MX534F064H.
I also have a PICkit2 and I would like to program my Mini32 board using it.
I know that my CPU is not officially supported by PICkit2 but I just want to program flash, I am not interested in the debug part.
I have read this is possible, by modifying the.dat file. I just have no idea how to modify this file and what should I modify inside it.
I use the Linux version of pk2cmd as application but I also have a windows computer with PICkit software installed.
From now on, what I have is:
1) Answer to ./pk2cmd -P  -A3.3 -W (get device id)
Device id is not found (this is normal) but I have something other than 0 in usb_read_array for PIC32 family: 0x4 0x53 0x0 0x40 0x4
That means that found device id is 0x14400053. Quite strange because device mask for this family is 0xff000.
2) Answer to ./pk2cmd -C -PPIC32MX320F064H (check blank)
Downloading Programming Executive...
...FAILED. ReadPEVersion:0. wanted:265
 memory is NOT blank.
The error comes from function BusErrorCheck. Status value is 0x40a. I assume this means that command did not complete but I am just guessing.

So my questions are: what do I need to twist in PK2DeviceFile.dat? Can PIC32MX534F064H be a member of existing PIC32 family or is it a totally new family? Should I start from data for PIC32MX320F064H or is there better board/part to start from?

Hoping my questions are clear enough,
Christophe

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01292279704session_write_close ( )...(null):0
20.01332411280ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01332412056Database_MySQL->query( ).../DatabaseHandler.php:119
40.05532550776Database_MySQL->error( ).../Db-mysql.class.php:273