酱哒哒 发表于 2017-3-19 15:57:46

【我要show】+感谢社区

谢谢社区的维护者,多亏了你们的辛苦耕耘,才让STM32越来越好。:lol



q80351951 发表于 2017-3-19 20:36:48

沙发,帅哥一枚。

酱哒哒 发表于 2017-3-19 21:22:15

q80351951 发表于 2017-3-19 20:36
沙发,帅哥一枚。

:funk::funk:
你是个明眼人,:lol

q80351951 发表于 2017-3-19 22:16:30

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).

测试不行

q80351951 发表于 2017-3-19 22:21:01

找到原因了,程序多写了
        GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF;
        GPIO_InitStructure.GPIO_Pin = GPIO_Pin_14;
        GPIO_Init(GPIOA, &GPIO_InitStructure);

samhong 发表于 2017-3-20 00:23:23

签到签到!晚上好!谢谢楼的分享,STM32的社区办不错,人气旺。

酱哒哒 发表于 2017-3-20 15:24:33

q80351951 发表于 2017-3-19 22:21
找到原因了,程序多写了
        GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF;
        GPIO_InitStructure.GPIO_Pin =...

复用成普通I/O,不开启AF模式,但是要开启AFIO时钟。普通I/O复用成其他功能管脚才需要开AFmode

@乔木 发表于 2017-3-20 19:00:49

宿舍好
页: [1]
查看完整版本: 【我要show】+感谢社区