2015-11-30 04:07 PM
Hi all,
I am writing an application using the stm32cubef7 where I need to sample the temperature sensor channel of ADC1. According to the STM32F746 reference manual the temperature sensor is on channel 18 of ADC1, which is shared with VBAT. However, in the stm32cubef7 ADC HAL driver it seems to use channel 16. That channel is not connected according to the manual. Is that a bug in the driver? Cheers, Stathis2015-11-30 04:18 PM
Isn't it special cased deeper in the abstraction?
See: stm32f7xx_hal_adc_ex.c2015-11-30 04:40 PM
It is special cased in stm32f7xx_hal_adc.c in HAL_ADC_ConfigChannel(). There it does set the TSVREFE bit as it should, but it still seems to select channel 16 and not 18.