M5Core Program Compilation and Flashing

1. Preparation

2. USB Driver Installation

Click the links below to download the driver program matching your operating system. Currently, there are two versions of driver chips, CP210X (for the CP2104 version)/CP34X (for the CH9102 version) driver packages. After extracting the package, select the installation package corresponding to your operating system's bit version for installation. (If you are not sure which USB chip your device uses, you can install both drivers. During the installation of CH9102_VCP_SER_MacOS v1.7, an error may occur, but the installation is actually completed, so you can ignore it.)
Driver Name Applicable Driver Chip Download Link
CP210x_VCP_Windows CP2104 Download
CP210x_VCP_MacOS CP2104 Download
CP210x_VCP_Linux CP2104 Download
CH9102_VCP_SER_Windows CH9102 Download
CH9102_VCP_SER_MacOS v1.7 CH9102 Download

3. Port Selection

  1. Connect the device to the computer via USB cable. After the driver installation is completed, you can select the corresponding device's port in the Arduino IDE.

4.Download the M5Stack library file

  • 1.Open the library file manager

  • 2.Enter M5Stack to download the library file

5. Program Compilation & Flashing

  1. Open an example program from the driver library, click the upload button, and the program will automatically compile and flash.
On This Page