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.
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
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
Hi Ramesh,
There is address information in Hex file,for example the below hex file, the highlight part is address.
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