【我要show】+感谢社区
谢谢社区的维护者,多亏了你们的辛苦耕耘,才让STM32越来越好。:lol沙发,帅哥一枚。 q80351951 发表于 2017-3-19 20:36
沙发,帅哥一枚。
:funk::funk:
你是个明眼人,:lol The debug pins are in AF pull-up/pull-down after reset:
PA14: SWCLK in pull-down
PA13: SWDIO in pull-up
When the pin is configured as output, the value written to the output data register
(GPIOx_ODR) is output on the I/O pin. It is po ssible to use the output driver in push-pull
mode or open-drain mode (only the low level is driven, high level is HI-Z).
测试不行
找到原因了,程序多写了
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF;
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_14;
GPIO_Init(GPIOA, &GPIO_InitStructure); 签到签到!晚上好!谢谢楼的分享,STM32的社区办不错,人气旺。 q80351951 发表于 2017-3-19 22:21
找到原因了,程序多写了
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF;
GPIO_InitStructure.GPIO_Pin =...
复用成普通I/O,不开启AF模式,但是要开启AFIO时钟。普通I/O复用成其他功能管脚才需要开AFmode 宿舍好
页:
[1]