In-Application Programming lpc1788

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

In-Application Programming lpc1788

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

标签 (1)
0 项奖励
回复
1 回复

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