cancel
Showing results for 
Search instead for 
Did you mean: 

ADC_CHANNEL_VOPAMP? definitions in stm32f3xx_hal_adc_ex.h from STM32CubeF3 are wrong

alexander2399
Associate II
Posted on October 04, 2014 at 19:08

They are aliases of channels 15,17,17,17 for ADC 1-4 correspondingly. According to STM32F303VC reference they should by aliases of channels 3,3,1,3. Firmware works correctly only when they are set according to reference.

stm32f3xx_hal_adc_ex.h is version V1.0.1 from 18-June-2014

#stm32f303vct6-stm32cubef3
2 REPLIES 2
Amel NASRI
ST Employee
Posted on October 06, 2014 at 18:48

Hello Alexander,

ADC_CHANNEL_VOPAMPx are the reference voltage for the OPAMPx connected to ADC. If you refer to RM0316:

- ADC1_IN15 = VREFOPAMP1= Reference Voltage for the Operational Amplifier 1

- ADC2_IN17 = VREFOPAMP2= Reference Voltage for the Operational Amplifier 2

- ADC3_IN17 = VREFOPAMP3= Reference Voltage for the Operational Amplifier 3

- ADC4_IN17 = VREFOPAMP4= Reference Voltage for the Operational Amplifier 4

If you need to use OPAMP output as ADC inputs, the other channels (ADC1_IN3, ADC2_IN3, ADC3_IN1, ADC4_IN3) have to enabled.

-Mayla- 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

alexander2399
Associate II
Posted on October 07, 2014 at 17:40

Thank you, Mayla, I've got confused.