LPC11E67 SWD: Directly into Hardfault Handler from Debug

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC11E67 SWD: Directly into Hardfault Handler from Debug

ソリューションへジャンプ
960件の閲覧回数
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 解決策
883件の閲覧回数
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 返答(返信)
884件の閲覧回数
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 件の賞賛
返信
883件の閲覧回数
andrew_murfin
Contributor II

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

0 件の賞賛
返信