ESP32-WROOM-32E: Strapping Pins During Reset?
Posted: Thu Jun 12, 2025 4:23 am
I use a ESP32-WROOM-32E:
https://www.espressif.com/sites/default ... eet_en.pdf
The datasheet says:
It's very important to know when the strapping pins are read, because I am receiving a 50 MHz clock signal on GPIO 0 (which I am starting 200ms after the ESP32 EN pin has received power, and that clock then stays "on" until the ESP32 EN pin is pulled low to reset the ESP32 externally), so I really need to know when the strapping values are being read.
If the settings pins are also read during soft resets, while my crystal is still running, then there's a 50% chance the ESP32 will boot into firmware flashing mode, which would be terrible.
Huge thanks to anyone who can help with this important question.
https://www.espressif.com/sites/default ... eet_en.pdf
The datasheet says:
But the datasheet doesn't explain when the strapping pin values are read.All strapping pins have latches. At system reset, the latches sample the bit values of their respective strapping
pins and store them until the chip is powered down or shut down. The states of latches cannot be changed in any other way. It makes the strapping pin values available during the entire chip operation, and the pins are
freed up to be used as regular IO pins after reset.
It's very important to know when the strapping pins are read, because I am receiving a 50 MHz clock signal on GPIO 0 (which I am starting 200ms after the ESP32 EN pin has received power, and that clock then stays "on" until the ESP32 EN pin is pulled low to reset the ESP32 externally), so I really need to know when the strapping values are being read.
If the settings pins are also read during soft resets, while my crystal is still running, then there's a 50% chance the ESP32 will boot into firmware flashing mode, which would be terrible.
- Are the strapping pins read when executing esp_restart()?
- Are the strapping pins read during RTC Watchdog Reset?
- Any other situations where they are read?
Huge thanks to anyone who can help with this important question.