Question
STM32Cube_FW_L4 V1.2.0 bug ?
Posted on January 20, 2016 at 21:52
While trying to use GPIO inputs as inputs for the ADC, I discovered that the ADC control mode was not programmed correctly in the function HAL_GPIO_Init.
I replaced: temp &= ~(GPIO_ASCR_ASC0 << position) ; temp |= (((GPIO_Init->Mode & ANALOG_MODE) >> 3) << position); with temp |= GPIO_ASCR_ASC0 << position; and got it working properly. If you agree, I suggest you correct this in a future release. #adc-stm32l4