Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4924

Cannot Configure JTDI pin (PA15) as GPIO

$
0
0
I am using STM32F103RCT6 to blink a LED which is connected to PA15 - JTDI in PU.

My GPIO Configuration is like this

Code (C):
  1.  
  2. GPIOA->CRH |= GPIO_CRH_MODE15; //Output mode, max speed 50 MHz.
  3. GPIOA->CRH &= ~GPIO_CRH_CNF15; //General purpose output push-pull\
  4.  
And I am trying to Blink Like this

Code (C):
  1.  
  2. #define LED_HIGH() (GPIOA->BSRR |= GPIO_BSRR_BR15) //LED High
  3. #define LED_LOW() (GPIOA->BSRR |= GPIO_BSRR_BS15) //LED LOW
  4.  
In datasheet it says
View attachment 154698

To...

Cannot Configure JTDI pin (PA15) as GPIO

Viewing all articles
Browse latest Browse all 4924

Trending Articles