LPC1549 USB IAP

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

LPC1549 USB IAP

884 Views
daniele2
Contributor II

Hello,

I don't have much experience with microcontrollers.

I use MCUXpresso IDE v10.3.0

I developed my custom PCB with LPC1549 and I would like to program it by USB IAP.

If I use LPC link2 to download my code in the micro is always goes well.

I set correctly ISP0/1 and I see the directory CRP DISABLED with firmware.bin insight but if I replace this file with my .bit file the code  doesn't work.

I see il the UM10736; section 34.6.1 :

Usage note
When programming flash images via Flash Magic or Serial Wire Debugger (SWD), the
user code valid signature is automatically inserted by the programming utility. When using
USB ISP, the user code valid signature must be either part of the vector table, or the axf or
binary file must be post-processed to insert the checksum.

How can I put the user code valid signature in the vector table or how can I do the postprocessor for the binary file?

Does anyone have an example that can help me ?

Thanks in advance

Daniele

Labels (2)
3 Replies

800 Views
daniele2
Contributor II

Hi,

thanks for the answer.

In my project I have the default settings for post-build steps:

arm-none-eabi-size "${BuildArtifactFileName}"
# arm-none-eabi-objcopy -v -O binary "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin"
# checksum -p ${TargetChip} -d "${BuildArtifactFileBaseName}.bin"

The UM10736 said that I need to only postprocessed the file to add checksum; so I need only to uncomment the thirth line, is it right? Do I need to leave the first line (arm-none-eabi-size) ?

Thanks again

Daniele

0 Kudos

800 Views
daniele2
Contributor II

OK. I done it; now it's working.

Thanks

0 Kudos

800 Views
converse
Senior Contributor V

Read the MCUXpresso user guide - search for post-build steps.