AnsweredAssumed Answered

BUG in STM32CubeMX STM32L4 OPAMP ADC PROBLEM

Question asked by dallagiovanna.luca on Jun 8, 2016
Latest reply on Jan 18, 2018 by Jeanne Joly
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

Outcomes