cancel
Showing results for 
Search instead for 
Did you mean: 

PB3 as GPIO on STM32F30x

michal2
Associate
Posted on January 25, 2015 at 11:32

Is it possible to use PB3 as pure GPIO on stm32f303?

Pin configuration into OUT or AF mode doesn't works : I was trying AF_0, AF_1, AF_15; I think there is possible to turn off JTAG, but how? On stm32f103 works remapping.

here is my code (RSS clock are enabled, other pins on GPIOB works perfectly)

    GPIO_InitStructure.GPIO_Pin = (1<<3);

    GPIO_InitStructure.GPIO_Mode = GPIO_Mode_OUT;

    GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;

    GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;

    GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_NOPULL;

    GPIO_Init(GPIOB, &GPIO_InitStructure); 

thanks

#stm32f3 #alternate-function-mapping #pb3
0 REPLIES 0