Skip to content

hw/mcu: add reset cause handling for apollo3 board #3476

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

Merged
merged 1 commit into from
Jul 23, 2025

Conversation

wiktorkwiatkowski
Copy link
Contributor

Added support for reading the reset cause using the RSTGEN->STAT register. Function checks what kind of reset occurred and returns matching hal_reset_reason enum value.

Unlike in apollo2, apollo3 does not provide a register to manually clear the reset status. Is is cleared automatically on startup.

Added support for reading the reset cause using the RSTGEN->STAT
register. Function checks what kind of reset occurred and
returns matching hal_reset_reason enum value.

Unlike in apollo2, apollo3 does not provide a register to manually
clear the reset status. Is is cleared automatically on startup.
Copy link
Contributor

@mlaz mlaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@mlaz mlaz merged commit b7c3b78 into apache:master Jul 23, 2025
22 checks passed
@wiktorkwiatkowski wiktorkwiatkowski deleted the apollo3-reset-reason branch July 23, 2025 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants