esp32s3 lockup repro
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
module esp32s3lockup
|
||||||
|
|
||||||
|
go 1.26.2
|
||||||
@@ -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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user