2021-08-27 12:18 AM
Hello,
I have some problems in the 2nd part of the above mentioned exercise (see also STM32CubeIDE basics - 10 ADC DMA TIM HAL lab - YouTube).
I am not able to convert the output of the ADC in temperature values.
Building does not give any error but while debugging the converted values are all zero. The debug seems to stop at if(1==flag) but I can't figure out why
Attached the slides of the exercise and my code.
2021-08-30 03:40 AM
Hi @Tommino ,
Does it work if you call HAL_DMA_Init() after HAL_ADC1_Init()?
-Amel
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.
2021-08-30 08:31 AM
Hi,
Thanks for the reply.
I am afraid it does not work with your suggestions. After the debug, the raw value buffer just contains one value (155?) and the converted values buffer has still 0s.
With my code the raw value buffers contains 8 values that are about 923,922 and so on.
Do you have additional suggestions?
-Tommaso