LPC11E11 debugging problem with LPCxpresso 6

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

LPC11E11 debugging problem with LPCxpresso 6

764 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Donatas on Sat Dec 28 04:43:47 MST 2013
Anyone tried debugging LPC11E11 device using LPCxresso? I have some problems related to Flash driver. By default LPC11_12_13_8K_4K.cfx should be used, but it does not exist in lpcxpresso_6.1.2_177/lpcxpresso/bin/Flash folder. If I use LPC11_12_13_8K_2K.cfx file, debugging always ends in void HardFault_Handler(void) subroutine. Not sure if it happens because of incorrect initialization of MCU clocks, etc, or because of flash driver. Did you have any problems like this before?
0 项奖励
回复
2 回复数

752 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Donatas on Sun Dec 29 03:41:26 MST 2013
Thanks for the answer. The reason was not the flash driver, as you said. The problem was incorrect include in one of the project files. I have included "lpc11xx.h" instead of "lpc11exx.h".
0 项奖励
回复

752 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Sat Dec 28 16:08:40 MST 2013
Sorry for not supplying that flash driver (we will fix that in the next release). However, the alternate you suggest does work correctly.

If you are getting a hard fault, this is most likely a problem in your code. I suggest you start debugging from ResetISR and step through the code to find the cause of the fault.
0 项奖励
回复