3
19
28
新手上路
使用道具 举报
1万
7万
11万
管理员
eric2013 发表于 2020-3-23 21:04 这个引脚不是什么特殊引脚,按说问题不大。
guimeng 发表于 2020-3-23 21:38 也是NRST脚
eric2013 发表于 2020-3-24 01:00 我还真没有设置过将NRST引脚做通用IO引脚使用。
guimeng 发表于 2020-3-24 14:36 这是新出的IC
eric2013 发表于 2020-3-24 14:38 嗯,这个只能你查阅手册测试下了,我手头没有这类芯片,没法帮你做验证。
guimeng 发表于 2020-3-24 16:23 应该只能配置成MCO模式,不能当普通IO口用了
eric2013 发表于 2020-3-24 16:28 MCO是复用功能,正常来说也是应该可以做通用IO的。
guimeng 发表于 2020-3-24 16:30 /** Configure pins as * Analog * Input
eric2013 发表于 2020-3-25 00:18 还是群友看的仔细,都没有看你的代码就直接回复了,你这个配置的不是PF2啊。
4
127
139
初级会员
hance2000 发表于 2020-3-26 14:09 在该芯片CUBEMAX软件的sys中就有切换引脚的选项。配置一下看看就可以了。我也在用G031不过是20脚的。
hance2000 发表于 2020-3-26 14:06 根据我的经验默认的是PF的功能,而你配的是PA的功能。估计软件或OPTION byte 中有切换引脚的功能
218
1107
1771
至尊会员
More we do, more we can do.
The user is responsible for the proper setting of the GPIO modes in order to avoid conflicts between GPIOs bonded to the same pin (including their alternate functions).
0
2
1
zkb133 发表于 2020-6-16 10:21 解决了, 供后来的人们解惑。STM32 ST-LINK Utility软件 -->Target --> Option Bytes,设置NRST_MODE.
本版积分规则 发表回复 回帖后跳转到最后一页
|小黑屋|Archiver|手机版|硬汉嵌入式论坛
GMT+8, 2025-7-6 06:36 , Processed in 0.325191 second(s), 27 queries .
Powered by Discuz! X3.4 Licensed
Copyright © 2001-2023, Tencent Cloud.