common_hal_mcu_processor_get_reset_reason is only (fully) implemented on ESP32S2, it returns RESET_REASON_UNKNOWN for every other port. An unintended consequence is that, because of the following code addition, these boards don't implement the normal yellow status LED to wait for the reset button and reboot in safe mode. Making safe mode impossible to reach.
|
const mcu_reset_reason_t reset_reason = common_hal_mcu_processor_get_reset_reason(); |
|
if (reset_reason != RESET_REASON_POWER_ON && |
|
reset_reason != RESET_REASON_RESET_PIN) { |
|
return NO_SAFE_MODE; |
|
} |
>>> import microcontroller
>>> microcontroller.cpu.reset_reason
microcontroller.ResetReason.UNKNOWN
common_hal_mcu_processor_get_reset_reasonis only (fully) implemented on ESP32S2, it returnsRESET_REASON_UNKNOWNfor every other port. An unintended consequence is that, because of the following code addition, these boards don't implement the normal yellow status LED to wait for the reset button and reboot in safe mode. Making safe mode impossible to reach.circuitpython/supervisor/shared/safe_mode.c
Lines 60 to 64 in 538cd7e