Skip to content

Commit 1c87416

Browse files
committed
esp32s3: more stable cpu
1 parent 505b874 commit 1c87416

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/runtime/runtime_esp32s3.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ func main() {
5252
esp.SYSTEM.SetCPU_PER_CONF_PLL_FREQ_SEL(1)
5353
esp.SYSTEM.SetCPU_PER_CONF_CPUPERIOD_SEL(2)
5454

55-
clearbss()
55+
// Clear bss. Repeat many times while we wait for cpu/clock to stabilize
56+
for x := 0; x < 30; x++ {
57+
clearbss()
58+
}
5659

5760
// Initialize main system timer used for time.Now.
5861
initTimer()

0 commit comments

Comments
 (0)