2018-05-09 01:47 AM
Hi All
We are using STM32L475VG IoT discovery board.
We want to use the ADC1 on the board and get the Analog data input on PA0.
But we are unable to get it going using the HAL code generated using the MX cube software.
What all are the configurations needed to use the ADC?
It will also be helpful if a working example can be provided.
Our environment is visualGDB in visual studio 2017 community edition.
Regards
Sagar Verma
#stm32-l4 #adc-configuration2018-05-14 04:44 PM
Can anyone please assist us ?
2018-05-14 06:09 PM
2018-05-14 06:29 PM
Formatted source now out of moderation, removing it here
https://community.st.com/0D70X000006Sr84SAC
I lifted and ported the code from
STM32Cube_FW_L4_V1.11.0\Projects\NUCLEO-L496ZG\Examples\ADC\ADC_DMA_Transfer
Didn't see any calibration stuff there, or other samples I looked at.
2018-05-14 06:33 PM
2018-05-14 09:19 PM
I can't see the ADC calibrate functionality,
Does this processor have a calibrate function for the ADC ?2018-06-04 10:51 PM
Thanks Clive,
using these configurations I have been able to make the ADC work in my application.
But this configuration doesn't work if I use
ContinuousConvMode = DISABLE
Any suggestion regarding this ?