STM32F103C8T6 burning program
[Purchase link]: STM32F103C8T6 minimum system board
Method 1: Use SWD mode to burn
At this time, BOOT0 = 0, BOOT1 = X (arbitrary), and the connection method of the jumper cap is shown in the figure below
After connecting, if you have STLINK at hand, you can use SWD mode to download the program, and connect the pins to the STLINK line sequence according to the schematic diagram, as shown in the figure below
After the cable is connected, set the STLINK download program related configuration in KEIL
After making sure that the STLINK configuration is complete and can be recognized normally, click the download button in KEIL to burn the pre-written lighting program into it
After the burning is completed, you can see the green LED light is on (if there is no response, press Reset to try), indicating that the program has been downloaded successfully and can run normally
Method 2: Use the serial port to download the program and burn it
At this time, BOOT0 = 1, BOOT1 = 0, and the connection method of the jumper cap is shown in the figure below
The smallest system board does not integrate a USB-to-TTL chip. You need to prepare your own USB-to-TTL module and initialize USART1. Connect the TXD of the USB-to-TTL module to USART1_RX (PA10) on the smallest system board, and connect RXD to USART1_TX (PA9)
After the connection is correct, open the pre-downloaded FLYMCU tool, and first perform some configurations
After configuring, select the pre-written program and click 开始编程
the button. At this time, you need to press the Reset button on the development board to enter the serial port burning mode
After the download is complete, set BOOT0 to 0 by switching the jumper cap, and press the Reset button again to find that the LED light is on, indicating that the program download is complete and can run normally