当前位置:网站首页>Analysis of ISP one click download principle in stm32
Analysis of ISP one click download principle in stm32
2022-07-24 12:43:00 【I'm not a cabbage】
If our development board doesn't have a one click download circuit , When we download the program, we should put boot 0 The jump from GND Become connected VCC, Then download , Press the reset button once to burn the program , Finally, connect VCC Become connected GND, And press reset again , In this way, the single chip microcomputer can run the program , Every burning procedure is troublesome . And when our MCU has a one click download circuit , There is no need to change boot 0 Value , Direct burning can run . Let me analyze the one click download circuit .
- Three working modes
| BOOT 0 | BOOT 1 | Starting mode |
| 0 | X | Inside FLASH |
| 1 | 0 | System memory |
| 1 | 1 | Inside SRAM |
- ISP One click download circuit


The picture above 1 It's the punctual atomic elite version ISP One click download schematic , chart 2 yes mcuisp Burn Software . Look at the picture first 2 The serial number I circled in 1 The content in ,DTR Is a low level ,RTS Is a high level . Find the figure again 1 Corresponding point in DTR# and RTS#, there DTR# and RTS# Indicates the meaning of the reverse sign . Because of our mcuisp The software uses 232 Standard level , And MCU is ttl level , Their levels are opposite . So in the schematic diagram DTR There's a... In the back # It means that we CH340G The chip receives DTR Is a high level ( The serial number circled with me 1 Medium DTR The low level is opposite, so it is high level ). Is not to say that CH340G The chip will perform logical non operations , Just a reminder sign .
- One click download process
First , Look at the serial number I circled 1,mcuisp control DTR Output low level , be DTR_N High output , then RTS Set high , be RTS_N Low output , In this way, the triode in the schematic diagram Q3 It turns on ,BOOT 0 Be pulled high , At this time, the triode Q2 It will also turn on ,STM32F1 The reset foot of the is pulled down , That is to realize the setting BOOT 0 Automatically for 1, And press the reset key . The MCU will restart and enter ISP Pattern ( That is, system memory mode ). Get into ISP After the model , Will lock BOOT 0 Value ( by 1). Look at the serial number I circled 2 There is a message in , When we click start programming ,mcuisp This software is delaying 100ms Then it will automatically order DTR Increase , Release reset ,RTS Keep the high level unchanged . That is to say, it will make BOOT 0 and RESET Return to the original state . When the program is downloaded , The program has been downloaded internally FLASH 了 , You need to press reset to run the program , If you don't want to press the reset key manually , Then you can check the serial number I circled 3, In this way, the MCU will automatically reset and run .
- summary
- To configure BOOT by ISP Pattern ,BOOT 1 The hardware is fixed as GND.Q3 Conduction ,BOOT 0 To high level .Q2 Conduction , Single chip reset .
- Get into ISP After the model ,BOOT 0 and RESET Return to the original state .
- ISP The download , The program runs automatically .
边栏推荐
- Qt Creator怎样更改默认构建目录
- 如何用WebGPU流畅渲染百万级2D物体?
- Correct use of qwaitcondition
- How to mount NFS shares using autofs
- 有没有2、3w前期适合一个人干的创业项目呢?做自媒体可以吗?
- Is it safe to contact the account manager online to open a fund account?
- leecode-268. 丢失的数字(异或的应用,找没有出现的数字,找只出现一次的数字)
- TypeNameExtractor could not be found
- Nacos deployment
- Examples of map search
猜你喜欢

Counter attack dark horse: devdbops training, give you the best courses!

Implement is by yourself_ default_ constructible

C Advanced - data storage

Zhihuihuayun | cluster log dynamic collection scheme

Get the current month and year and the previous 11 months

No routines, no traps, no advertisements | are you sure you don't need this free instant messaging software?

【功能测试】项目的测试——登录和发布文章功能

Solutions to problems in IE6 browser

How to realize the function of grabbing red envelopes in IM system?

Okaleido tiger NFT is about to log in to binance NFT platform
随机推荐
QT notes - custom data types
Pushgateway installation and Prometheus configuration
基于Kubernetes v1.24.0的集群搭建(二)
支持刘海屏
Buckle practice - sum of 34 combinations
C Advanced - data storage
QT notes - qtxml
The sixth question of ape Anthropology
SSH服务突然连接不了案例总结
Qt Creator怎样更改默认构建目录
Wechat applet generates QR code
【功能测试】项目的测试——登录和发布文章功能
Oceanbase Database Setup Test
English语法_不定代词 - 概述
QT based software framework design
向勒索病毒说不,是时候重塑数据保护策略
做自媒体视频剪辑有免费可商用的素材网站吗?
Buckle exercise - 35 combination sum II
Implement is by yourself_ default_ constructible
Buckle practice - maximum number of 28 splices