Use infopage on LPC1227

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

Use infopage on LPC1227

728 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by hjetschko on Thu Jul 25 16:37:42 MST 2013
Hi

I am trying to store settings to the infopage flash area in the LPC1227. I tested the example project: IAP_InfoPage and it works perfectly. I copied IAP.c and IAP.h from IAP_InfoPage project to my project and then try to use the functions in there. When I call eraseInfoPage(0,0); the program stops and the error message displayed is: No source available for "0x1fff0aaa". From the IAP_InfoPage project __abstract.txt file, the most important change I needed to make for the IAP routines to work is to change the Stack Offset to 256 in Linker settings but it still does not work. I looked through all the other settings and could not see any differences. Thank you for the help.
0 Kudos
Reply
1 Reply

689 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by hjetschko on Thu Aug 01 15:41:36 MST 2013
Found the problem. I use the SysTick timer in my firmware. When I comment out the init function for the timer then my flash writing started working which told me that it is most likely the interrupt that is interfering with the flash writing. I call __disable_irq(); before writing to the flash and then __enable_irq(); after the flash writing routines and this solved my problems. The reason I did not do this in the past is because the flash writing in the LPC1114 works without disabling the interrupts.
0 Kudos
Reply