Hex file for IAP in lpc1788

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

Hex file for IAP in lpc1788

1,322 Views
rameshlalji9595
Contributor II

Hello Everyone

I'm looking for how to read hex file from USB (USB Interfaced successfully) and decode the data in RAM for write into internal flash of lpc1788 for In-Application Programming. In which format data should be read and write into flash ? If anyone has sample code that would be grateful. 

Thanks in advance.

Labels (1)
3 Replies

1,236 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello  Ramesh Lalji ,

You can google HEX file format, know meaning of each part, then you will know which part should write into flash.

 GENERAL: INTEL HEX FILE FORMAT 

And it seems you are working on a second bootloader, there are some application, you can refer to:

https://www.nxp.com/docs/en/application-note/AN10866.zip  

https://www.nxp.com/docs/en/application-note/AN11628.zip  

Regards,

Alice

1,236 Views
rameshlalji9595
Contributor II

Hello Alice_Yang 
Thanks for sharing information. Its really helpful for me. 
But I'm actually working on code (Not like bootloader) that update firmware from USB when needed. 
And I wrote hex file to flash but I couldn't jump to my loaded code. Ir repeat code that existing in it.

Does Hex file starting address should be same as flash starting address? 

Thanks in advance 

0 Kudos

1,236 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi Ramesh,

There is address information in Hex file,for example the below hex file, the highlight part is address.

pastedImage_1.png

You should refer to your hex file to flash.

BTW, you use USB update firmware, which memory you put the USB related code ?

Regards

Alice

0 Kudos