internal flash write during program execution in LPC1114

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

internal flash write during program execution in LPC1114

721 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by unnati on Fri Jun 04 06:24:29 MST 2010
hi,

i m looking for an example code to write data generated during program execution into the internal flash.
0 项奖励
回复
2 回复数

709 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by smarly on Tue Jun 08 02:32:46 MST 2010
Hi,
I am also trying to acces IAP commands, without success (LPC1114).
If I try to reinvoke ISP doing the followings, it just hangs:

#define IAP_LOCATION 0x1fff1ff1
unsigned long command[5];
unsigned long result[4];
void (*iap_entry)(unsigned long *, unsigned long *) = (void *)IAP_LOCATION;

void ReinvokeISP(void)
{
    command[0]=57;
    iap_entry (command, result);
}
Am I doing something wrong ?
Thanks for your help.
0 项奖励
回复

709 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Sat Jun 05 07:31:58 MST 2010
I suggest you start by reading the chapter "LPC111x Flash memory programming firmware" in the LPC11xx User Manual available from the NXP website.

The following thread also contains a discussion on this issue...

http://knowledgebase.nxp.com/showthread.php?t=158

The USB secondary bootloader example for the RDB1768 (included in your LPCXpresso install's examples subdirectory) provides code which might be useful to look at too, though this is for the LPC17xx rather than the LPC11xx.

Regards,
CodeRedSupport
0 项奖励
回复