esp32.diy

ESP32-S3 N16R8: What It Is, Pins to Avoid, Power and Setup

Nov 28, 2026 · 9 min read · Intermediate

ESP32-S3 N16R8: What It Is, Pins to Avoid, Power and Setup
TL;DR The ESP32-S3 N16R8 is the ESP32-S3-WROOM-1 module variant that ships with Octal SPI PSRAM, which makes GPIO35, 36 and 37 unavailable for your own peripherals. Treat it like any other ESP32-S3 for flashing and code, but respect the reserved pins and give it a power supply that can handle Wi-Fi current spikes.
Module nameESP32-S3-WROOM-1-N16R8 (ESP32-S3 with Octal SPI PSRAM)
Pins reserved by PSRAMIO35, IO36 and IO37 are wired to the Octal PSRAM and cannot be used
Wi-Fi peak currentUp to 355 mA at 3.3 V per the module datasheet; measured spikes can approach 0.8 A
DecouplingA 10 uF ceramic capacitor on the 3.3 V rail is strongly recommended
MicroPython buildCustom board ESP32_GENERIC_S3_N16R8 built with ESP-IDF v5.0.4
Download modeHold GPIO0 LOW (BOOT button) while resetting EN if uploads fail

What is the ESP32-S3 N16R8?

"ESP32-S3 N16R8" is the shorthand you see on listings, forum posts and custom board designs for the ESP32-S3-WROOM-1-N16R8 module from Espressif. It is a regular ESP32-S3 Wi-Fi and Bluetooth module with a specific memory configuration baked in. The part of the suffix that matters most in day-to-day use is the R8: according to the ESP32-S3 datasheet, modules built around the ESP32-S3R8 (or ESP32-S3R16V) chip come with Octal SPI PSRAM. Octal PSRAM uses extra data lines to talk to the RAM die, which improves throughput compared with the quad variant but also eats a few GPIOs that would otherwise be free.

The sources this guide is based on do not list the exact flash and PSRAM capacities in megabytes, so for those numbers go straight to the ESP32-S3-WROOM-1/WROOM-1U datasheet that both the MicroPython build project and the Octal-PSRAM answer point to. What the sources do establish clearly:

If you are deciding between this and other members of the family, the module choice mostly affects how much RAM-hungry work you can do (large framebuffers, audio, camera, AI models) and which pins are left over for your own design.

What does the ESP32-S3 N16R8 datasheet say about GPIO35, 36 and 37?

This is the single most important datasheet fact for the N16R8, and it is the one people trip over most. The ESP32-S3 datasheet states that on modules with Octal SPI PSRAM, i.e. those embedding ESP32-S3R8 or ESP32-S3R16V, pins IO35, IO36 and IO37 are connected to the Octal SPI PSRAM and are not available for other uses.

A real-world example from a Stack Overflow thread shows exactly how this bites. A maker built a custom N16R8 board with an SD card slot on one SPI bus (CS 10, CLK 12, MISO 13, MOSI 11) and a 2.9-inch ePaper display on a second SPI bus using GPIO35 as MOSI and GPIO36 as SCK. Each device worked on its own, but as soon as the SD card was initialised after the ePaper, the board crashed with:

Guru Meditation Error: Core 1 panic'ed (StoreProhibited). Exception was unhandled.

followed by a reboot loop. Swapping HSPI and FSPI, changing init order, and tweaking pinMode calls made no difference. The accepted answer pinned it on the pin choice: 35 and 36 belong to the PSRAM on an R8 module, so driving them as SPI lines corrupts memory access and the core panics.

Pin Status on N16R8 Why
IO35 Not available Wired to Octal SPI PSRAM
IO36 Not available Wired to Octal SPI PSRAM
IO37 Not available Wired to Octal SPI PSRAM

Practical takeaway: before you route a PCB or pick header pins for an N16R8, strike 35, 36 and 37 off your list. Pinout diagrams drawn for quad-PSRAM or no-PSRAM ESP32-S3 boards will happily show them as general-purpose IO, which is exactly how the mistake gets made.

How do I power an ESP32-S3 N16R8 without random restarts?

The second most common N16R8 complaint is a board that reboots at random, often only after it has been running for a while. An Electronics Stack Exchange question describes a custom ESP32-S3-WROOM-1-N16R8 board fed by an MCP1825S LDO from a 5 V / 4 A Mean Well supply shared with a Raspberry Pi 4. With a 250 mA fuse the module restarted repeatedly until Wi-Fi connected; with 315 mA it booted normally; but even with a 500 mA fuse it developed sporadic, sometimes near-endless reset loops after a few days.

The numbers behind that behaviour, as cited in the question and answer:

Figure Value Source of the figure
Wi-Fi peak current Up to 355 mA at 3.3 V Module specsheet, p. 18
Equivalent at 5 V input About 234 mA Asker's calculation
Real transmission spikes Close to 0.8 A Linked measurement cited in the answer
Typical dev-board LDO (AMS1117) rating 0.8 A Answer

The accepted answer gives a methodical approach rather than a guess:

  1. Measure, don't assume. Put a scope on both the 5 V input and the 3.3 V output, trigger on a drop of around 0.2 V, then make the ESP32 transmit hard (serving a web page and hitting it from a browser works well). Even if the board crashes, the scope keeps the evidence.
  2. If the 5 V input sags, the fuse resistance plus a series diode are starving the LDO and pushing it into dropout. Add a few hundred uF of low-ESR electrolytic capacitance on the input.
  3. If the input stays healthy (well above about 4 V) but 3.3 V still dips, the LDO itself is current-limiting. A 500 mA LDO is marginal given 0.8 A spikes.
  4. Decoupling matters. The ESP32 needs a 10 uF ceramic capacitor close to the module because of its spiky draw; high-ESR tantalums do not do the job. Datasheet claims like "stable with 1 uF ceramic" refer to stability, not good transient response.
  5. Choosing a regulator. The answer recommends an LDO in the 1 A class that is stable with a 10 uF ceramic output cap and has fast transient response. The AMS1117 found on many dev boards is described as obsolete with slow transient response, which also causes trouble on wake-from-sleep current steps; the LDL1117 is suggested as a drop-in in general, though it did not match the pinout of that particular board. As a stopgap, a few hundred uF of low-ESR electrolytic on the LDO output helps.

If you are using a ready-made N16R8 dev board instead of your own PCB, the same logic applies to your USB port, cable and any external supply: shared or weak 5 V sources show up as resets precisely when Wi-Fi starts transmitting.

How do I get started with an ESP32-S3 N16R8 in Arduino or PlatformIO?

From the toolchain's point of view the N16R8 is an ESP32-S3, so you install the normal arduino-esp32 core or the espressif32 PlatformIO platform and pick an ESP32-S3 board definition. The Stack Overflow example used PlatformIO with framework = arduino, upload_speed = 921600 and monitor_speed = 115200, which is a reasonable starting point.

A few setup notes drawn from the arduino-esp32 troubleshooting guide:

sudo apt install python-is-python3

Once the toolchain works, the first project-specific job on an N16R8 is to audit your pin assignments against the reserved-pin table and to confirm your supply can cover Wi-Fi bursts. Doing that before writing application code saves a lot of confusing debugging later.

Why won't my ESP32-S3 N16R8 flash, and how do I fix it?

Upload failures are not specific to the N16R8, but they are common enough that it is worth having the checklist handy. The typical symptom in the Arduino IDE is:

A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header

To accept firmware over serial the chip must be in download mode, which means GPIO0 held LOW while EN (reset) is cycled. The arduino-esp32 troubleshooting guide lists these fixes, roughly in the order you should try them:

Step What to check
Cable Try a different USB cable; many are charge-only with no data lines
Port Connect directly to the computer, avoid hubs and ports that share power with phone charging
Power Confirm the supply is adequate (see the power section above)
TX/RX Make sure nothing is attached to the TX and RX pins, some may be unlabelled on the board
GPIO0 Keep GPIO0 LOW during the upload, usually by holding the BOOT button
Reset circuit Solder a 10 uF capacitor between RST and GND, or add the reset-delay circuit from the Power-on Sequence section of Espressif's hardware design guidelines for automatic download mode
Wiring When powering via pins, do not confuse CMD (usually beside 5V) with GND

If you maintain custom board definitions, note that Arduino IDE 1.8.x expands {placeholder} tokens in platform.txt upload recipes differently from arduino-cli and IDE 2.x: at upload time only board preferences, runtime keys and the selected upload tool's shorthand keys are visible, which is why some shared flasher wrapper patterns work in the CLI but fail in the old Java IDE.

ESP32-S3 N16R8 MicroPython tutorial: building a matching firmware

Generic MicroPython builds may not match the N16R8's memory layout, so the Mythologyli/MicroPython-ESP32-S3-N16R8 project supplies a dedicated board definition, ESP32_GENERIC_S3_N16R8, that you drop into the MicroPython source tree and compile yourself. The README was tested on Ubuntu 22.04 and uses ESP-IDF v5.0.4.

  1. Install the build dependencies:
sudo apt update
sudo apt install -y build-essential git libffi-dev pkg-config python3 python3-venv
  1. Clone MicroPython and the board repository side by side:
git clone https://github.com/micropython/micropython.git
git clone https://github.com/Mythologyli/MicroPython-ESP32-S3-N16R8.git
  1. Install ESP-IDF v5.0.4 following Espressif's Linux/macOS setup guide, and make sure its environment is exported in your shell.

  2. Copy the board definition into the ESP32 port:

cp -r MicroPython-ESP32-S3-N16R8/ESP32_GENERIC_S3_N16R8 micropython/ports/esp32/boards
  1. Build for the S3 target:
cd micropython/ports/esp32
make BOARD=ESP32_GENERIC_S3_N16R8 submodules
export IDF_TARGET=esp32s3
make BOARD=ESP32_GENERIC_S3_N16R8

The README points to MicroPython issue #8635 as background reading on why a custom board file is needed for this module. Flash the resulting firmware with your usual esptool workflow; if the chip will not enter download mode, the BOOT/GPIO0 procedure from the previous section applies here too. In your MicroPython code, remember that Pin(35), Pin(36) and Pin(37) are off-limits on an R8 module regardless of language.

Common ESP32-S3 N16R8 pitfalls at a glance

Symptom Likely cause Fix
StoreProhibited panic when a second SPI device or any peripheral is initialised A peripheral uses IO35, IO36 or IO37, which belong to the Octal PSRAM Move the signal to another GPIO; these three pins are never usable on R8 modules
Reboots during Wi-Fi connect or under load Supply cannot deliver the 355 mA datasheet peak, let alone spikes near 0.8 A Larger fuse or none, 1 A-class fast LDO, 10 uF ceramic plus bulk low-ESR capacitance
Resets that appear only after days of operation Marginal LDO/fuse/diode combination drifting into dropout Scope the 5 V and 3.3 V rails during transmission and fix whichever rail sags
Timed out waiting for packet header Board not in download mode, bad cable or weak USB port Hold BOOT (GPIO0 LOW) while resetting, swap cable, use a direct port
"python": executable file not found on Ubuntu No python symlink sudo apt install python-is-python3
Generic MicroPython firmware misbehaves Board file not tailored to N16R8 Build with the ESP32_GENERIC_S3_N16R8 board definition and ESP-IDF v5.0.4

One more subtle point: the wrong pin and the wrong power supply can produce similar-looking reboot loops on the serial monitor. The difference is that a reserved-pin crash prints a Guru Meditation panic with a register dump before the ROM banner, while a brown-out typically does not get the chance to say anything. Reading the lines just above the ESP-ROM: banner tells you which problem you are chasing.

Frequently asked questions

Can I use GPIO35, 36 or 37 on the ESP32-S3 N16R8?

No. The ESP32-S3 datasheet states that on modules with Octal SPI PSRAM (ESP32-S3R8 and ESP32-S3R16V based), IO35, IO36 and IO37 are connected to the PSRAM and not available for other uses. Using them causes crashes such as a StoreProhibited panic.

Why does my ESP32-S3 N16R8 keep restarting when Wi-Fi connects?

Most likely the supply or LDO cannot cover Wi-Fi transmit peaks, which the datasheet puts at up to 355 mA at 3.3 V and which measurements show can approach 0.8 A. Scope the 5 V and 3.3 V rails, add a 10 uF ceramic plus bulk low-ESR capacitance, and use a fast 1 A-class LDO.

Which ESP-IDF version does the N16R8 MicroPython build use?

The Mythologyli MicroPython-ESP32-S3-N16R8 project was tested on Ubuntu 22.04 with ESP-IDF v5.0.4 and the board name ESP32_GENERIC_S3_N16R8.

Where is the ESP32-S3 N16R8 datasheet?

The relevant document is Espressif's ESP32-S3-WROOM-1 / WROOM-1U datasheet, which both the MicroPython board project and the Octal PSRAM pin answer reference. The Wi-Fi peak current figure cited in the power discussion comes from page 18 of the module specsheet.

How do I force an ESP32-S3 N16R8 into download mode?

Hold GPIO0 LOW, usually via the BOOT button, while resetting the EN pin, then start the upload. If that is unreliable, a 10 uF capacitor between RST and GND or Espressif's reset-delay circuit can help it enter download mode automatically.

Bottom line

The ESP32-S3 N16R8 is a capable, widely used module whose Octal PSRAM gives you more headroom for memory-hungry projects at the cost of three GPIOs. Design around the IO35-37 restriction from the start, give the module a supply and decoupling that survive Wi-Fi bursts, and the rest of the ESP32-S3 workflow, from Arduino to MicroPython, works as usual.

Sources

github.comTroubleshooting (arduino-esp32 docs)stackoverflow.comESP32 S3 HSPI / FSPI Guru Meditation Errorelectronics.stackexchange.comESP32: Random restarts, probably due to voltage instabilitiesgithub.comMythologyli/MicroPython-ESP32-S3-N16R8 (GitHub README)

This guide summarises the public sources listed above in our own words. Check the original documentation before relying on exact figures.