LPC11E67 SWD: Directly into Hardfault Handler from Debug

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

LPC11E67 SWD: Directly into Hardfault Handler from Debug

跳至解决方案
719 次查看
andrew_murfin
Contributor II

I am attempting to debug an offboard LPC11E67JBD48 from an OM13058 board.  The SWD connections are made exactly following the schematics of page 75 of the LPC11E6X datasheet.  Photo below:

Screenshot from 2019-02-28 15-26-16.png

When attempting to load ANY code at all from the LPCOpen 11U68 API, the debugger runs, appears to show successful connection with the MCU, appears to successfully write to flash, then goes directly into a Hardfault Handler.  Please see the debug messages console results below:

Screenshot from 2019-02-28 15-32-59.png

Any help is appreciated!

-Andrew Murfin

标签 (1)
0 项奖励
1 解答
642 次查看
andrew_murfin
Contributor II

Solved!  

I removed the 25MHz external oscillator on my board, and adjusted the Board_SetupClocking() function (in board_sysinit.c) to call the Chip_SetupIrcClocking(); function, thereby running clocking from the internal oscillator.  I will now be researching how to utilize an external oscillator, if necessary.  

在原帖中查看解决方案

0 项奖励
2 回复数
643 次查看
andrew_murfin
Contributor II

Solved!  

I removed the 25MHz external oscillator on my board, and adjusted the Board_SetupClocking() function (in board_sysinit.c) to call the Chip_SetupIrcClocking(); function, thereby running clocking from the internal oscillator.  I will now be researching how to utilize an external oscillator, if necessary.  

0 项奖励
642 次查看
andrew_murfin
Contributor II

I should note I am using 10k resistors for the pullup and pulldown.

0 项奖励