In-Application Programming lpc1788

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

In-Application Programming lpc1788

1,198 Views
rameshlalji9595
Contributor II

Hello Everyone,

I'm working on IAP using USB for lpc1788. 

My task is to write Hex file generated by keil into internal flash of lpc1788 from USB.

So my question is:

1) At which location of flash memory should I write Hex file ? How many bytes to write ?

There are start address and end address of flash memory must be define in code.

How to decide these ?

<code>

/** The area will be erase and program */
#define FLASH_PROG_AREA_START 0x8000
#define FLASH_PROG_AREA_SIZE 0x1000

</code>

2) Is these above address information taken from Hex file ?

eg. : :10 0010 00 CD010000CF010000D101000000000000 70        Address : 0x0010 flash address ?

3) Is it possible to write some portion of code mean to say want to store some code in my flash permanently like for USB so it can recognise USB any time ? Just update the other code using Hex file stored in USB.

Share example that would be grateful.

Thanks in Advance

Labels (1)
0 Kudos
Reply
1 Reply

1,143 Views
converse
Senior Contributor V

A quick google search will find you source code for a Hex file decoder. A look in LPCOpen for LPC177x/8x will provide you with source code for IAP programming. I'll leave you to do your job and work out how to stitch the two together!

0 Kudos
Reply