nRF5 SDK is not maintained anymore
More Info: Consider nRF Connect SDK for new designs

nRF52840 SDK 16 sd140 - how to store the NRF_LOG_ERROR

Hi guys,

I have developed a custom board using the nRF52840 module and the SDK16.If the peripheral is disconnected from the central, it starts advertising again in normal conditions.

However, sometimes the peripheral disconnects from the central and stops advertising. I need to find and handle the error but it is very difficult.

This happens randomly and not often. I cannot reproduce the error, and I cannot debug it.

What I am considering is to store in the internal flash memory the NRF_LOG_ERROR, so the next time the firmware crashes, to retrieve the error code and the line number.

However, I do not know how to do that, is there any example?

Is there another way to do that?

Related