mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 02:27:48 +00:00
esp32: fix WDT reset on the MCH2022 badge
This commit is contained in:
committed by
Ron Evans
parent
4f729c323d
commit
4aec3d04f9
@@ -13,6 +13,10 @@ import (
|
||||
// set.
|
||||
//export main
|
||||
func main() {
|
||||
// Disable the protection on the watchdog timer (needed when started from
|
||||
// the bootloader).
|
||||
esp.RTCCNTL.WDTWPROTECT.Set(0x050D83AA1)
|
||||
|
||||
// Disable both watchdog timers that are enabled by default on startup.
|
||||
// Note that these watchdogs can be protected, but the ROM bootloader
|
||||
// doesn't seem to protect them.
|
||||
|
||||
Reference in New Issue
Block a user