LPC1857-NVIC_SystemReset() causes processor hanging

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

LPC1857-NVIC_SystemReset() causes processor hanging

491件の閲覧回数
mrl20g
Contributor I

Hi,

I'm using LPC1857 with Keil RTX and observe that randomly a rare hard fault is generated. To overcome the issue, I'm planning on performing a system reset in the hard fault handler. But when NVIC_SystemReset() is used, I can observe that the processor gets stuck after system init and reaching the clock setting code:

LPC_CGU->XTAL_OSC_CTRL = (0 << 0) | /* Enable oscillator-pad */
(0 << 1) | /* Operation with crystal connected */
(0 << 2) ; /* Low-frequency mode

I can step through in debug and can see the same code is called when a reset is issued from the debug window button. During this, the execution passes this section successfully and reaches main. If the NVIC_SystemReset() is called, the debugger loses connection on reaching the above section. Anyone can guide me on how to resolve this? 

0 件の賞賛
返信
1 返信

473件の閲覧回数
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, my name is Pavel, and I will be supporting our case, I will review your case, when I have more information, I will contact you.

I will follow one case, only I will close this.

Best regards,
Pavel

0 件の賞賛
返信