Skip to content
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

rework watchdog timer and reset system #692

Merged
merged 7 commits into from
Sep 23, 2023
Merged

rework watchdog timer and reset system #692

merged 7 commits into from
Sep 23, 2023

Conversation

stnolting
Copy link
Owner

@stnolting stnolting commented Sep 21, 2023

This PR adds a new register to the watchdog module (WDT) that is used to reset the internal timeout counter. A specific 32-bit word (a.k.a. "the password") has to be written to this register to actually reset the timer (making it less likely for a rogue CPU to reset the WDT).

Additionally, the WDT now provides a "strict" bit in its control register. When enabled a hardware reset will be enforced if

  • a wrong password is written to RESET or
  • a write access is attempted to the control register while the LOCK bit is set

Furthermore, the processor's reset system is slightly reworked.

@stnolting stnolting added enhancement New feature or request HW hardware-related labels Sep 21, 2023
@stnolting stnolting self-assigned this Sep 21, 2023
@stnolting stnolting changed the title 🔒 add watchdog reset password rework watchdog timer and reset system Sep 22, 2023
@stnolting stnolting marked this pull request as ready for review September 22, 2023 20:22
@stnolting stnolting merged commit f1e11dd into main Sep 23, 2023
8 checks passed
@stnolting stnolting deleted the wdt_password branch September 23, 2023 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request HW hardware-related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant