ESP32-P4 GPIO24
Everything you need to use this pin correctly: status, alternate functions, boot-time cautions and working code.
| Status | Usable |
|---|---|
| Alternate functions | USB-JTAG |
| Chip | ESP32-P4 pinout |
Watch out:
- Native USB pin. Using it as ordinary IO disables USB download and debugging.
Practical notes
One of the default USB-JTAG pins (paired with GPIO25). With no radio on the P4, flashing and debugging depend on this pair — reclaim it only if you are ready to lose USB-JTAG.
Sample code
// Arduino
const int PIN = 24;
void setup() {
pinMode(PIN, OUTPUT);
}
void loop() {
digitalWrite(PIN, HIGH);
delay(500);
digitalWrite(PIN, LOW);
delay(500);
}
Data verified:2026-10-20 · Cross-checked against Espressif documentation. Always confirm against the official datasheet before finalizing a design. Official docs →