ESP32 internals & pitfalls
Articles on the less obvious side of ESP32 development: how the compiler, the hardware and the Arduino and ESP-IDF frameworks actually behave, and where the common pitfalls are.
Articles
9 articles-
17×
One letter makes your ESP32-S3 math 17× slower
A float literal without the f suffix is a double, and the ESP32-S3 FPU only does single precision: 13 vs 225 cycles per step.
-
350 KB
Where did 512 KB go? The ESP32-S3 memory map
The ESP32-S3 has 512 KB of SRAM, but a fresh Arduino sketch gets about 350 KB free. This accounts for every byte, using addresses measured on a board.
-
−390,510
Two cores, one counter: why counter++ loses updates on ESP32
Two tasks on two ESP32-S3 cores, a million increments each, end at 1,609,490. Why volatile doesn't help, and what each fix costs.
-
1248×
ESP32-S3 vs Arduino Uno: how much faster, really?
The same Arduino sketch on both boards: from 0.98× (Serial at 115200, the Uno finishes first) to 1248× (32-bit division), not the 15× clock ratio.
-
3.7 s
Lost your ESP32? You just gave away your Wi-Fi password
WiFi.begin() stores the password in NVS in plain text; disconnect(true, true) and eraseAP() leave copies, and the driver keeps up to five networks.
-
40.6 °C
Your ESP32 has a thermometer. It's lying to you.
temperatureRead() on the ESP32-S3 measures the silicon, not the air: 25.6 °C idle, about 35 °C on both cores, 40.6 °C scanning Wi-Fi in a 21 °C room.
-
885/s
One Serial.println() is slowing down your loop
By default Serial on the ESP32-S3 is a UART with a 128-byte FIFO. Once the FIFO is full, every print waits for the wire, and loop() runs at the baud rate.
-
138,001
Your "once a second" code breaks after 71 minutes
On ESP32, micros() is 32-bit and wraps after 71 min 35 s. Code that checks micros() >= last + interval fires 138,001 times at the wrap. Subtracting first fixes it.
-
8 KB
Arduino IDE says 306 KB for local variables. Your loop gets 8.
What Arduino IDE's two memory lines mean on ESP32: a boards.txt constant, an 8 KB loopTask stack, and a partition-sized sketch limit.
Reference
10 sections · every value sourced-
10 chips
ESP32 chip families
ESP32, S2, S3, C2, C3, C5, C6, C61, H2 and P4 side by side. Filter by Wi-Fi 6, Thread/Zigbee, USB, touch and more; GPIO maps and pitfalls for each chip.
-
12 boards
ESP32 boards and modules
Development boards with pinout drawings and the pins that are safe to use, plus 16 Espressif modules with every flash and PSRAM variant.
-
6 sheets
Arduino-ESP32 details
Strapping pins, partition schemes, the Tools menu, Arduino functions that behave differently, the 3.x migration and error messages.
-
20 pages
Quick answers
One question per page:
esp_err_tand Wi-Fi reason codes, type sizes, NVS, ESP-NOW and BLE limits, flash offsets, MAC addresses, wake-up pins. -
4 tools
Pin planner, boot decoder, calculators
Check your pin choices, decode
rst:/boot:lines and Guru Meditation output, size PWM, ADC dividers, UART and battery life.
PetroSky Linux VPS · partner
Your ESP32 needs somewhere to report to.An MQTT broker, OTA updates, dashboards. Guaranteed CPU and RAM, static IPv4, all ports open.
Affiliate link · supports ESPSSS at no cost to you