Hi,
I am using nrf52840 and nrf SDK 16.0. Our board is getting reset sometimes and the reset reason is CPU lock-up detected.
why and when does board reset from CPU lock-up? How do we fix this?
Thank you,
shreya
Hi,
I am using nrf52840 and nrf SDK 16.0. Our board is getting reset sometimes and the reset reason is CPU lock-up detected.
why and when does board reset from CPU lock-up? How do we fix this?
Thank you,
shreya
Hi,
This is often a result of a hardfault inside a hardfault,
Have you checked your log output and see if it indicates any hardfault?
regards
Jared
Hi Jared,
I have caused hard fault condition in our device by performing (1/0) and we are getting reset reason as 4, i.e. soft reset.
Actually, we don't have the debug logs. we have the deployed our device. and it is resetting sometimes. The reset reason is 8 i.e. reset due to CPU lockup.
can you please help in debugging which code caused this reset?!
Thank you,
Shreya
Hi,
I think it would be best if you enable debug log by enabling logging and building the project in debug mode. That should output a log that can specify the hardfault reason,
regards
Jared
Hi,
As you mentioned CPU lock-up reset will occur when there is a hard fault. when I created hard fault condition the reset reason was soft reset.
It would be helpful if you suggest how to reproduce CPU lockup reset?
Shreya J B said:when I created hard fault condition the reset reason was soft reset.
How do you know the reset reason was soft reset, wasn't the CPU lockup bit set in RESETREAS register?
Can you clarify which bit that is set in RESETREAS register when your device is being reset?
regards
Jared