diff --git a/src/runtime/runtime_esp32.go b/src/runtime/runtime_esp32.go index 929416ab..1a39608b 100644 --- a/src/runtime/runtime_esp32.go +++ b/src/runtime/runtime_esp32.go @@ -62,16 +62,6 @@ func main() { //export init_go func init_go(heap_start uintptr, heap_length int) { stackTop = getCurrentStackPointer() - println("stackTop:", stackTop, "\n") - // Disable the protection on the watchdog timer (needed when started from - // the bootloader). - esp.RTC_CNTL.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. - esp.RTC_CNTL.WDTCONFIG0.Set(0) - esp.TIMG0.WDTCONFIG0.Set(0) // Чистить BSS можно только свой. Т.е. когда при сборке tinygo BSS будет в отдельной секции // clearbss()