AnsweredAssumed Answered

STM32F103 - PB3 just doesn't work as GPIO

Question asked by Reh.Tilmann.001 on Dec 14, 2016
Latest reply on Jun 1, 2017 by t.markus

Hello,

did anyone ever manage to get PB3 working as an I/O port on an STM32F103?

 

I am having a hard time with the F103VB where I need PB3 as input - no matter what I try, PB3 simply is returning a 0 value.

AFIO->MAPR is set to SWD debug only, JTAG off (and AFIO clock is on, of course).

I also explicitly set DBGMCU_CR to turn TRACE off, although that should be default after reset.

The other two related port pins (PB4 and PA15) work perfectly fine as GPIO. Only PB3 simply appears dead.

The errata sheet also doesn't mention any problems with PB3 as GPIO.

Did I find a new bug?

 

Any help is greatly appreciated.

Thanks, Tilmann

Outcomes