StickS3: Flash Firmware & Run Code
1. Preparation
- Refer to the UIFlow2 Web IDE Tutorial to learn the basic workflow of using UiFlow2, and complete the installation of the M5Burner firmware burning tool.
- Register and log in to M5Burner. After the device is successfully burned, the device information will be bound to this account simultaneously.
2. Firmware Burning
- Connect the device with a USB cable and press and hold the reset button on the side of the device. When the green LED inside the device flashes, it indicates that the device has successfully entered download mode.
- Download the firmware compatible with
StickS3 in M5Burner, as shown in the figure below.
- Connect the device to the computer via a USB cable. In M5Burner, click the
Burn button of the corresponding firmware, select the appropriate device port, and then click Start.
- Fill in the Wi-Fi configuration required for the device to connect, including Wi-Fi SSID and Wi-Fi Password, as well as any other device configurations that need to be added or modified. Then click
Next to start burning.
When the prompt Burn successfully, click here to return appears, it indicates that the burning process was successful. At this time, restart the device to make the burned information take effect.
- COM: Serial port
- BaudRate: Baud rate of serial communication
- Server: Server address that the device connects to
- WIFI SSID/WIFI Password: Wi-Fi name and password that the device connects to
- 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
- run main.py directly: Run main.py directly
- show startup nemu and network setup: Display the startup interface (NEMU) and network
- only net work setup: Network setup only
3. Log in to UiFlow2
Enter the UiFlow2 page and click the user icon in the upper right corner of the page to log in to your UiFlow2 system account.
UiFlow2 Account
This account must be the same as the one used to log in to M5Burner. After successful account login, devices under this account that are connected to a valid Wi-Fi network can be viewed by clicking Select Device. If you need to change the device owner, you must unbind the device from the account.
5. Enter Programming Page
You can connect the device to UiFlow2 via USB or Pair Code to enter the programming page. The specific methods are as follows:
USB Method
- Connect StickS3 to the computer via a USB cable. After selecting the StickS3 device module in the device list, click
Confirm.
- Click the
WebTerminal button.
- In the pop-up window, select the serial port of
StickS3 and click Connect.
When the WebTerminal screen displays Connected to Serial Port!, it indicates that the USB connection is successful and you have entered the device’s UiFlow2 programming page.
Pair Code Method
Description
Before using the Pair Code, please ensure that StickS3 is connected to the network. The pairing code generated by the device is valid for 2 hours.
On the StickS3 device, press the middle Button to view the currently generated valid Pair Code in the Pair Code description area of the Cloud UI interface.
After entering the Pair Code, click Add Device to connect StickS3 to UiFlow2.
6. RUN
After completing the above steps, you can start programming with UiFlow2.