internal flash write during program execution in LPC1114

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

internal flash write during program execution in LPC1114

707 Views
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 Kudos
Reply
2 Replies

695 Views
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 Kudos
Reply

695 Views
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 Kudos
Reply