AnsweredAssumed Answered

SWD Pins Using I/O Problem

Question asked by dinc.cagri on Oct 25, 2014
Latest reply on Oct 26, 2014 by dinc.cagri
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

Outcomes