MarsRoverFirmware icon indicating copy to clipboard operation
MarsRoverFirmware copied to clipboard

Enable mbed crash reporting

Open wmmc88 opened this issue 3 years ago • 0 comments

https://os.mbed.com/docs/mbed-os/v6.9/apis/error-handling.html#crash-reporting-and-auto-boot

The following options should be enabled repo wide (put it in mbed_app.json):

  • "platform.crash-capture-enabled": true,
  • "platform.fatal-error-auto-reboot-enabled": true,
  • "platform.error-reboot-max": 3,

As per the docs, the linkerscript must be modified to add extra regions in RAM and export symbols denoting the bounds of this region (ex. CRASH_DATA_RAM_START). This must be done in such a way that doesn't modify the submodule directly, so it probably belongs in the targets folder of our repo.. potentially in some common target that all our boards can inherit from.

wmmc88 avatar Apr 04 '21 23:04 wmmc88