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?
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