Dear Team,
I am using MCU-Link (non-Pro version) with the OpenOCD tool in order to flash #LPC802 via the command line, please see below how I've executed the command
openocd -c "adapter driver cmsis-dap" -f "target\lpc8xx.cfg" -c "program myFW.hex verify reset exit"
but I got an error while trying to flash using the above command, I assume I did not pick the correct target configuration...
Could you please advise what I am doing wrong?
BTW, while using the MCUxpresso I was able to flash and debug my device.
Waiting for your kind feedback, Many thanks.
Regards,
Shai
HI shai_b,
OpenOCD is not our recommended programming tool:
https://community.nxp.com/t5/LPC-Microcontrollers/OpenOCD-support-for-LPC55S69-EVK/td-p/1282693
To program LPC802, we suggest FlashMagic. It supports command line mode
https://www.flashmagictool.com/
Hope this helps,
Jun Zhang
Thanks for your inputs, I've downloaded the FlashMagic and it looks like the command line interface is based on dfu-util, but I did not find any Target Configuration (to load) that suits LPC802.
Could you please send me an example of how to use the command line to flash LPC802 MCU devices with the FlashMagic toolset
Waiting for your kind feedback, Thanks a lot.
Regards,
Shai
Hi shai_b
we can find sample in FlashMagic manual
Hope this helps,
Jun Zhang
Thank you for your input, I've managed to flash via the command line but could you please advise how I can use the "PATCH before programming" feature with the command line, I would like to use CRP and I need to overwrite 4 bytes into a specific address before I flash the device?
Waiting for your kind feedback, Thanks in advance.
Regards,
Shai
shai_b
FlashMagic is produced and supported by Embedded Systems Academy.
For its specific usage, please contact
https://forum.flashmagictool.com/
or
https://www.flashmagictool.com/support.html
Thanks,
Jun Zhang