diff options
author | Alessandro Gatti <a.gatti@frob.it> | 2025-06-01 18:54:37 +0200 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2025-06-04 22:35:39 +1000 |
commit | e4c0e2b73d0e8842160c86a39706d872ec226b6c (patch) | |
tree | ff2ef66182d9088c187d9825a792a57459713063 /esp8266/scripts/neopixel.py | |
parent | 4227654d4294b778b2bbba8a3b735882786b1d2d (diff) | |
download | micropython-e4c0e2b73d0e8842160c86a39706d872ec226b6c.tar.gz micropython-e4c0e2b73d0e8842160c86a39706d872ec226b6c.zip |
esp8266/main: Print error information on crash-induced reboots.
This commit adds an optional configuration option for the ESP8266 port
that, if the board rebooted due to a crash, will print to stdout some
information about the error that triggered the issue.
It is not possible using regular SDK functions to intercept errors and
print information at that stage, and the only error response from the
board is to reboot itself. This is the next best thing, print some
error information just once at boot time after the crash - the least
invasive option given the situation we're in.
This is disabled by default, and can be enabled by enabling
MICROPY_HW_HARD_FAULT_DEBUG in the port configuration - obviously with a
small increase in the firmware code footprint.
Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
Diffstat (limited to 'esp8266/scripts/neopixel.py')
0 files changed, 0 insertions, 0 deletions