Welcome to DOFBOT SE repository
3.Write STM32 firmware
Download Program
Using Serial Port Download
Firmware Download Address: Source Package - 【Firmware】- 【stm32 firmware】= 【template.hex】
Since the Dofbot expansion board we provide already has an integrated CH340 serial download circuit, you only need to plug in the STM32F103C8T6, connect the power, and use a USB cable to connect the expansion board to your computer. Then you can download the program via serial tools.
This tutorial uses mcuisp.exe software for serial port download. The main points to note during download:
①. Select the corresponding serial port;
②. Baud rate is 115200;
③. Click the "..." button to select the HEX format file to download; here select stm32 firmware template.hex from the provided source package
④. The lower left DTR and RTS settings must be correct (select Reset@DTR Low(<-3V),ISP @RTS High)

Finally, use a jumper cap to set boot0 to 1 on the STM32 core board, click "Start Programming". When you see the green progress bar filled, the program download is successful!


After successful burning, set boot0 to 0 on the STM32 core board to use it normally. If normal, you can see the PC13 LED blink once per second.
