Question
STM32F437 and PI8 as output IO
Posted on June 08, 2018 at 16:37
Hi, guys.
I am using STM32F437 and trying to use PI8 as an output port.
I am trying to program it using standard procedures:
RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOI, ENABLE);
GPIO_InitTypeDef GPIO_InitStructure; GPIO_InitStructure.GPIO_Pin = GPIO_Pin_8; GPIO_InitStructure.GPIO_Mode = GPIO_Mode_OUT; GPIO_InitStructure.GPIO_OType = GPIO_OType_PP; GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP; GPIO_InitStructure.GPIO_Speed = GPIO_Speed_2MHz; GPIO_Init(GPIOI, &GPIO_InitStructure); GPIOI->BSRRL=GPIO_Pin_8; // Set logical 1As the result, I see always logical 0 on the output.
I know that this pin has some additional features from RTC.
What should I do to use this port as standard IO in output mode?
Regards, George.
#stm32f437-and-pi8