2019-12-12 01:36 AM
Hello,
I am working on the stm32373C-EVAL but I can't get the SDADC to give me satisfying values.
I am following the UM1786 "how tu use this driver" instructions on p°594:
I fill in the HAL_SDADC_MspInit(), the HAL_ADC_Init() is used, I call HAL_SDADC_PrepareChannelConfig.
I then use HAL_SDADC_StartCalibration and HAL_SDADC_CalibrationCpltCallback.
To get value I follow the steps
HAL_SDADC_SelectRegularTrigger,
HAL_SDADC_ConfigChannel,
HAL_SDADC_Start,
HAL_SDADC_ConvCpltCallback,
HAL_SDADC_GetValue,
HAL_SDADC_Stop.
I put a low voltage on PE11 (on which I put SDADC1) and take it change but the only value I get is 0, I once got 5209 and 5217 but it didn't change even when I changed voltage.
Do you think it comes from a bad calibration or am I using everything wrong?
Have a nice day,