Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Cleanup and extend watch dog's reset-cause logic #1015

Merged
merged 7 commits into from
Sep 14, 2024
Merged

Cleanup and extend watch dog's reset-cause logic #1015

merged 7 commits into from
Sep 14, 2024

Conversation

stnolting
Copy link
Owner

The watchdog is now able to distinguish 4 reset causes:

  • WDT_RCAUSE_EXT (0b00): Reset caused by external reset signal/pin
  • WDT_RCAUSE_OCD (0b01): Reset caused by on-chip debugger
  • WDT_RCAUSE_TMO (0b10): Reset caused by watchdog timeout
  • WDT_RCAUSE_ACC (0b11): Reset caused by illegal watchdog access (strict mode) - invalid reset password or a write attempt to the locked configuration register

@stnolting stnolting added enhancement New feature or request HW Hardware-related labels Sep 13, 2024
@stnolting stnolting self-assigned this Sep 13, 2024
@stnolting stnolting marked this pull request as ready for review September 13, 2024 20:13
@stnolting stnolting merged commit 5e05b26 into main Sep 14, 2024
10 checks passed
@stnolting stnolting deleted the wdt_edits branch September 14, 2024 04:39
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request HW Hardware-related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant