DEV Community

Cover image for ESP32-S3-WROOM-1 N16R8 Pinout: The Pins You Can't Use, and Why
Dibyaprakash Pradhan
Dibyaprakash Pradhan

Posted on Originally published at pcbeditor.com AI-assisted

ESP32-S3-WROOM-1 N16R8 Pinout: The Pins You Can't Use, and Why

The ESP32-S3-WROOM-1 brings 36 GPIOs out to 41 pads. On the N16R8, three of them belong to the octal PSRAM, four are strapping pins, and two carry the native USB. Get any of those wrong and the board either doesn't boot or loses its PSRAM. Here is the module pin by pin, from Espressif's datasheet, with the pin numbers matched to KiCad 9's own symbol and footprint.

Short answer: N16R8 means 16 MB of Quad SPI flash and 8 MB of Octal SPI PSRAM. The octal PSRAM takes IO35, IO36 and IO37 (pads 28 to 30), so those three are not available for anything else. GPIO0, GPIO3, GPIO45 and GPIO46 are strapping pins. IO19 and IO20 are the native USB D− and D+. GPIO26 to GPIO34 are not on the pads at all. Of the 36 GPIOs on the pads, the N16R8 leaves 33.

KiCad 9 footprint and symbol of the ESP32-S3-WROOM-1: pads 1 to 14 down the left, 15 to 26 along the bottom, 27 to 40 up the right, the ground pad in the middle, and IO35 to IO37 marked as PSRAM on the symbol

The WROOM-1 footprint: pads 1 to 14 down the left, 15 to 26 along the bottom, 27 to 40 up the right, the ground pad (41) in the middle, and the antenna area at the top. KiCad's symbol already marks IO35 to IO37 as PSRAM.

What N16R8 means

Espressif's ordering table for the ESP32-S3-WROOM-1 lists the memory in the part number. N16 is 16 MB of Quad SPI flash; R8 is 8 MB of Octal SPI PSRAM inside the chip's package. The same table rates R8 modules for −40 to 65 °C ambient. Turning on PSRAM ECC raises that to 85 °C and costs 1/16 of the PSRAM.

"Octal" is the part that matters on the PCB. A module with octal PSRAM connects IO35, IO36 and IO37 to that PSRAM, and Espressif's pin table says they are not available for other uses. On an N8, N16 or N16R2 those three pads can be used as GPIO35 to GPIO37. On an N16R8 they cannot, even though they are still pads on the module.

Pin by pin

Pad Name Function
1 GND Ground
2 3V3 Supply, 3.0 to 3.6 V. The supply must deliver at least 0.5 A
3 EN High enables the chip, low powers it off. Never leave it floating
4 to 7 IO4 to IO7 GPIO, touch and ADC1 channels 3 to 6
8, 9 IO15, IO16 GPIO, U0RTS/U0CTS, ADC2, the 32 kHz crystal pins
10, 11 IO17, IO18 GPIO, U1TXD/U1RXD, ADC2
12 IO8 GPIO8, TOUCH8, ADC1_CH7. SDA in the Arduino core
13 IO19 USB D− (native USB Serial/JTAG and USB OTG), GPIO19
14 IO20 USB D+ (native USB Serial/JTAG and USB OTG), GPIO20
15 IO3 Strapping: JTAG source, ignored unless an eFuse is burnt. No internal pull
16 IO46 Strapping: boot mode and ROM log. Weak pull-down
17 IO9 GPIO9, TOUCH9, ADC1_CH8. SCL in the Arduino core
18 to 21 IO10 to IO13 GPIO, touch, FSPI. SS, MOSI, SCK and MISO in the Arduino core
22, 23 IO14, IO21 GPIO
24, 25 IO47, IO48 GPIO. 1.8 V I/O on the N16R16VA only
26 IO45 Strapping: flash supply voltage (VDD_SPI). Weak pull-down; keep it low at reset
27 IO0 Strapping: boot mode. Weak pull-up; low at reset (with IO46 low) enters download mode
28 to 30 IO35 to IO37 Taken by the octal PSRAM on N16R8 (and every R8/R16V module)
31 IO38 GPIO38, FSPIWP
32 to 35 IO39 to IO42 GPIO, and the JTAG pins MTCK, MTDO, MTDI, MTMS
36, 37 RXD0, TXD0 UART0 (GPIO44, GPIO43). The UART0 used for flashing and the boot log
38, 39 IO2, IO1 GPIO, touch, ADC1
40 GND Ground
41 EPAD Ground, under the module. Soldering it is optional and improves cooling

The full table, with every function of every pad, is on the canonical page.

The four strapping pins

The strapping pins are read when EN goes high, and the datasheet asks for them to hold their level for at least 3 ms after that. With nothing connected, their weak pulls give a normal boot:

  • GPIO0 has a weak pull-up. Download mode needs IO0 low and IO46 low at reset.
  • GPIO46 has a weak pull-down. It also controls the ROM boot log.
  • GPIO45 has a weak pull-down. IO45 high at reset selects a 1.8 V flash supply. Every WROOM-1 except the N16R16VA runs its flash from 3.3 V, so keep IO45 low until the chip has booted.
  • GPIO3 floats; it has no internal pull. It picks the JTAG source only if an eFuse has been burnt, so on a fresh module it is ignored.

If a sensor, a button or a level shifter pulls one of these the wrong way at reset, the module boots into the wrong mode or not at all. Put such things on other pins, or make sure they are high-impedance at reset.

Why the PSRAM goes missing

The firmware must be set for octal PSRAM. In ESP-IDF that is CONFIG_SPIRAM_MODE (Quad or Octal) under SPI RAM config. Octal PSRAM runs only in DTR mode, and the quad flash only in STR mode. A build set for quad PSRAM cannot use the N16R8's PSRAM: select Octal and rebuild.

The other way to lose it is in hardware: wiring something to IO35, IO36 or IO37. Those pads connect straight to the PSRAM on this module.

Which pins are SDA and SCL?

There are no fixed ones: the GPIO matrix can route I²C to any free GPIO. The Arduino core's defaults are SDA on GPIO8 and SCL on GPIO9, which are pads 12 and 17 on the WROOM-1. Its SPI defaults are SS 10, MOSI 11, SCK 12 and MISO 13.

Putting the ESP32-S3-WROOM-1 on a PCB

  • Feed 3V3 from a supply that can deliver 0.5 A, with 22 µF and 0.1 µF at the module, as in Espressif's peripheral schematic.
  • Put an RC delay on EN, usually 10 kΩ to 3V3 and 1 µF to ground, so the chip starts after its supply has settled. Add a reset button from EN to ground and a boot button or jumper from IO0 to ground.
  • For native USB, run IO19 (D−) and IO20 (D+) as a pair to the USB connector and keep other parts off those two pins. A USB-C receptacle also needs its own 5.1 kΩ resistor on CC1 and on CC2.
  • Put the antenna end at the edge of the board, and keep copper, parts and ground pour out from under it. The WROOM-1U uses an external antenna connector and has no keep-out.
  • The ground pad (41) is optional, but soldering it helps with heat. Do not over-paste it, or the module sits too high for the edge pads to wet.

Sources

  • Espressif ESP32-S3-WROOM-1 & WROOM-1U datasheet v1.8: pin definitions (Table 3-1), the ordering table, strapping pins, supply limits, peripheral schematic.
  • Espressif ESP32-S3 Series datasheet v2.2: GPIO restrictions and peripheral pin assignment.
  • ESP-IDF: SPI flash and external SPI RAM configuration for the ESP32-S3.
  • arduino-esp32: the ESP32-S3 default pins.
  • KiCad 9 libraries: RF_Module:ESP32-S3-WROOM-1 symbol and footprint (CC-BY-SA 4.0).

The full pinout, with every pad's functions, the FAQ and the KiCad figure, is on pcbeditor.com.

Top comments (0)