Programm on-chip flash memory with IAP-Functions

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

Programm on-chip flash memory with IAP-Functions

358 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by wama on Wed Oct 02 01:28:20 MST 2013
Hello everyone,

I try to get started the IAP-Function for programming and erasing the on-chip flash memory.

In my project I've already implemented the functions from AN10995.

On the LPC1115F/303 all the routines are working. I have no problems erasing and programming one or more flash sectors.

However on the LPC1112FHI33/202 the "CopyRAMToFlash" routine doesn't work. The return value is "IAP_STA_SRC_ADDR_NOT_MAPPED".

Does anybody know the reason for this problem?

The LPC1112 which I am using belongs to another serie. Maybe there is something missing. But I didn't find any informations.

Thank you.

Labels (1)
0 Kudos
2 Replies

309 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by wama on Wed Oct 02 07:50:56 MST 2013
Thanks for your answer.

Now it is working. I changed my source variable from local to global.

But I still don't understand the reason why it is working on the LPC1115 device with a local source variable.

Regards
0 Kudos

309 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by usb10185 on Wed Oct 02 06:30:57 MST 2013
Hi,
Sounds like the memory you are using is not available on the LPC1112 device.
Check the memory map between the devices and ensure the source and destination addresses exist as valid memory locations.
Ken
0 Kudos