×

注意!页面内容来自https://shequ.stmicroelectronics.cn/thread-633553-1-1.html,本站不储存任何内容,为了更好的阅读体验进行在线解析,若有广告出现,请及时反馈。若您觉得侵犯了您的利益,请通知我们进行删除,然后访问 原网页

你的浏览器版本过低,可能导致网站不能正常访问!
为了你能正常使用网站功能,请使用这些浏览器。

< id="diy_" type="text/css">
< id="diy_" type="text/css">
<> #modmenu{ height:30px;line-height:30px;background-color:#fcfcfc; padding-bottom:0px !important;margin-bottom:15px !important; padding-left:15px !important; } #modmenu a{ font-size:12px; } #modmenu .pipe{ margin:0 4px; } .thread-content{ margin-bottom:0px; margin-top:0px; } .thread_action{ height: 30px; line-height: 30px; background-color: #fcfcfc; padding-left:15px; } .thread_action a{ background:none !important;font-size:12px;color:#369; margin-right:10px; } .t_fsz{ min-height: auto !important; } .action-button-div .button-a i { display: inline-block; /* width: 15px; */ /* height: 15px; */ position: relative; top: 0px; right: 0px; }

【经验分享】STM32F103C8T6 程序上电跑飞

[复制链接]
STMCU小助手 发布时间:2022-2-28 19:51
文章
文章封面:
文章简介: STM32F103C8T6 程序上电跑飞
前言
某客户反应说他们做回来的板子测试发现程序上电就跑飞了,下载都正常。检查了一个礼拜都不知道哪里出了问题,感觉无从下手。

一 问题排查
1.1 检查电路板
排除虚焊漏焊现象,查看晶体起震波形正常,查看 BOOT 引脚配置正常。
1.2 检查软件代码
客户使用了老的标准库,反应说代码在别的板子上验证过,运行正常。
1.3 IDE 检查
客户使用 KEIL MDK V5.X 版本,下载代码正常,连接 ST-LINK/v2 仿真 DEBUG程序跑飞。停在了一段空白的地址空间中。


二 测试流程
2.1 编写测试代码
在老版本的标准库的基础上,做了一个 LED 闪烁的 DEMO 程序,方便直观的观察现象。测试后,问题同样,代码跑飞。
2.2 重新梳理工程
在 STM32Cube 架构上重新新建工程,确认发现客户使用的晶体频率已经超过了 16MHz 的上限马上更换一个合适的晶体后并修改时钟驱动代码后,程序运行正常。LED 开始稳定闪烁。

st-img

AB_1M{C@O0LQ2BPKXRWY9}A.png (49.59 KB下载次数: 5)

下载附件  保存到相册

2022-2-28 19:52 上传



三 小结
虽然很多工程师已经很熟悉老的标准库的使用,但还是应该推荐客户选择使用 STM32Cube 来进行开发,这样这个问题在一开始就会避免。

<> .action-create-time{display: none}
0 收藏 0 评论0 发布时间:2022-2-28 19:51

举报

<> .comment_placehoder{ display: none;width: 100%;position: absolute; left: -10px;right: 0px;bottom: 70px;top: 50px;background-size: 1000px 104px; filter: alpha(opacity=80);opacity: 0.8;z-index:100; background-color: #ffffff; background: linear-gradient(to right,#ffffff 8%,#efefef 20%,#ffffff 33%); animation-duration: 1s; animation-fill-mode: forwards; animation-iteration-count: infinite; animation-name: placeHolderShimmer; animation-timing-function: linear; } /** Skeleton Screen加载占位 **/ @keyframes placeHolderShimmer{ 0%{background-position: -468px 0} 100%{background-position: 468px 0} }
0个回答

所属标签

相似分享

<> #SEO-Official_latest_resources ul li { display: flex; align-items: center; } #SEO-Official_latest_resources ul li a { display: inline-block; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-left: 3px; } .download-ul li { height: 60px; line-height: 60px; border-bottom: 1px solid #e5e5e5; padding: 0 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .download-ul li span { display: inline-block; width: 20px; height: 20px; background-color: #edfaff; text-align: center; line-height: 20px; color: var(--st-light-blue); }

官网相关资源

<> .pcb{ width:100%; }
<> .st-bd-dl .st-bd-dt{ position: relative; display: inline-block; } .st-bd-dl .st-bd-dt::before{ display:block;;width:0.714285rem;height:0.714285rem;border-radius: 0.714285rem; color:#FFFFFF; position: absolute;left:-20px; } .st-bd-dl .st-bd-dt>a{ position: relative; } .st-bd-dl .st-bd-dt>a::before{ display:block;content:" ";width:0;height:0.071428rem; position: absolute;bottom:0px;transition: width .2s; background-color:var(--default-a-hover-color); } .st-bd-dl .st-bd-dt:hover::before,.st-bd-dl .st-bd-dt:hover a{ color:var(--default-a-hover-color); } .st-bd-dl .st-bd-dt:hover a::before{ width:100%; } /*.st-bd-dl .st-bd-dt:hover::before,.st-bd-dl .st-bd-dt:hover a{*/ /* color:var(--default-a-hover-color);*/ /*}*/ /*.st-bd-dl .st-bd-dt:hover a::before{*/ /* width:100%;*/ /*}*/
关于
我们是谁
投资者关系
意法半导体可持续发展举措
创新与技术
意法半导体官网
联系我们
联系ST分支机构
寻找销售人员和分销渠道
社区
媒体中心
活动与培训
隐私策略
隐私策略
Cookies管理
行使您的权利
<> .st-bd-dl dd a { display: inline-block; max-width: 200px; /* 设置最大宽度,可以根据实际需求调整 */ white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
官方最新发布
STM32N6 AI生态系统
STM32MCU,MPU高性能GUI
ST ACEPACK电源模块
意法半导体生物传感器
STM32Cube扩展软件包
关注我们
st-img 微信公众号
st-img 手机版
<> .artwlxxxxx {position: fixed;bottom: 55px;right: 25px;display: inline-block;}
快速回复 返回顶部 返回列表