当前位置:网站首页>关于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检测不到单片机。
边栏推荐
- Opensergo is about to release v1alpha1, which will enrich the service governance capabilities of the full link heterogeneous architecture
- zabbix_get测试数据库失败
- Industrial Finance 3.0: financial technology of "dredging blood vessels"
- 【日常训练--腾讯精选50】292. Nim 游戏
- R语言【逻辑控制】【数学运算】
- 《ClickHouse原理解析与应用实践》读书笔记(6)
- mac版php装xdebug环境(m1版)
- Type de texte de commutation d'entrée et de mot de passe de l'applet natif
- 成为资深IC设计工程师的十个阶段,现在的你在哪个阶段 ?
- Three level menu data implementation, nested three-level menu data
猜你喜欢

What is dependency injection (DI)

How to improve website weight
![[daily training -- Tencent selected 50] 235 Nearest common ancestor of binary search tree](/img/4c/16bb943e517c7b703996715632e6ca.png)
[daily training -- Tencent selected 50] 235 Nearest common ancestor of binary search tree

yarn入门(一篇就够了)

Bbox regression loss function in target detection -l2, smooth L1, IOU, giou, Diou, ciou, focal eiou, alpha IOU, Siou

Distributed global ID generation scheme

Differences and introduction of cluster, distributed and microservice

《2022中国低/无代码市场研究及选型评估报告》发布

Red hat install kernel header file

SQL query: subtract the previous row from the next row and make corresponding calculations
随机推荐
zabbix_get测试数据库失败
苹果cms V10模板/MXone Pro自适应影视电影网站模板
力扣102题:二叉树的层序遍历
Reading notes of Clickhouse principle analysis and Application Practice (6)
Reptile exercises (III)
Red Hat安装内核头文件
关于服装ERP,你知道多少?
线性回归
404 not found service cannot be reached in SAP WebService test
Message queue: how to handle repeated messages?
What is dependency injection (DI)
cf:C. Column Swapping【排序 + 模拟】
pytorch_ 01 automatic derivation mechanism
EMMC打印cqhci: timeout for tag 10提示分析与解决
linear regression
What is make makefile cmake qmake and what is the difference?
[shell] clean up nohup Out file
[daily training -- Tencent selected 50] 292 Nim games
Modes of optical fiber - single mode and multimode
毕业之后才知道的——知网查重原理以及降重举例
