LPC54608 Flash magic error

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

LPC54608 Flash magic error

1,462 Views
TEMCEFF
Contributor IV

Flash magic exe is not working for LPC54608 showing error attached below

0 Kudos
5 Replies

1,096 Views
esacademysuppor
Contributor II

This is fixed in version 11.01. Andy

0 Kudos

1,096 Views
victorjimenez
NXP TechSupport
NXP TechSupport

Hi Sathwik,

LPC parts use a word in the vector table of the processor to store a checksum that is examined by the bootloader to identify a valid image, Keil doesn't add this checksum automatically but flash magic will automatically set the checksum word for you when you use it to program a hex file to an LPC device. That is why you have a difference between the hex you gave to flashmagic and what is programmed.

When you convert from ELF to binary file, you need to insert the checksum at offset 0x1C of your image. In Keil tool do this it's through a PC command line tool ELFDWT:

µVision User's Guide: Signature Creator for NXP Cortex-M Devices 

Hope it helps!

Victor Jimenez.

/external-link.jspa?url=http%3A%2F%2Fwww.keil.com%2Fsupport%2Fman%2Fdocs%2Fuv4%2Fuv4_ut_elfdwt.htm

0 Kudos

1,096 Views
esacademysuppor
Contributor II

Hi Sathwik,

Which version are you using? If it's not the latest version then please try updating. If that doesn't help please generate a debug file and send to support at esacademy dot com so we can see what is going on at a lower level. Instructions are here:

  http://www.flashmagictool.com/debugfile.html

Andy

0 Kudos

1,096 Views
TEMCEFF
Contributor IV

Hello Victor ,

 thanks for reply

 iam using Keil 5 and we are using SDk 2.3 files only

0 Kudos

1,096 Views
victorjimenez
NXP TechSupport
NXP TechSupport

Hello Sathwik,

Which program are you using to try this? I recommend you to try this with an example of the SDK. I just try the rit_example of the SDK with Flash magic and everything worked well. 

How are you generating the .hex file? In the folder of your project in the project explorer window of MCUXpresso you can select DEBUG then right click on the .axf file > binaries utilities > create hex.

Hope it helps!

Victor.

0 Kudos