Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable mbed crash reporting #343

Open
wmmc88 opened this issue Apr 4, 2021 · 0 comments
Open

Enable mbed crash reporting #343

wmmc88 opened this issue Apr 4, 2021 · 0 comments
Assignees
Labels

Comments

@wmmc88
Copy link
Member

wmmc88 commented Apr 4, 2021

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 wmmc88 self-assigned this Apr 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant