Question
BUG in STM32CubeMX STM32L4 OPAMP ADC PROBLEM
Posted on June 08, 2016 at 16:48
Hi,
setting the ADC1_IN8 or ADC_IN15 as OPAMP x Output Differential or OPAMP x Output Single-ended in STM32CubeMx v 4.15 with NUCLEO-L476RG doesn't generate the correct GPIO setup. The OPAMP output pins are configured as GPIO_MODE_ANALOG under HAL_OPAMP_MspInit in stm32l4xx_hal_msp.c while they should be configured as GPIO_MODE_ANALOG_ADC_CONTROL to feed the ADC. There is also another error: setting the the ADC1_IN8 or ADC_IN15 as OPAMP x Output Differential generates the wrong regular channel configuration as ADC_SINGLE_ENDED. It should be ADC_DIFFERENTIAL_ENDED. Regards #stm32-cubemx-opamp-adc