Page 1 of 1

Program device with hex file using pickit3 and MPLAB X

PostPosted: Fri Jun 27, 2014 6:23 am
by dbhughe
Hi all

Is there an easy way to program a device using only a hex file on MPLAB X, if not there should be.

Thanks

Re: Program device with hex file using pickit3 and MPLAB X

PostPosted: Fri Jun 27, 2014 6:55 am
by jtemples
I've not tried it, but it has the same File...Import...Hex file feature as MPLAB 8. You have to go through creating a "prebuilt" project, so there are a few extra clicks.

Re: Program device with hex file using pickit3 and MPLAB X

PostPosted: Fri Jun 27, 2014 11:48 am
by ric
I assume, as with MPLAB 8, that you need to select your device first, then import the hex file.

Re: Program device with hex file using pickit3 and MPLAB X

PostPosted: Fri Jun 27, 2014 2:34 pm
by JoshuaHartwig
Otherwise, check out the MPLab X IPE. If programming is the only thing you need to do, it's much lighter weight. It does have its quirks though, like occasionally being unable to set your programmer to power the target on first try (simply disconnect, toggle the power setting off then on, then reconnect and it should work). I find the IPE useful for programming batches of engineering samples.

Re: Program device with hex file using pickit3 and MPLAB X

PostPosted: Fri Jun 27, 2014 2:48 pm
by Tom Maier
A few years ago I took an old program assembled with the Parallax assembler and ran the hex code through the mplabx disassembler. After making sure the disassembled code looked proper, I was able to end up with a microchip assembler source file and a new hex file to blow to the target chip using mplabx and pickit 3. I don't remember all the clicks I used to do that, but everything in mplabx starts with creating a progect, so that's a hint.