User Instructions for TYDE3.0 Tuya Smart IoT Development Board
7 MODULE FIRMWARE PROGRAMING FOR STM32 AND TYWE1S
7 Module Firmware Programing for STM32 and TYWE1S
Note:
if STM32 chip is to be developed based on the Demo program provided by
Tuya Smart, you can refer to the following methods to program or upgrade STM32
firmware.
7.1 STM32 Using Serial Port Downloader
The development board has CP2012 USB-to-serial-port chip. Therefore, you can
use the USB cable to connect to the computer to upgrade STM32 program. ST’s
Flash_Loader is required. “Flash_Loader_Demonstrator” is available in our dataset,
and users can download and install it on their computers.
Step 1: connect RX and TX at the serial port connection end of the MCU and USB-
to-serial-port chip through the short-circuit block, as shown in the figure below; and
then supply power to the development board with the USB cable. This step has
been done when the development board is produced.
Step 2: press the BOOT button of MCU first, and then press the RESET button of
MCU; release the RESET button, and then release the BOOT button. Those buttons
are shown in the figure below.
Step 3: open ST’s official serial port programing software, “Falsh Loader” (it can be
29 / 38