For stm32f103 series when remap JTAG related GPIO for SPI1 function, it seems didn't works The pinmux driver seems to need disable JTAG enable SWD and enable RCC->APB2ENR clocks which related gpio port