RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB| RCC_APB2Periph_AFIO,ENABLE);
GPIO_PinRemapConfig(GPIO ...
应该是GPIO_PinRemapConfig(GPIO_Remap_SWJ_JTAGDisable, ENABLE); 这样吧 如果按您那样设置直接把SDW下载方式也关闭了 程序就下不下去了 麻烦 https://www.stmcu.org.cn/module/forum/thread-613681-1-1.html
参考这个帖子
页:
1
[2]