JTAG和SW调试
2017-12-19 本文已影响0人
guanjianhe


RCC_APB2PeriphClockCmd(RCC_APB2Periph_AFIO | RCC_APB2Periph_GPIOB, ENABLE);
GPIO_PinRemapConfig(GPIO_Remap_SWJ_Disable, ENABLE); /*完全禁用(JTAG+SW-DP)*/
GPIO_PinRemapConfig(GPIO_Remap_SWJ_JTAGDisable , ENABLE);/*JTAG-DP 禁用 + SW-DP 使能*/