Skip to content

feat: add LP_WDT PostConnect for ESP32-C6, H2, and C5#28

Merged
deadprogram merged 3 commits intotinygo-org:mainfrom
jgangemi:jae/post-connect-lp-wdt
Apr 13, 2026
Merged

feat: add LP_WDT PostConnect for ESP32-C6, H2, and C5#28
deadprogram merged 3 commits intotinygo-org:mainfrom
jgangemi:jae/post-connect-lp-wdt

Conversation

@jgangemi
Copy link
Copy Markdown
Contributor

Adds PostConnect for ESP32-C6, ESP32-H2, and ESP32-C5 with shared LP_WDT (Low Power watchdog) disable. These RISC-V chips share the same LP domain watchdog protocol with chip-specific register addresses. Includes a shared disableWatchdogsLP helper in watchdog.go.

- detect USB-JTAG/Serial via ROM .bss at 0x4087F580
- shared disableWatchdogsLP helper for LP domain chips (C6, H2, C5)
- disable LP_WDT and enable SWD auto-feed when USB-JTAG active
- comprehensive unit tests for USB-JTAG, UART, and secure mode paths
- detect USB-JTAG/Serial via ROM .bss at 0x4084FEFC
- reuse shared disableWatchdogsLP helper with H2-specific register offsets
- detect USB-JTAG/Serial via ROM .bss at 0x4085F514
- reuse shared disableWatchdogsLP helper (same register offsets as C6)
@deadprogram
Copy link
Copy Markdown
Member

And I think that completes the set, thank you very much @jgangemi now merging.

@deadprogram deadprogram merged commit ae6add1 into tinygo-org:main Apr 13, 2026
3 checks passed
@jgangemi jgangemi deleted the jae/post-connect-lp-wdt branch April 13, 2026 13:18
@jgangemi
Copy link
Copy Markdown
Contributor Author

welcome, happy to be of assistance! any idea when you might cut a new release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants