Error Logging - core/crash dump

Hi,

In my system, the BLE part is handled by nRF52832 and there is another master MCU which takes care of other tasks in the system. The Master MCU communicates with nRF52832 over UART. 

nRF52832 uses SDK 17.1.0.

We are trying to design a logic which will capture all the necessary information in the case of a fault for nRF52832 (eg:- hardfault, stackoverflow, device hung). If a customer returns the product saying not working, we should be able to retrieve this information and find the root cause.

  1. What information (should be stored) will be useful to find out the root cause ?
  2. Does copying an entire RAM to flash in the event of a fault will help ?
  3. How is this handled in a general embedded system ?

Related