pdf-icon

M5Tough Program Compilation and Upload

1. Preparation

  • Library Installation: Refer to the Library Management Installation Guide to complete the installation of the M5Tough driver library. After downloading the library files, manually install them into the Arduino library folder as shown below.

2. USB Driver Installation

Driver Installation Tip
There are currently two versions of the driver chip, CP210X (for the CP2104 version) and CP34X (for the CH9102 version). Download and install the driver package corresponding to your operating system. (If you are unsure which USB chip your device uses, you can install both drivers. CH9102_VCP_SER_MacOS v1.7 may show an error during installation, but it has actually completed successfully, so you can ignore the error.)
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
Port Selection on MacOS
On MacOS, there may be two available ports. When using them, please select the port named wchmodem.

3. Port Selection

Connect the device to the computer via a USB cable. After completing the driver installation, select the corresponding device port in the Arduino IDE.

4. Program Compilation & Upload

Open the example program “Helloworld” from the driver library. Click the upload button to automatically compile and upload the program.

The effect is as shown below:

On This Page