From e989c38eba4c298e2e66cca8d8b9cfe48363e91d Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Mon, 20 Apr 2026 23:18:23 -0500 Subject: [PATCH] esp32s3 lockup repro --- esp32s3-lockup/go.mod | 3 +++ esp32s3-lockup/main.go | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 esp32s3-lockup/go.mod create mode 100644 esp32s3-lockup/main.go diff --git a/esp32s3-lockup/go.mod b/esp32s3-lockup/go.mod new file mode 100644 index 0000000..eac248c --- /dev/null +++ b/esp32s3-lockup/go.mod @@ -0,0 +1,3 @@ +module esp32s3lockup + +go 1.26.2 \ No newline at end of file diff --git a/esp32s3-lockup/main.go b/esp32s3-lockup/main.go new file mode 100644 index 0000000..f4e8389 --- /dev/null +++ b/esp32s3-lockup/main.go @@ -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 + } + } +}