M5Stack CoreS3

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

Popular USB-C Native USB
M5Stack CoreS3 board
54 × 54 mm
ESP32-S3
MCU
240MHz
clock
16MB
flash
512KB
SRAM
36· Two 12-bit, 20 Channels ADC
GPIO
BLE 5.0+ WiFi
radio

Pinout

36 pins
View:
M5Stack CoreS3 pinout diagramM5Stack CoreS3 pinout diagram (alternate view)
PinGPIOLabelsStatusCapabilitiesNotes
10G0I2S_MCLKstrapping-
21G1PORT_A_SCLsafe-
32G2PORT_A_SDAsafe-
43G3LCD_CSstrapping-
54G4SD_CSsafe-
65G5safe-
76G6safe-
87G7safe-
98G8PORT_Bsafe-
109G9PORT_Bstrapping-
1110G10ADCstrapping-
1211G11SCLstrappingi2c
1312G12SDAstrappingi2c
1413G13I2S_DOUTstrapping-
1514G14I2S_DINstrapping-
1615G15CAM_D4safe-
1716G16CAM_D5safe-
1817G17PORT_C_TXsafe-
1918G18PORT_C_RXsafe-
2021G21TOUCH_INTsafe-
2133G33I2S_LRCKstrapping-
2234G34I2S_BCLKstrapping-
2335G35LCD_DCMISOstrappingspi
2436G36SCKstrappingspi
2537G37MOSIstrappingspi
2638G38CAM_HREFstrapping-
2739G39CAM_D0strapping-
2840G40CAM_D1strapping-
2941G41CAM_D2strapping-
3042G42CAM_D3strapping-
3143G43TXstrappinguart
3244G44RXstrappinguart
3345G45CAM_PCLKstrapping-
3446G46CAM_VSYNCstrapping-
3547G47CAM_D7strapping-
3648G48CAM_D6strapping-

Start with these

12 pins with no boot or system involvement
G1PORT_A_SCLG2PORT_A_SDAG4SD_CSG5G6G7G8PORT_BG15CAM_D4G16CAM_D5G17PORT_C_TXG18PORT_C_RXG21TOUCH_INT

Freely 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
PinLabelWhat to knowRole
G0GPIO0Must 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
G3GPIO3Sampled at reset to select JTAG interface (USB Serial/JTAG controller vs. external pins). Improper use can disable external JTAG or alter debug interface.Strapping
G39MTCK (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
G40MTDO (GPIO40)Default JTAG TDO output for debugging. Using it as GPIO will interfere with JTAG debugging functionality.Other
G41MTDI (GPIO41)Default JTAG TDI input for debugging. Should be reserved for JTAG or left unused if JTAG is to remain available.Other
G42MTMS (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
G43U0TXD (GPIO43)Used for bootloader output and UART console logs. If repurposed, you will lose the default serial output (and programming via UART0).Other
G44U0RXD (GPIO44)Used for bootloader input (download mode via serial). If repurposed, you cannot use the default UART0 download mode for programming the chip.Other
G45GPIO45Determines 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
G46GPIO46Must 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
PinLabelWhat to knowRole
G9FSPIHDConnected to external flash (data/hold signal) on most modules. Not recommended for use as GPIO, since it must remain dedicated to flash communication.Flash
G10FSPICS0Used to select the external flash chip. It is required for flash access and cannot be repurposed without losing flash connectivityFlash
G11FSPIDUsed 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
G12FSPICLKDrives the flash (and PSRAM) clock. This critical signal must be reserved for memory and not used as general GPIO.Flash
G13FSPIQUsed as a data line for flash/PSRAM transfers. Not available for other uses when flash/PSRAM is connected.Flash
G14FSPIWPConnected to external flash (data/write-protect signal). Not recommended as GPIO because it’s reserved for flash operations.Flash
G33FSPIHDOn 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
G34FSPICS0Wired 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
G35FSPID / PSRAM_D0In 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
G36FSPICLK / PSRAM_CLKIn 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
G37FSPIQ / PSRAM_DQSIn 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
G38FSPIWPOn 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
G47SPICLK_PUsed 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
G48SPICLK_NUsed 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
These are recommendations, not hard rules - with the right pull-ups, timing and boot-state awareness most pins can be made to work. When in doubt, start green.
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 minutes
Tool:
1
Connect over USB
Native USB - no driver, no serial chip. Not detected? Hold BOOT while plugging in.
2
Flash with your tool
Arduino IDE, PlatformIO, ESPHome or esptool - copy the settings on the right.
3
Verify it runs
The blink example uses GPIO1 - swap for your board's LED pin if different.
Tools → Board settings Copy
Board:            M5stack Cores3
USB CDC On Boot:  Enabled
Flash Size:       16MB · QIO
Upload Speed:     921600

// blink
pinMode(1, OUTPUT);
digitalWrite(1, LOW);   // on (often inverted)
platformio.ini Copy
[env:m5stack-cores3]
platform = espressif32
board = esp32-s3-devkitc-1
framework = arduino
monitor_speed = 115200
upload_speed = 921600
device.yaml Copy
esp32:
  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_out
shell Copy
esptool.py --chip esp32s3 --port /dev/ttyACM0 \
  write_flash 0x0 firmware.bin
Build details: sketch space 6553600 B · data 327680 B · QIO

Good to know

board-specific quirks worth 60 seconds
The screen stays black until two other chips are set up illustration
The screen stays black until two other chips are set up
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 (…

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.

5V on the Grove ports is firmware-gated illustration
5V on the Grove ports is firmware-gated
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.

GPIO35 is both SPI MISO and the display's D/C line illustration
GPIO35 is both SPI MISO and the display's D/C line
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.

Specifications

ESP32-S3 · 54 × 54 mm
Compute
MCU
ESP32-S3
Clock
240 MHz
SRAM · Flash
512 KB · 16MB · 8MB (QSPI) PSRAM
Radio
Wi-Fi
802.11 b/g/n
Bluetooth
5.0 LE
Antenna
3D
I/O
GPIO · ADC
36 · Two 12-bit, 20 Channels
UART · I²C · SPI
3 · 2 · 4
PWM
8 channels
Power
USB
USB-C
Serial
Native (CDC)
Boot address
0x0
Display
Screen
IPS LCD · 2.0" · 320x240
Driver
ILI9342C
Touch
FT6336U
Flashing
Upload · OTA
esptool_py · esp_ota
Flash · Boot mode
QIO · QIO
Sketch · Data
6.25 MB · 320 KB
54 mm54 mm
54 × 54 mm
The M5Stack CoreS3 uses esptool_py for firmware uploads, esp_ota for over-the-air (OTA) updates. Flash mode is QIO with QIO boot mode. The maximum sketch size is 6.25 MB with 320 KB available for data.

About 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 questions
What is the difference between the M5Stack CoreS3 and Core2?
The CoreS3 upgrades the SoC from the original ESP32 to the ESP32-S3 (dual-core Xtensa LX7, native USB-OTG, AI vector instructions) and adds a GC0308 camera, proximity sensor, BMM150 magnetometer and dual microphones. It keeps the 2.0" 320x240 capacitive touch display, and swaps the power management to an AXP2101 PMU.
Does the M5Stack CoreS3 work with ESPHome?
Yes. The display, touchscreen, speaker, microphone, microSD slot, RTC and AXP2101 power management are all usable in ESPHome with external components. The BMI270 IMU is not natively supported yet. Note that the display backlight and reset are controlled via the AW9523B IO expander, not direct GPIOs.
Does the M5Stack CoreS3 have a battery?
Yes - the included DinBase adds a 500mAh lithium battery managed by the AXP2101 PMU, so the CoreS3 can run untethered. It can also be powered over USB-C or DC 12V (9-24V range) through the DinBase.
What camera does the M5Stack CoreS3 have?
The CoreS3 has a built-in GC0308 camera with 0.3MP resolution. It is a basic sensor - fine for simple vision experiments, presence detection or QR-code style tasks, but not for high-quality imaging.
How do I program the M5Stack CoreS3?
Via the USB-C port using the ESP32-S3 native USB (OTG & CDC) - no external programmer or drivers needed. It supports UIFlow2, Arduino IDE, ESP-IDF, PlatformIO and ESPHome. Long-press the reset button for 3 seconds (green LED on) to enter download mode if needed - the screen staying black there is normal. If no COM port appears, check the USB cable - charge-only cables are the usual culprit.
What is the difference between the CoreS3 and the CoreS3 SE?
The cheaper SE drops the camera, proximity sensor, BMI270 IMU, BMM150 magnetometer, the 500mAh battery and the DinBase. It keeps the display, dual mics, speaker, RTC and microSD slot. One quirk in the SE's favor - its touch glass extends 40 pixels below the display (320x280 touch area) where the camera used to sit, so it can offer a Core2-style touch zone the regular CoreS3 lacks.
Can the speaker and microphone be used at the same time?
No. The AW88298 amplifier and ES7210 mic ADC share the I2S clock lines, and M5Stack's docs state they cannot run simultaneously - M5Unified requires M5.Speaker.end() before M5.Mic.begin() and vice versa. Plan voice interfaces as listen-then-respond, not full duplex.
Does the CoreS3 have touch buttons below the screen like the Core2?
No - the touch surface is limited to the 320x240 display area, so there is no separate zone below it. The classic A/B/C buttons are emulated in software by mapping the bottom rows of the screen (M5Unified examples and the gob_unifiedButton library do this). Early official docs describing three dedicated touch zones were incorrect and later corrected by M5Stack.

Where to buy

prices are typical street prices
M5Stack CoreS3
M5Stack CoreS3
$60.00per unit, typical
As an Amazon Associate, ESPboards earns from qualifying purchases.

Resources

Similar boards