English
English
简体中文
日本語
pdf-icon

UiFlow Tutorial

UiFlow1 Development Guide

Project Management

Use LTE network

UiFlow1 Blockly

Event

Unit

UiFlow2 Development Guide

UI Editor

Device Security & Sharing

CoreS3: Flash Firmware & Run Code

1. UiFlow2 Firmware Flashing

  1. Refer to the UiFlow2 Web IDE Tutorial to learn the basic workflow of using UiFlow2, and complete the installation of the M5Burner firmware flashing tool.
  2. Log in to M5Burner. After the device is successfully flashed, the device information will be bound to this account.
  1. Download the firmware for CoreS3 in M5Burner, as shown below.
  1. Connect CoreS3 to the computer with a USB cable. After connecting the Type-C cable, when M5Burner shows Found New Device, the connection is successful. At this point, the screen does not display any content. Long-press the G0 button until the indicator changes from red to green to enter download mode.
  1. In M5Burner, click the Burn button for the corresponding firmware, select the corresponding device port, and click Start.
  1. Enter the Wi-Fi configuration required by the device, including Wi-Fi SSID and Wi-Fi Password, as well as other device configurations that need to be added or modified. Then click Next to start flashing.

Configuration information:

  • COM: Select the serial port corresponding to the device
  • BaudRate: Baud rate for serial communication
  • Server: Server address connected by the device
  • WIFI SSID/WIFI Password: Wi-Fi name and password used by the device
  • SNTP Server:
    • SNTP0: Alibaba Cloud NTP server (China)
    • SNTP1: Japan NTP server pool
    • SNTP2: Global public NTP server pool
  • Timezone: Time zone setting
  • Boot Option: Set the device startup mode after firmware flashing is complete
    • run main.py directly: After flashing is complete, directly run the program in main.py without connecting to the network or displaying the UiFlow2 startup screen
    • show startup menu and network setup: The device connects to the network, and devices with screens will display the UiFlow2 startup screen
    • only network setup: The device only connects to the network and does not display the UiFlow2 startup screen
  • Power supply mode:
    • USB input power
    • Grove output power
  1. When Burn successfully, click here to return is displayed, the flashing is successful. Reset the device at this time.
  1. After firmware flashing is complete, if you need to modify the device configuration, keep the USB connection, restart the device, and click the Configure option to modify it according to the on-screen instructions.

2. Device Connection

The device supports connecting to UiFlow2 through Access Code (wireless network) or USB (wired connection to a computer) for program upload and debugging. Refer to the following tutorials for detailed operations:

Access Code Wireless Connection

  1. Before connecting, make sure the device is connected to the network. If the network connection fails, check whether the Wi-Fi name and password entered during firmware flashing are correct, and modify them through the Configure option in M5Burner before flashing again.

  1. View the currently generated valid Access Code on the device's UiFlow2 startup screen.
  1. Visit uiflow2.m5stack.com to open the UiFlow2 Web IDE.

  2. Click Select Your Controller (shown on first entry) or the Controller button on the page to enter the Select Device page.

  1. Click Connect Device, enter the access code and a custom device name, then click Confirm to connect CoreS3 to UiFlow2.

USB Wired Connection

  1. Visit uiflow2.m5stack.com to open the UiFlow2 Web IDE, and connect CoreS3 to the computer with a USB cable.

  2. Click Select Your Controller (shown on first entry) or the Controller button on the page to enter the Select Device page.

  3. Select the CoreS3 device from the device list, then click Confirm.

  1. Click the WebTerminal button, select the serial port of CoreS3 in the pop-up window, and click Connect.

When the WebTerminal screen displays Connected to Serial Port!, the USB connection is successful.

3. Program Run and Download

After the device is connected to UiFlow2, you can drag Blockly blocks to edit programs.

After editing the program, click the Run Once button in the lower-right corner of the interface to run the test program once. Click the Run Always button to download the program to the device.

You can also run once or download the program in the WebTerminal window.

Built-in Peripheral Development

Video

On This Page