当前位置:网站首页>The solution of porting stm32f103zet6 program to c8t6+c8t6 download program flash timeout
The solution of porting stm32f103zet6 program to c8t6+c8t6 download program flash timeout
2022-07-29 04:01:00 【Forever with 1】
List of articles
One 、 Program migration : Program migration is quite simple
(1) modify ZET6 The chip is C8T6
(2) Modify the startup file ( Get rid of hd.s At the end of the , Change it to md.s At the end of the )- If you remember correctly, brother atom's code needs to be modified , The official code of wildfire does not need to be changed
(3) Magic wand inside modification c++ Parameters of (STM32F10X_HD It is amended as follows STM32F10X_MD)
STM32F103ZET6 The program is ported to C8T6- Reference link
Two 、 Program download : There will be problems
( One )BOOT0 and BOOT1
STM32-BOOT0 and BOOT1- Reference link
mcuisp Download program - Reference link 
1、STM32 Use the emulator to download the program
BOOT0=0;
BOOT1=0;
2、STM32 Use USB turn TTL Download program
BOOT0=1;
BOOT1=0;
( Two ) Program download
1、 The code is generic
STM32(stm32f103c6t6 and stm32f103C8T6)- The two are different except for memory , Part of the functions currently used , The code of both is general .
2、 The situation is constant
(1) Get C8T6 After the board , I have been unable to download the program , I'm very confused , Follow the online program to try , But so far I have problems with my personal use ( Others can apply , I can't use it , Maybe it's my problem or the problem of the board , I also see that some people on the Internet say they buy pirated copies C8T6 了 , Not serious C8T6)
(2) The most typical problem is that the program can't be downloaded after trying various methods , Some can be downloaded and run , But after pressing the reset button ,STM32 He died completely , I don't know where I went
3、 terms of settlement
Finally, find out the solution to successfully download the code and run without error :
Simulator download is still not good , Serial port can be downloaded
(1) take BOOT0=1,BOOT1=0
(2) Use mcuisp A serial port 1 Download program ( Don't rush to reset after downloading , Perform the third step and reset )
(3) take BOOT0=1 Change it to BOOT0=0, Then press reset ( If BOOT0 However, after the high-level reset, the MCU does not know where to die )
Step 2: if the download times out, you can try several more times , If not, just BOOT0 and BOOT1 All grounded ,mcuisp Click download and press reset key ( Just click download and reset , Because the previous download doesn't go in ), Then follow the above 3 Step by step
( 3、 ... and )STM32F103C8T6 Download tried methods
1、 The measured available (C6T6 and C8T6 This kind of problem has been used ,C8T6 I failed the test at home )
Solution :
First, long press the reset point to download , Will report a mistake , Then release the reset , Click download to download successfully . Debugging is the same .
Classmates in school C8T6 SCM has been unable to download programs , I also happened to see this method at that time , Close test available , But after returning home, I bought a small board. This method fails
2、 Several blogs for reference - Try it in the future
(1)STM32 Not a genuine ST Device! Abort connection Error resolution
(2)Flash Download failed - “Cortex-M3“ resolvent
(3)STM32 Keil Problem solving :not a genuine st device
(4)Error: Not a genuine ST Device! Abort connection.&&Error:Flash dowload failed CortexM3
(5)Connection refused due to device mismatch! The reason and solution of the problem
3、Flash time out, Reset retry ( Solution c6t6 in c8t6 chip )
After compilation code The value of exceeds 30000, An emulator may be used to give c6T6 When downloading the program, you go in the next step after downloading half of it ,mcusip Download timeout at the same time , There is a problem of downloading errors 
Error phenomenon :


Summer vacation is boring -ing
Just learned 32 I bought the core board at 30 or 40 , Now a minimum board is at least 100 Around the , I bought it second-hand when drawing boards a few months ago ZET6 Chips also have to 70 a slice , Obviously too expensive , It's also a piece of waste , It hurts so much . Recently, I want to transplant some previously implemented functions to C6T6 perhaps C8T6 On , In the future, if necessary, use these cheaper chips , So I spent a few days trying to modify it when I just got home .
With the sharp rise in the price of chips , Various substitutes also appear , I saw it a while ago Shanghai Hezhou company has made compatible STM32F103 Chip board , Comrades in need can go and have a look , I can't use it temporarily + I won't watch it for time .

A second-hand fan I bought for ten yuan in my junior year , The wind is strong , I took it home without throwing it away , I didn't expect it to be a summer artifact at home during the summer vacation , The small fan blows day by day ( Before, there was air conditioning at school, so I didn't go home for the summer , Now the epidemic situation in the northeast is not waiting , It's really sad not to have air conditioning in summer vacation !!!!)
3、 ... and 、 I'll sort it out later when I have time STM32+4G+ Alibaba cloud
In order to finish a work before the summer vacation , I used 4g Serial port receiving of the module / send data +GPRS The function of transmitting data , Others didn't have time to see . If you have learned recently , Can communicate with each other .
Cosmopolitan cat1- 4g The module is actually the same as the one used before 2G modular lua Language secondary development doesn't make much difference , Just the code is more perfect , More powerful .( Their own 4g Module or 20 year cat1 Fire time , I didn't spend money to collect wool , Never used , I suddenly used it a while ago )
边栏推荐
- Uni app internationalization
- SQL window function
- 谁能详细说下mysqlRC下的半一致读和怎么样减少死锁概率?
- Lvs+keepalived high availability deployment practical application
- C语言实现三子棋游戏(详解)
- Process tracking of ribbon principle
- 小马智行进军前装量产,从自研域控制器入手?
- Zhihuijun, a genius of Huawei, made a modular mechanical keyboard, which caused an earthquake in the geek circle. Netizens: This is the real customization
- OPENSQL快速学习
- Typescript from getting started to mastering (XXII) namespace namespace (I)
猜你喜欢

Data mining -- Introduction to the basis of association analysis (Part 1)

Summary on the thought of double pointer

LDP -- label distribution protocol

C语言实现三子棋游戏(详解)

How to understand "page storage management scheme"

Configmap configuration and secret encryption

Deep understanding of Base64 underlying principles

EMD 经验模态分解

HCIP BGP

Ssl== certificate related concepts
随机推荐
第一个ALV程序2
CUB_200鸟类数据集关键点可视化
5年多工作经验,工资给15k,要是你,你会接受吗?
sql
Data mining -- Introduction to the basis of association analysis (Part 1)
Pointer variables -printf%d and%p meaning
MySQL第四篇(完结)
A little understanding of pointer, secondary pointer, wild pointer, pointer as function return value
消费行业数字化升级成 “刚需”,weiit 新零售 SaaS 为企业赋能!
华为天才少年稚晖君做了一把模块化机械键盘,引起极客圈地震,网友:这才是真正的客制化...
Data too long for column 'xxx' at row 1 solution
LDP --- 标签分发协议
MySQL第三篇
路由 知识
有一种密码学专用语言叫做ASN.1
安装ros的laser_scan_matche库所遇到的问题(一)
当我从数据库获取到了winfrom特定的控件ID之后我需要通过这个ID找到对应的控件,并对控件的TEXT文本进行赋值这该怎么做
Typescript from getting started to mastering (19) enumeration types
First knowledge of C language (3)
[原理] 横向渗透的几种方式
