LPC802 | flashing via command line using OpenOCD 0.11v

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC802 | flashing via command line using OpenOCD 0.11v

1,320 Views
shai_b
Senior Contributor II

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

Labels (1)
Tags (1)
0 Kudos
Reply
5 Replies

1,306 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

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 

0 Kudos
Reply

1,302 Views
shai_b
Senior Contributor II

@ZhangJennie ,

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 

Tags (1)
0 Kudos
Reply

1,290 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi shai_b 

we can find sample in FlashMagic manual

ZhangJennie_0-1666331520672.png

 

ZhangJennie_1-1666331555265.png

 

Hope this helps,

Jun Zhang

 

1,256 Views
shai_b
Senior Contributor II

@ZhangJennie ,

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

0 Kudos
Reply

1,246 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply