AnsweredAssumed Answered

STM32F100R PB5 not enabling internal pull-up?

Question asked by Joe Grisso on Sep 2, 2014
Latest reply on Sep 2, 2014 by Clive One
Hello All,

I've been bringing up some new hardware around an STM32F100RBT6 processor, and was planning on using PB5 as an input with an internal pull-up enabled. For some reason, none of my boards will enable the internal pull-up on PB5. I've resorted to using an external pull-up for now, but I was wondering if there were any ideas from the community at large? I see there are some errata when using PB5 as an AFIO with other peripherals, but not with using PB5 as GPIO. Here's the specific code I'm using to enable the input:

     GPIO_StructInit(&GPIO_InitStructure);
     GPIO_InitStructure.GPIO_Pin = GPIO_Pin_5;
     GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IPU;
     GPIO_InitStructure.GPIO_Speed = GPIO_Speed_2MHz;


     GPIO_Init(GPIOB, &GPIO_InitStructure);


I'm using V3.5.0 of the STM32F10x standard peripheral library, and the Launchpad toolchain. 

Thanks!

Outcomes