这些小活动你都参加了吗?快来围观一下吧!>>
电子产品世界 » 论坛首页 » 嵌入式开发 » STM32 » 用HAL库编写的STM32程序,为何下载完后要手动复位才能运行呢?

共6条 1/1 1 跳转至

用HAL库编写的STM32程序,为何下载完后要手动复位才能运行呢?

工程师
2021-09-02 23:08:29     打赏

我用库函数方法写的程序,用正点原子的FlyMcu软件下载完程序后就可以立马执行的,现在用HAL库编写程序,下载完后要手动复位才能运行?这是什么原因?





关键词: STM32     HAL     复位    


Notice: Trying to get property of non-object in /xp/www/www.eepw.com.cn/eepw/rootapp/views/scripts/forum/thread.phtml on line 426

Notice: Trying to get property of non-object in /xp/www/www.eepw.com.cn/eepw/rootapp/views/scripts/forum/thread.phtml on line 426
专家
2021-09-03 00:14:47     打赏
2楼

感谢楼主的分享,很实用了。


评论
Notice: Trying to get property of non-object in /xp/www/www.eepw.com.cn/eepw/rootapp/views/scripts/forum/thread.phtml on line 426

Notice: Trying to get property of non-object in /xp/www/www.eepw.com.cn/eepw/rootapp/views/scripts/forum/thread.phtml on line 426
工程师
2021-09-03 23:28:19     打赏
3楼
swd接口的复位线没接吧?!



评论
Notice: Trying to get property of non-object in /xp/www/www.eepw.com.cn/eepw/rootapp/views/scripts/forum/thread.phtml on line 426

Notice: Trying to get property of non-object in /xp/www/www.eepw.com.cn/eepw/rootapp/views/scripts/forum/thread.phtml on line 426
工程师
2021-09-05 16:09:57     打赏
4楼

用X-LINK 进行 debug 单步跟踪调试啊,应该容易找到问题点的吧!


评论
Notice: Trying to get property of non-object in /xp/www/www.eepw.com.cn/eepw/rootapp/views/scripts/forum/thread.phtml on line 426

Notice: Trying to get property of non-object in /xp/www/www.eepw.com.cn/eepw/rootapp/views/scripts/forum/thread.phtml on line 426
工程师
2021-09-05 16:17:16     打赏
5楼
因为 HAL 是 HALT 的缩写,自然要挂起不跑;你得用 RUN 库才能跑得溜



评论
Notice: Trying to get property of non-object in /xp/www/www.eepw.com.cn/eepw/rootapp/views/scripts/forum/thread.phtml on line 426

Notice: Trying to get property of non-object in /xp/www/www.eepw.com.cn/eepw/rootapp/views/scripts/forum/thread.phtml on line 426
工程师
2021-09-05 16:22:20     打赏
6楼
应该是你没勾选reset and run 



评论
Notice: Trying to get property of non-object in /xp/www/www.eepw.com.cn/eepw/rootapp/views/scripts/forum/thread.phtml on line 426

Notice: Trying to get property of non-object in /xp/www/www.eepw.com.cn/eepw/rootapp/views/scripts/forum/thread.phtml on line 426
共6条 1/1 1 跳转至

Notice: Trying to get property of non-object in /xp/www/www.eepw.com.cn/eepw/rootapp/views/scripts/forum/thread.phtml on line 496

回复

匿名不能发帖!请先 [ 登陆 注册 ]

Notice: Trying to get property of non-object in /xp/www/www.eepw.com.cn/eepw/rootapp/controllersforum/ForumController.php on line 1450

Notice: Trying to get property of non-object in /xp/www/www.eepw.com.cn/eepw/rootapp/controllersforum/ForumController.php on line 1450

Notice: Trying to get property of non-object in /xp/www/www.eepw.com.cn/eepw/rootapp/controllersforum/ForumController.php on line 1456

Notice: Trying to get property of non-object in /xp/www/www.eepw.com.cn/eepw/rootapp/controllersforum/ForumController.php on line 1457

Notice: Trying to get property of non-object in /xp/www/www.eepw.com.cn/eepw/rootapp/controllersforum/ForumController.php on line 1458

Notice: Trying to get property of non-object in /xp/www/www.eepw.com.cn/eepw/rootapp/controllersforum/ForumController.php on line 1461

Notice: Trying to get property of non-object in /xp/www/www.eepw.com.cn/eepw/rootapp/controllersforum/ForumController.php on line 1462