Once the SW I/O is released by the user software, the GPIO controller takes control of these
pins. The reset states of the GPIO control registers put the I/Os in the equivalent states:
• SWDIO: input pull-up
• SWCLK: input pull-down
Having embedded pull-up and pull-down resistors removes the need to add external
resistors.
pins. The reset states of the GPIO control registers put the I/Os in the equivalent states:
• SWDIO: input pull-up
• SWCLK: input pull-down
Having embedded pull-up and pull-down resistors removes the need to add external
resistors.
F0参考手册,如2楼所说,你需要释放掉SWD功能
把它做普通IO配置就好了。具体就是将GPIOX_MODER寄存器相关位做配置就好,比STM32F1配置更为简洁。
一周热门 更多>