pdf-icon

UiFlow Tutorial

UiFlow1 Development Guide

Project Management

Use LTE network

UiFlow1 Blockly

Event

Unit

UiFlow2 Development Guide

UI Editor

Device Security & Sharing

Unit C6L: Flash Firmware & Run Code

1. Preparation

  • Refer to the UIFlow2 Web IDE tutorial to understand the basic workflow of using UiFlow2 and complete the installation of the M5Burner firmware burning tool.
  • Log in/register M5Burner. After the device is successfully burned, the device information will be bound to the account.

2. Firmware Burning

  1. Connect the device to the computer via a USB Type-C data cable. Press and hold the reset button on the side for 3 seconds until the green light turns red. At this point, the device enters download mode, waiting for burning.
  1. In M5Burner, download the firmware compatible with Unit C6L as shown below.
  1. Connect the device to the computer via USB cable, click the Burn button for the corresponding firmware in M5Burner, select the corresponding device port, then click Start.
  1. Fill in the Wi-Fi configuration the device needs to connect to, including Wi-Fi SSD and Wi-Fi Password and other device configuration to be added or modified, then click Next to start burning.
Note
If your device is connecting for the first time, you need to bind the device to this account.
  1. When prompted Burn successfully, click here to return, the burning is successful. Restart the device to apply the burning information.

Configuration Information Description

  • COM: Serial port
  • BaudRate: Baud rate for serial communication
  • Server: Server address the device connects to
  • WIFI SSID/WIFI Password: Device's Wi-Fi name and password
  • SNTP Server
    • SNTP0: Aliyun NTP server (China)
    • SNTP1: Japan NTP server pool
    • SNTP2: Global public NTP server pool
  • Timezone: Time zone setting
  • Boot Option
    • run main.py directly: Run main.py directly
    • show startup nemu and network setup: Show startup interface (NEMU) and network setup
    • only network setup: Network setup only

3. Modify Device Configuration

After completing firmware burning, if you need to change device configuration, keep the USB connected, restart the device, use M5Burner and click Configure, then make changes in the configuration interface and click next to re-burn the modified configuration.

4. Log in to UiFlow2

Go to the UiFlow2 page, click the user icon in the upper right corner to log into the UiFlow2 system account.

UiFlow2 Account
This account must be the same as the one used for M5Burner. Once logged in successfully, devices connected to valid Wi-Fi under this account can be viewed by clicking Select Device. To change the device owner, you need to unbind the device from the account.

5. Enter Programming Page

You can connect the device to UiFlow2 via Wi-Fi or USB to enter the programming page. Specific methods are as follows:

Wi-Fi Method

Note
Ensure Wi-Fi is configured: When burning programs, you need to configure Wi-Fi and other information in Configure in M5Burner.

Enter the device list.

Select the online device and click Confirm.

Successfully enter the device's UiFlow2 programming page.

USB Method

  1. Connect Unit C6L to the computer via USB cable, select the Unit C6L device module from the device list, then click Confirm.
  1. Click the WebTerminal button.
  1. In the pop-up window, select the serial port of Unit C6L and click Connect.

When the WebTerminal screen displays Connected to Serial Port!, the USB connection is successful, and you will enter the device's UiFlow2 programming page.

6. RUN

After completing the above steps, you can start programming using UiFlow2.

On This Page