Use infopage on LPC1227

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

Use infopage on LPC1227

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

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