GP10-NRST脚 可以做普通IO,你用CubeMx配置下。 更多细节可以看看参考手册的相关描述。 9.3.16 Using PG10 as GPIO PG10 may be used as reset pin (NRST) or as a GPIO. Depending on the NRST_MODE bits in the user option byte, it switches to those mode: 1、Reset input/output: default at power-on reset or after option bytes loading NRST_MODE = 3 2、 Reset input only: after option bytes loading NRST_MODE = 1 3、GPIO PG10 mode: after option bytes loading NRST_MODE = 2
从手册上可以看出,通过option byte 可以更改它的功能。