GIGA R1: Auto reboot on fatal

Hi, I've tried setting platform.fatal-error-auto-reboot-enabled to true and increasing max reboots in the mbed_app.json and recompiling the lib but I'm still getting blinking red and no reboot.

Has anyone tried this? I've looked for an Arduino handler that might be overriding the settings without success.

Thanks

1 Like

So it turns out mbed is doing a soft reset after faulting but only to prepare and print the crash report. It then calls mbed_die() which gives the blinking red led of doom loop. Since mbed_die() is declared WEAK, a redeclare in my code with a reset is all that's required.

MBED_NORETURN void mbed_die () {NVIC_SystemReset();}

The crash report is sent to my blackbox and the board resets. I may include some form of indicator so I can tell it's happened, but the hard part is sorted - happy days

1 Like

hi steve9
thanks for your helps but I do not understand what you mean by blackbox?
what is it and how do I should treat it?

My 'blackbox' is just a sparkfun openlog unit that connects to pins D0/D1 (Serial uart). This is the default destination for the crash dumps.