diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2022-11-17 18:42:14 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2022-11-19 10:13:50 -0500 |
commit | 8977c4e764688917689f1c2ac427d4cddcbe0515 (patch) | |
tree | f5bd595650285f09c238042efd17c8d853890dbe /scripts/buildcommands.py | |
parent | b9a378c1ca630ba72d19640e7dee2ec4aec971ea (diff) | |
download | kutter-8977c4e764688917689f1c2ac427d4cddcbe0515.tar.gz kutter-8977c4e764688917689f1c2ac427d4cddcbe0515.tar.xz kutter-8977c4e764688917689f1c2ac427d4cddcbe0515.zip |
rp2040: Fix watchdog enable
The rp2040 watchdog does not actually reset anything by default. The
psm_hw->wdsel field must be programmed to actually get a reset on a
watchdog failure. Program that field so the watchdog is usable.
Also, disable the watchdog before attempting a reboot into the
bootloader. Otherwise the machine may just reboot a second time due
to a missed watchdog event in the bootloader.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'scripts/buildcommands.py')
0 files changed, 0 insertions, 0 deletions