当前位置:网站首页>关于STC单片机“假死”状态的判别
关于STC单片机“假死”状态的判别
2022-07-07 00:46:00 【perseverance52】
关于STC单片机“假死”状态的判别
- 申明这里不是来黑
STC单片机的。
今天在测试程序过程中发现,我的
STC8G2K64S4开发板突然就烧录不进去程序了,刚刚还烧录一切正常的,突然之间就烧录不进去程序了,串口能识别到,通过ISP软件不管板子冷启动就是检测不到单片机,串口号是有的,单片机不可能这么弱不禁风就牺牲了吧,没有做任何的物理操作,烧个程序也能烧坏单片机那也不至于。
今天打开STC-ISP 烧录软件,提示有新版本,升级了版本
v6.90
原因分析
至于为什么STC ISP软件识别不到芯片,以下是我的个人观点:
- 在IO口操作上,使用了外部晶振引脚作为输入或输出引脚,在单片机开发过程中尽量避免使用晶振引脚,这里仅只使用外部晶振的情况下,因为有些型号是内部提供晶振的。
- 确实是在
STC ISP工具那里点到了下面的选项。
STC-ISPV6.88J版本,旧版
stc-isp-v6.90版本,目前最新款,遇到的第一件囧事。
在
stc-isp-v6.90版本,选择的是STC8G2K64S4,我敢肯定我是不可能去可以勾选上面的选项,因为之前我遇到过这个情况,下载时点中了“下次冷启动时,P3.2/P3.3为0/0才可下载程序”,因为在之前我是烧录了几遍程序进行测试过的,是突然间就这样出现假死,识别不到的情况。

首先我要纠正STC-ISP这里的一个错误:“下次冷启动时,P3.2/P3.3为0/0才可下载程序”实际上应该是:想89型号的单片机一样,“下次冷启动时,P1.0/P1.1为0/0才可下载程序”.至于为什么我能发现这个问题,还感谢自己喜欢记录一些采坑经验。
去年发表过一篇关于STC烧录的文章;
在该篇文章中看到这张图片:
在尝试按照STC-ISP对应型号的“下次冷启动时,P3.2/P3.3为0/0才可下载程序”,选项操作并没有成功,才尝试使用之前的“下次冷启动时,P1.0/P1.1为0/0才可下载程序”按照此接法,点击检测MCU,立马看到有串口指示灯在闪烁了,并成功检测到单片机型号。
单片机假死判断
如果知道单片机里面烧录了什么程序,如果有IO口状态的,可以去测量对应的IO口状态是否正常。如果IO正常,那可以肯定单片机没有坏,只是ISP检测不到单片机。
边栏推荐
- Flask 1.1.4 werkzeug1.0.1 analyse du code source: processus de démarrage
- Flinksql read / write PgSQL
- Five core elements of architecture design
- PTA 天梯赛练习题集 L2-004 搜索树判断
- [云原生]微服务架构是什么?
- SQL Server 2008 各种DateTime的取值范围
- mac版php装xdebug环境(m1版)
- [solved] record an error in easyexcel [when reading the XLS file, no error will be reported when reading the whole table, and an error will be reported when reading the specified sheet name]
- R language [logic control] [mathematical operation]
- Web Authentication API兼容版本信息
猜你喜欢

What is message queuing?

Forkjoin is the most comprehensive and detailed explanation (from principle design to use diagram)
Interview questions and salary and welfare of Shanghai byte

绕过open_basedir

Hcip eighth operation

Pytorch builds neural network to predict temperature

ForkJoin最全详解(从原理设计到使用图解)

R语言【逻辑控制】【数学运算】

Interview skills of software testing

【FPGA教程案例13】基于vivado核的CIC滤波器设计与实现
随机推荐
高级程序员必知必会,一文详解MySQL主从同步原理,推荐收藏
"Multimodal" concept
【SQL实战】一条SQL统计全国各地疫情分布情况
Hcip seventh operation
Flask 1.1.4 werkzeug1.0.1 analyse du code source: processus de démarrage
Senior programmers must know and master. This article explains in detail the principle of MySQL master-slave synchronization, and recommends collecting
PowerPivot - DAX (function)
Digital IC interview summary (interview experience sharing of large manufacturers)
Input of native applet switches between text and password types
Data storage 3
980. Different path III DFS
【Shell】清理nohup.out文件
[solved] record an error in easyexcel [when reading the XLS file, no error will be reported when reading the whole table, and an error will be reported when reading the specified sheet name]
mac版php装xdebug环境(m1版)
关于服装ERP,你知道多少?
EMMC打印cqhci: timeout for tag 10提示分析与解决
The 2022 China low / no code Market Research and model selection evaluation report was released
Flask1.1.4 werkzeug1.0.1 source code analysis: start the process
How to improve website weight
bat 批示处理详解
