AnsweredAssumed Answered

STM32Cube_FW_L4 V1.2.0 bug ?

Question asked by verhelst.bas on Jan 20, 2016
Latest reply on Jan 26, 2016 by verhelst.bas
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.

Outcomes