Minimum system board STM32F103C8T6 programming guide

STM32F103C8T6 burning program

[Purchase link]: STM32F103C8T6 minimum system board
insert image description here

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

insert image description here

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

insert image description here
insert image description here

insert image description here

After the cable is connected, set the STLINK download program related configuration in KEIL
insert image description here

insert image description here

insert image description here

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

insert image description here

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

insert image description here

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

insert image description here

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

insert image description here

insert image description here

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

Guess you like

Origin blog.csdn.net/thisway_diy/article/details/131247134