M5Stack CoreS3
by M5 Stack
Feature-packed ESP32-S3 dev kit with touch display, camera, mic, speaker, IMU and SD card - everything integrated, prototype-ready out of the box.

Pinout
36 pins| Pin | GPIO | Labels | Status | Capabilities | Notes |
|---|---|---|---|---|---|
| 1 | 0 | G0I2S_MCLK | strapping | - | |
| 2 | 1 | G1PORT_A_SCL | safe | - | |
| 3 | 2 | G2PORT_A_SDA | safe | - | |
| 4 | 3 | G3LCD_CS | strapping | - | |
| 5 | 4 | G4SD_CS | safe | - | |
| 6 | 5 | G5 | safe | - | |
| 7 | 6 | G6 | safe | - | |
| 8 | 7 | G7 | safe | - | |
| 9 | 8 | G8PORT_B | safe | - | |
| 10 | 9 | G9PORT_B | strapping | - | |
| 11 | 10 | G10ADC | strapping | - | |
| 12 | 11 | G11SCL | strapping | i2c | |
| 13 | 12 | G12SDA | strapping | i2c | |
| 14 | 13 | G13I2S_DOUT | strapping | - | |
| 15 | 14 | G14I2S_DIN | strapping | - | |
| 16 | 15 | G15CAM_D4 | safe | - | |
| 17 | 16 | G16CAM_D5 | safe | - | |
| 18 | 17 | G17PORT_C_TX | safe | - | |
| 19 | 18 | G18PORT_C_RX | safe | - | |
| 20 | 21 | G21TOUCH_INT | safe | - | |
| 21 | 33 | G33I2S_LRCK | strapping | - | |
| 22 | 34 | G34I2S_BCLK | strapping | - | |
| 23 | 35 | G35LCD_DCMISO | strapping | spi | |
| 24 | 36 | G36SCK | strapping | spi | |
| 25 | 37 | G37MOSI | strapping | spi | |
| 26 | 38 | G38CAM_HREF | strapping | - | |
| 27 | 39 | G39CAM_D0 | strapping | - | |
| 28 | 40 | G40CAM_D1 | strapping | - | |
| 29 | 41 | G41CAM_D2 | strapping | - | |
| 30 | 42 | G42CAM_D3 | strapping | - | |
| 31 | 43 | G43TX | strapping | uart | |
| 32 | 44 | G44RX | strapping | uart | |
| 33 | 45 | G45CAM_PCLK | strapping | - | |
| 34 | 46 | G46CAM_VSYNC | strapping | - | |
| 35 | 47 | G47CAM_D7 | strapping | - | |
| 36 | 48 | G48CAM_D6 | strapping | - |
Start with these
12 pins with no boot or system involvementFreely assignable - no strapping, flash, USB or JTAG duties. Ideal first picks for buttons, sensors and LEDs.
Fine - with a little care
sampled at boot or shared with debug/serial| Pin | Label | What to know | Role |
|---|---|---|---|
| G0 | GPIO0 | Must be pulled high (default) or low (to enter UART download mode) at reset. Using it for other functions can interfere with boot mode configuration. | Strapping |
| G3 | GPIO3 | Sampled at reset to select JTAG interface (USB Serial/JTAG controller vs. external pins). Improper use can disable external JTAG or alter debug interface. | Strapping |
| G39 | MTCK (GPIO39) | Default JTAG debugging TCK pin. If JTAG is needed, this pin must be free; it may also be used internally for PSRAM chip select on certain modules, so avoid repurposing it. | Other |
| G40 | MTDO (GPIO40) | Default JTAG TDO output for debugging. Using it as GPIO will interfere with JTAG debugging functionality. | Other |
| G41 | MTDI (GPIO41) | Default JTAG TDI input for debugging. Should be reserved for JTAG or left unused if JTAG is to remain available. | Other |
| G42 | MTMS (GPIO42) | Default JTAG TMS signal for debugging. Using this pin for other purposes will disable the JTAG interface (unless JTAG is rerouted to USB). | Other |
| G43 | U0TXD (GPIO43) | Used for bootloader output and UART console logs. If repurposed, you will lose the default serial output (and programming via UART0). | Other |
| G44 | U0RXD (GPIO44) | Used for bootloader input (download mode via serial). If repurposed, you cannot use the default UART0 download mode for programming the chip. | Other |
| G45 | GPIO45 | Determines flash/PSRAM power voltage (3.3 V vs 1.8 V) at boot. Must match hardware configuration; using as GPIO can upset flash supply setting. | Strapping |
| G46 | GPIO46 | Must be at a defined level during reset (with GPIO0) to select normal or download boot and UART/USB print mode. This pin is input-only (no output drive), so it should be left for its intended strapping function. | Strapping |
Only if you know the tricks
wired to flash or USB - expect a fight| Pin | Label | What to know | Role |
|---|---|---|---|
| G9 | FSPIHD | Connected to external flash (data/hold signal) on most modules. Not recommended for use as GPIO, since it must remain dedicated to flash communication. | Flash |
| G10 | FSPICS0 | Used to select the external flash chip. It is required for flash access and cannot be repurposed without losing flash connectivity | Flash |
| G11 | FSPID | Used as a data line for flash (and in-package PSRAM). It should not be used as GPIO when the flash/PSRAM is in use. | Flash |
| G12 | FSPICLK | Drives the flash (and PSRAM) clock. This critical signal must be reserved for memory and not used as general GPIO. | Flash |
| G13 | FSPIQ | Used as a data line for flash/PSRAM transfers. Not available for other uses when flash/PSRAM is connected. | Flash |
| G14 | FSPIWP | Connected to external flash (data/write-protect signal). Not recommended as GPIO because it’s reserved for flash operations. | Flash |
| G33 | FSPIHD | On chips/modules with integrated flash, this IO is wired to the flash hold pin internally. It cannot be reassigned to GPIO without breaking flash access. | Flash |
| G34 | FSPICS0 | Wired to the chip select of the internal flash in flash-equipped variants. It must remain low during flash operation, so it’s not available for other use. | Flash |
| G35 | FSPID / PSRAM_D0 | In modules with octal PSRAM, this pin is connected to the PSRAM data line. It is reserved for memory interface and not free for general GPIO when flash/PSRAM is present. | Flash |
| G36 | FSPICLK / PSRAM_CLK | In modules with octal PSRAM, this pin drives the PSRAM clock. It must be dedicated to the memory interface, not used as a regular GPIO when that interface is in use. | Flash |
| G37 | FSPIQ / PSRAM_DQS | In modules with octal PSRAM, this pin is connected to the PSRAM’s DQS signal. It cannot be repurposed without disrupting the PSRAM/flash communication. | Flash |
| G38 | FSPIWP | On flash-equipped chips, this pin is tied to the flash’s WP# (or D3) line. It should be avoided for other use, as it’s needed for flash operations. | Flash |
| G47 | SPICLK_P | Used only on variants with Octal SPI interface (e.g. ESP32-S3R16V) as part of the differential clock pair. On such chips it operates at 1.8 V and is reserved for the high-speed octal SPI clock, not for general GPIO use. | Flash |
| G48 | SPICLK_N | Used only on variants with Octal SPI interface, as the negative leg of the differential clock&. On such chips it operates at 1.8 V; it should be avoided for GPIO to prevent conflicts with the octal flash/PSRAM clock. | Flash |
Pinout notes The M5Stack CoreS3 pinout brings out 36 GPIO pins - every one of them usable in your project. For peripherals, I²C is mapped to SDA on GPIO12 and SCL on…
The M5Stack CoreS3 pinout brings out 36 GPIO pins - every one of them usable in your project.
For peripherals, I²C is mapped to SDA on GPIO12 and SCL on GPIO11; the SPI bus (MOSI, MISO, SCK) is broken out in full; TX/RX on GPIO43 and GPIO44 cover serial logging and flashing.
If you want zero surprises, G1, G2, G4, G5 and 8 more are free of any such role - the safest first picks. 10 of the exposed pins carry boot-time or system duties on the ESP32-S3 (G0, G3, G39 and 7 more).
Unlike bare dev boards, the M5Stack CoreS3 doesn't expose a classic pin header. Instead, its GPIOs are available through the M5-Bus - a 30-pin connector on the bottom that provides GPIO, I2C, SPI, I2S, UART and ADC access for stacking modules and bases.
For quick peripheral hookups there are three Grove (HY2.0-4P) ports: Port A (G1/G2, external I2C), Port B (G8/G9, GPIO/ADC) and Port C (G17/G18, UART). This is easily the fastest way to attach sensors without any soldering.
Internally, most of the onboard peripherals live on the internal I2C bus (G12 SDA / G11 SCL) - the AXP2101 PMU, AW9523B IO expander, IMU, magnetometer, RTC, touch controller and proximity sensor all share it. The display and microSD slot share the SPI bus (G36 SCK / G37 MOSI), and the microphone and speaker share the I2S bus.
Keep in mind that the display reset and backlight are controlled through the AW9523B IO expander rather than direct GPIOs - something to remember when configuring ESPHome or writing your own drivers.
Getting started
flash your first firmware in ~2 minutesBoard: M5stack Cores3
USB CDC On Boot: Enabled
Flash Size: 16MB · QIO
Upload Speed: 921600
// blink
pinMode(1, OUTPUT);
digitalWrite(1, LOW); // on (often inverted)[env:m5stack-cores3]
platform = espressif32
board = esp32-s3-devkitc-1
framework = arduino
monitor_speed = 115200
upload_speed = 921600esp32:
board: esp32-s3-devkitc-1
variant: m5stack_cores3
framework:
type: esp-idf
# blink - GPIO1
output:
- platform: gpio
pin: 1
id: led_out
light:
- platform: binary
name: "LED"
output: led_outesptool.py --chip esp32s3 --port /dev/ttyACM0 \
write_flash 0x0 firmware.binGood to know
board-specific quirks worth 60 secondsThe backlight is not a GPIO - it is the AXP2101's DLDO1 rail , and brightness is set by varying that rail's voltage (about 2.6-3.3V). LCD reset and touch reset sit on the AW9523B IO expander (pins 9 and 0). Firmware that doesn't initialize both chips gets a black screen and no error anywhere - M5Unified/M5GFX do this for you, custom drivers must do it themselves. In ESPHome the display itself is native (…
The backlight is not a GPIO - it is the AXP2101's DLDO1 rail, and brightness is set by varying that rail's voltage (about 2.6-3.3V). LCD reset and touch reset sit on the AW9523B IO expander (pins 9 and 0). Firmware that doesn't initialize both chips gets a black screen and no error anywhere - M5Unified/M5GFX do this for you, custom drivers must do it themselves.
In ESPHome the display itself is native (mipi_spi, model M5CORE, invert_colors: true), but the AXP2101 and AW9523B need M5Stack's external components from github://m5stack/esphome-yaml.
Grove and M-Bus 5V comes from a boost converter that firmware has to switch on through the AW9523B ( BOOST_EN pin 15, BUS_OUT_EN pin 1). Skip that and a meter shows only ~0.5V on Port A. In Arduino/M5Unified it's M5.Power.setExtOutput(true) ; in UIFlow, the "Set external port power to output mode" block. M5Unified also cuts external output when the battery drops to about 8% with no charger attached. The…
Grove and M-Bus 5V comes from a boost converter that firmware has to switch on through the AW9523B (BOOST_EN pin 15, BUS_OUT_EN pin 1). Skip that and a meter shows only ~0.5V on Port A. In Arduino/M5Unified it's M5.Power.setExtOutput(true); in UIFlow, the "Set external port power to output mode" block. M5Unified also cuts external output when the battery drops to about 8% with no charger attached.
The gate works both ways - when powering the CoreS3 from a Grove port or the DC input, official docs require cfg.output_power = false, or the board fights its own supply.
The display and microSD slot share one SPI bus (SCK G36 , MOSI G37 ), and GPIO35 does double duty : it is SPI MISO for the SD card and the D/C line for the LCD. M5GFX flips the pin between input and output on every chip-select change, so the two can never be on the bus at the same moment - drawing an image straight from the SD card crashes with a bus conflict. Keep SD reads and screen redraws sequential: load…
The display and microSD slot share one SPI bus (SCK G36, MOSI G37), and GPIO35 does double duty: it is SPI MISO for the SD card and the D/C line for the LCD. M5GFX flips the pin between input and output on every chip-select change, so the two can never be on the bus at the same moment - drawing an image straight from the SD card crashes with a bus conflict.
Keep SD reads and screen redraws sequential: load the file into RAM (or copy to flash) first, then draw. Streaming from card to screen is the one pattern that reliably fails.
Gallery
9 photosSpecifications
ESP32-S3 · 54 × 54 mmAbout this board
At its core is the ESP32-S3 - a dual-core Xtensa with vector extensions suited to AI workloads.
Expect to pay about $60.00 - above the ~$30 typical for ESP32-S3 boards.
36 GPIO are broken out - more than most ESP32-S3 boards, so the pin budget is rarely the constraint.
Onboard you'll find 8MB (QSPI) PSRAM, an IPS LCD 2.0" 320x240 display with touch, a GC0308 camera (0.3MP), a microSD slot, a microphone (Dual mic array), a speaker, an audio codec (ES7210), an amplifier (AW88298), a BMI270 + BMM150 IMU, a BM8563 RTC, an ambient-light sensor (LTR-553) and battery charging (AXP2101).
It flashes over native USB - no serial-converter driver needed, which isn't a given among ESP32-S3 boards.
The M5Stack CoreS3 is the third-generation flagship of the M5Stack Core series, built around the ESP32-S3 (dual-core @ 240 MHz, 16 MB flash, 8 MB PSRAM). It's less of a bare dev board and more of a complete, enclosed development kit - a 2.0" capacitive-touch IPS display behind glass, in a solid case with a proper power button.
The integrated peripheral list is long: a GC0308 camera, microSD card slot, dual microphones (ES7210 codec), a 1W speaker on an AW88298 I2S amplifier, a BMI270 IMU with BMM150 magnetometer, a proximity sensor, a BM8563 RTC, and an AXP2101 power management chip handling it all.
It ships with the DinBase - a bottom module that adds a 500 mAh battery, DC 9-24V power input, and DIN-rail / wall / screw mounting options.
It's bulkier than a bare board, but that's the trade-off: everything is already wired up, so instead of breadboarding a display, camera, mic and battery charger yourself, you flash it and start prototyping.
- 2.0" capacitive-touch IPS display (320x240, ILI9342C) behind high-strength glass
- GC0308 0.3MP camera with LTR-553ALS-WA proximity sensor
- Dual microphones with ES7210 codec + 1W speaker via AW88298 I2S amplifier
- BMI270 6-axis IMU and BMM150 3-axis magnetometer
- BM8563 RTC with sleep-timer wake-up
- AXP2101 power management IC and AW9523B IO expander
- microSD card slot (shares SPI bus with the display)
- Three Grove ports (I2C / GPIO / UART) and 30-pin M5-Bus expansion
- Included DinBase: 500mAh battery, DC 12V (9-24V) input, DIN-rail / wall / screw mounting, proto areas
- Dedicated power button and reset button (long-press for download mode)
FAQ
8 common questionsWhat is the difference between the M5Stack CoreS3 and Core2?›
Does the M5Stack CoreS3 work with ESPHome?›
Does the M5Stack CoreS3 have a battery?›
What camera does the M5Stack CoreS3 have?›
How do I program the M5Stack CoreS3?›
What is the difference between the CoreS3 and the CoreS3 SE?›
Can the speaker and microphone be used at the same time?›
Does the CoreS3 have touch buttons below the screen like the Core2?›
Where to buy
prices are typical street prices
Resources
Similar boards

















