esp32s3 lockup repro

This commit is contained in:
Joel Wetzell
2026-04-20 23:18:23 -05:00
parent 81c26430c7
commit e989c38eba
2 changed files with 38 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
package main
import (
"machine"
"time"
)
func main() {
time.Sleep(3 * time.Second)
led := machine.GPIO37
led.Configure(machine.PinConfig{Mode: machine.PinOutput})
txDone := true
count := 0
processingCount := 0
for {
if txDone {
txDone = false
led.Set(false)
time.Sleep(249 * time.Millisecond)
led.Set(true)
println("hello world", count)
count += 1
} else {
if processingCount > 100000000 {
txDone = true
println("stall done")
processingCount = 0
}
processingCount += 1
}
}
}