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
- 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;
- Setting jumpers holding
BOOT0 为高电平
,BOOT1 为低电平
; 复位
The microcontroller enters the bootloader mode and downloads the program through the upper computer;- The download is complete, set the jumpers remain
BOOT0 为低电平
,BOOT1 为低电平
; 复位
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
- Search the serial port, set the baud rate to 115200 (
或者更低的波特率,否则容易出错
) - Select the HEX file to download
- Choice
校验
,编程后执行
- select
DTR 低电平复位,RTS 高电平进入bootloader
- Start programming. If there is always connection, press the reset button
• Written by Leung on October 17, 2020