Skip to main content
ESPBoards

M5Stack-Core2 Development Board Pinout and Technical Specifications

Code name: M5STACK_Core2

M5Stack-Core2 development board is based on esp32 microcontroller and uses xtensa architecture. This development board has a maximum CPU frequency of 240 MHz and a flash size of 16MB.


Quick Links

M5Stack-Core2 imageM5Stack-Core2 imageM5Stack-Core2 imageM5Stack-Core2 image

M5Stack-Core2 Specs

Below you can find the specifications of M5Stack-Core2, such as features, connectivity options, and M5Stack-Core2 technical specs.

Features

  • 40 digital IO pins
  • 16 external interrupt pins
  • 16 analog input pins
  • 19 PWM pins

Connectivity

  • WiFi: 802.11 b/g/n (2.4 GHz)
  • Bluetooth: 4.2
  • WiFi: 4.2

Technical specs

Clock Speed240 MHz
Flash size16MB
Microcontrolleresp32
Architecturextensa

M5Stack-Core2 Pinout

M5Stack-Core2 Pins Mapping Arduino IDE

Below you can find the M5Stack-Core2 pinout. This development board provides 40 digital IO pins, out of which 16 can be used as an external interrupt pins , 16 as analog input pins and 19 pins have Pulse-Width Modulation (PWM) .

PinAnalogTouchPWMOther
0G0
1PWMTX G1
2PWMG2
3PWMRX G3
5PWMSS G5
12PWMG12
13PWMRX2 G13
14PWMTX2 G14
15PWMG15
17PWMG17
18PWMSCK G18
19PWMG19
21PWMG21
22PWMG22
23PWMMOSI G23
25PWMG25 DAC1
26PWMG26 DAC2
27PWMG27
32PWMSDA G32
33PWMSCL G33
34G34
35G35 ADC1
36G36 ADC2
38MISO G38
Analog - Analog input pins
Touch - Touch pins
Function - Function pins
RX / TX - Receive (RX) / Transmit (TX)
LED_BUILTIN - Built-in LED
PWM - Pulse-Width Modulation

Default Tools

Bootloader toolesptool_py
Uploader toolesptool_py
Network uploader toolesp_ota
Bootloader address0x1000
Flash modedio
Boot modedio
PSRAM type
Maximum upload size
6400 Kb
(6553600 B)
Maximum data size
4416 Kb
(4521984 B)

The M5Stack-Core2 development board by default uses esptool_py uploader tool, esp_ota network uploader tool for Over-the-air (OTA) uploads and esptool_py bootloader tool. The bootloader starts at address "0x1000". Flash mode and boot mode for M5Stack-Core2 development board by default is dio and dio respectively.