Question
Issues with Port E - STM32F3DISCOVERY
Posted on October 28, 2016 at 14:57
Hi,
I�m not allowed to configure some port E pins. RCC_AHBPeriphClockCmd(RCC_AHBPeriph_GPIOE, ENABLE); GPIO_InitTypeDef GPIO_InitStructure; GPIO_InitStructure.GPIO_Pin = GPIO_Pin_2 | GPIO_Pin_3 | GPIO_Pin_4| GPIO_Pin_5; GPIO_InitStructure.GPIO_Mode = GPIO_Mode_OUT; GPIO_InitStructure.GPIO_Speed = GPIO_Speed_10MHz; GPIO_InitStructure.GPIO_OType = GPIO_OType_PP; GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_NOPULL; GPIO_Init(GPIOE, &GPIO_InitStructure); GPIOE->ODR |= GPIO_ODR_2; GPIOE->ODR |= GPIO_ODR_3; GPIOE->ODR |= GPIO_ODR_4; GPIOE->ODR |= GPIO_ODR_5; - Pins 2 and 3 are configured to Output in the Moder register and set in the ODR (led turn on, everything�s right) - Pins 4 and 5 are configured to Output in the Moder register and set in the ODR. BUT they are also set in the IDR!! (led doesnt light). I know PE4 and PE5 are connected to the LSM303DLHC accelerometer in the discovery, might this be the problem ? What have i do to make available PE4 and PE5 ? regards, #stm32f3discovery