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.
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 Speed | 240 MHz |
Flash size | 16MB |
Microcontroller | esp32 |
Architecture | xtensa |
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) .
Pin | Analog | Touch | PWM | Other |
---|---|---|---|---|
0 | G0 | |||
1 | PWM | TX G1 | ||
2 | PWM | G2 | ||
3 | PWM | RX G3 | ||
5 | PWM | SS G5 | ||
12 | PWM | G12 | ||
13 | PWM | RX2 G13 | ||
14 | PWM | TX2 G14 | ||
15 | PWM | G15 | ||
17 | PWM | G17 | ||
18 | PWM | SCK G18 | ||
19 | PWM | G19 | ||
21 | PWM | G21 | ||
22 | PWM | G22 | ||
23 | PWM | MOSI G23 | ||
25 | PWM | G25 DAC1 | ||
26 | PWM | G26 DAC2 | ||
27 | PWM | G27 | ||
32 | PWM | SDA G32 | ||
33 | PWM | SCL G33 | ||
34 | G34 | |||
35 | G35 ADC1 | |||
36 | G36 ADC2 | |||
38 | MISO G38 |
Default Tools
Bootloader tool | esptool_py |
Uploader tool | esptool_py |
Network uploader tool | esp_ota |
Bootloader address | 0x1000 |
Flash mode | dio |
Boot mode | dio |
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. When using Arduino IDE, the maximum sketch upload size is 6400 Kb (6553600 B) and maximum data size for variables is 4416 Kb (4521984 B).