Hello,
Ok after a bit of investigation it seems using the PICkit 3 with MPLABX or the PICkit3 v3.01 software causes the firmware on the PICkit to be upgraded to the latest release which unfortunately does not seem to work with the PK3CMD tool provided in MPLAB v8.
Error reported:
Code: Select all
HEX file creation successful!
Launching the programmer...
C:\Program Files (x86)\Flowcode 6\Tools\PICkit3\PK3CMD.exe "C:\Program Files (x86)\Flowcode 6\Tools\PICkit3\" -P24FJ64GB106 -Fv0.1.hex -E -M -L -V3.0
C:\Program Files (x86)\Flowcode 6\Tools\PICkit3\PK3CMD.exe reported error code -1073741515
Using the PICkit 3 v3.01 software to revert the firmware back to MPLAB mode did not help to solve the issue. At a push this application could be used to load the firmware but it is not as neat as Flowcode doing it all for you upon the compile to chip click. Also if your using this software on a modern copy of Windows then it is likely that you will be unable to quit the application correctly (that's what happens for me anyway). Good old task manager comes in handy to kill the task.
MPLAB 8 is still available to download from Microchip which is good news as this still contains the firmware we need to allow the PICkit 3 to run as intended with the PK3CMD tool used by Flowcode.
http://www.microchip.com/stellent/idcpl ... e=en019469
Open MPLAB 8 IDE and go to Programmer -> Select Programmer -> PICkit3.
If you get this then you need to go back to the PICkit 3.01 software and use the Tools -> Revert to MPLAB mode.
PICKit 3.01 Standalone software download from Microchip:
http://ww1.microchip.com/downloads/en/D ... 0v3.10.zip
Code: Select all
PICkit 3 detected
Connecting to PICkit 3...
PK3Err0033: 4 bytes expected, 0 bytes received
Failed to properly connect to PICkit 3
Then use the Programmer -> Reconnect menu item in MPLAB to refresh.
If you get this then it means your PICkit 3 has the new firmware loaded.
Code: Select all
PICkit 3 detected
Connecting to PICkit 3...
PK3Err0038: Failed to initialize PICkit 3.
Failed to properly connect to PICkit 3
It is wise to unplug your PICkit from the USB now leaving a few seconds before reinserting.
Use the Programmer -> Settings menu item and then the configuration tab, then click the manual download button and select the .jam file from this directory: C:\Program Files (x86)\Microchip\MPLAB IDE\PICkit 3
Hopefully the PICkit should now work correctly with PK3CMD.exe.
For me there seems to be an issue with the -L parameter so it looks like the latest PK3CMD may have been copied from the PIC not the PIC16 folder (I will look into this and get it solved for the next release).
To solve this copy the PK3CMD.exe from here : C:\Program Files (x86)\Microchip\MPLAB IDE\Programmer Utilities\PICkit3
to here : C:\Program Files (x86)\Flowcode 6\tools\PICkit3
Success!
Code: Select all
Launching the programmer...
C:\Program Files (x86)\Flowcode 6\Tools\PICkit3\PK3CMD.exe C:\Program Files (x86)\Flowcode 6\Tools\PICkit3\ -P24FJ64GB106 -Fv0.1.hex -E -M -L -V3.0
Connecting...
PICkit 3 detected
Connecting to PICkit 3...
Firmware Suite Version...... 01.28.90
Firmware type......................dsPIC33F/24F/24H
PICkit 3 Connected. ....
Device ID Revision = 00000004
Erasing ...
Erase device complete ......
Programming Device ...
Programming/Verify complete .
FINISHED
Hopefully MIcrochip are working on a new version of the PK3CMD tool to be shipped with MPLABX so in the near future this will no longer be an issue.
Let me know how your getting on.