当前位置:网站首页>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 )
边栏推荐
- Deconstruction assignment of new features of ES6
- Configmap configuration and secret encryption
- 3. Solve pychart's error unresolved reference 'selenium' unresolved reference 'webdriver‘
- 1. Mx6u driver development-2-led driver
- STM32F103ZET6程序移植为C8T6+C8T6下载程序flash timeout的解决方案
- MySQL第三篇
- Several cases of word wrapping in div
- @Configuration (proxybeanmethods = false) what's the use of setting this to false
- Ssl== certificate related concepts
- Raft protocol - process demonstration
猜你喜欢

3. Solve pychart's error unresolved reference 'selenium' unresolved reference 'webdriver‘

OA项目之会议通知(查询&是否参会&反馈详情)

内连接和左连接简单案例

Typescript from getting started to mastering (XVI) configuration file - first knowledge of compileroptions configuration item

Malloc C language

HCIP BGP

数据挖掘——关联分析例题代码实现(下)

UCOS任务切换过程

Shopify卖家:EDM营销就要搭配SaleSmartly,轻松搞定转化率

【BGP】小型实验
随机推荐
C语言实现三子棋游戏(详解)
Arrow function of new features of ES6
[deep learning CPU (part outside) - virtual memory]
[BGP] small scale experiment
Typescript from getting started to mastering (XVI) configuration file - first knowledge of compileroptions configuration item
Tristate gate
lodash库常用方法
OPENSQL快速学习
"Strangers once met" Summer Street Shen Shuyan_ Xia Mo Shen Shuyan's latest chapter
【深度学习CPU(番外篇)——虚拟内存】
Three tier architecture of enterprise network
Li Kou daily question - day 44 -205. Isomorphic string
Object array merges elements according to a field
How to understand "page storage management scheme"
Opensql quick learning
Ribbon principle analysis namedcontextfactory
Common methods of lodash Library
Is the array name a pointer
Connection broken by 'readtimc rt-443): read timed out (read timeout=l5)“)‘: /pac
Communication between parent-child components and parent-child components provide and inject
