Question
SWD Pins Using I/O Problem
Posted on October 25, 2014 at 22:32
Hi,
I tried and failed, now I'm asking here If someone please could provide. I use STM32F030.
I want to use SWD pins (SWDIO and SWCLK) as I/O pins. But SWDIO always logic 1, SWCLK 0.My code: RCC->AHB1ENR |= 0x00000001; //A port clock enable GPIOA->PUPDR = 0; //A port No pull up, no pull down GPIOA->MODER |= 0x04000000; //A13 output GPIOA->ODR |= 0x00002000; //A13 logic 1 GPIOA->MODER |= 0x10000000; //A14 output GPIOA->ODR |= 0x00004000; //A14 logic 1 #swd-pins-using-as-i/o