STM32F103 study notes (7)-ISP serial port download program

1. ISP

ISP (In-System Programming) is programmable in the system, which means that blank devices on the circuit board can be programmed and written into end-user code without removing the device from the circuit board. The programmed devices can also be erased or erased in ISP mode. Reprogram.
The (bootloader) bootloader is needed for ISP. The bootloader is stored in the internal bootloader ROM memory (system memory) of the STM32 device. Its main task is to download the application program to the internal Flash through an available serial peripheral (USART, CAN, USB, I2C, etc.). Each serial interface defines a corresponding communication protocol, which contains compatible command sets and sequences.

1.1 BOOT configuration

1.2 ISP ordinary download

  1. Connect the computer to the USART1 of the STM32 through a USB to serial cable, and turn on the host computer on the computer side;
  2. Setting jumpers holding BOOT0 为高电平, BOOT1 为低电平;
  3. 复位The microcontroller enters the bootloader mode and downloads the program through the upper computer;
  4. The download is complete, set the jumpers remain BOOT0 为低电平, BOOT1 为低电平;
  5. 复位The microcontroller can start the user code and run normally.

2. Serial port download program

Download link of mcuisp
: https://pan.baidu.com/s/15EIomHccqZj-VGBHYzSpLw Extraction code: 52pj

  1. Search the serial port, set the baud rate to 115200 ( 或者更低的波特率,否则容易出错)
  2. Select the HEX file to download
  3. Choice 校验,编程后执行
  4. selectDTR 低电平复位,RTS 高电平进入bootloader
  5. Start programming. If there is always connection, press the reset button


Written by Leung on October 17, 2020

Guess you like

Origin blog.csdn.net/qq_36347513/article/details/109155773