Hex file for IAP in lpc1788

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Hex file for IAP in lpc1788

1,764 次查看
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.

标签 (1)
3 回复数

1,678 次查看
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,678 次查看
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 项奖励
回复

1,678 次查看
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 项奖励
回复