Skip to content

feat: add ESP32-P4 Rev1 (ECO2) chip support#36

Merged
deadprogram merged 1 commit intotinygo-org:mainfrom
jgangemi:jae/esp32p4-rev1
Apr 24, 2026
Merged

feat: add ESP32-P4 Rev1 (ECO2) chip support#36
deadprogram merged 1 commit intotinygo-org:mainfrom
jgangemi:jae/esp32p4-rev1

Conversation

@jgangemi
Copy link
Copy Markdown
Contributor

  • add ChipESP32P4Rev1 constant, String case, and chipDefs entry
  • new target_esp32p4_rev1.go with SPI/UART/LP_WDT register values
    sourced from esptool/targets/esp32p4.py
  • PostConnect detects USB-JTAG/Serial (sentinel 6 on P4, not 3) and
    disables LP_WDT + SWD watchdogs
  • add esp32p4-rev1 stub to tools/update-stubs.go and embed the stub
    JSON from esp-flasher-stub v0.5.1
  • wire up --chip esp32p4-rev1 / esp32-p4-rev1 in the CLI
  • reserve ChipESP32P4 and --chip esp32p4 for a future production
    (rev >= 3) target with its own stub

Production silicon uses a different UARTDEV_BUF_NO address and the
esp32p4.json stub; it will land as a separate target when we have
that hardware.

- add ChipESP32P4Rev1 constant, String case, and chipDefs entry
- new target_esp32p4_rev1.go with SPI/UART/LP_WDT register values
  sourced from esptool/targets/esp32p4.py
- PostConnect detects USB-JTAG/Serial (sentinel 6 on P4, not 3) and
  disables LP_WDT + SWD watchdogs
- add esp32p4-rev1 stub to tools/update-stubs.go and embed the stub
  JSON from esp-flasher-stub v0.5.1
- wire up --chip esp32p4-rev1 / esp32-p4-rev1 in the CLI
- reserve ChipESP32P4 and --chip esp32p4 for a future production
  (rev >= 3) target with its own stub

Production silicon uses a different UARTDEV_BUF_NO address and the
esp32p4.json stub; it will land as a separate target when we have
that hardware.
@deadprogram
Copy link
Copy Markdown
Member

Thank you for the addition @jgangemi now merging.

@deadprogram deadprogram merged commit 14d78e2 into tinygo-org:main Apr 24, 2026
3 checks passed
@jgangemi jgangemi deleted the jae/esp32p4-rev1 branch April 25, 2026 16:01
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