boards where reset_reason is not implemented don't wait for safe mode · Issue #4292 · adafruit/circuitpython · GitHub
Skip to content

boards where reset_reason is not implemented don't wait for safe mode #4292

Description

@Neradoc

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.

>>> import microcontroller
>>> microcontroller.cpu.reset_reason
microcontroller.ResetReason.UNKNOWN

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions