2024-08-19 10:10 PM
Hi ST Community
Is it possible to use the ADC polling/DMA/IT in STOP2 mode. The application is to develop a low power platform for ADC sampling and go back to sleep. After a certain period send this data over BLE.
Solved! Go to Solution.
2024-08-19 10:56 PM
For the first and a second question, i think t
You can follow the same steps as on this example.
Best Regards
STTwo-32
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.
2024-08-19 10:31 PM
Hello @ABN
As you can see on the table table 25 of the RM0434, the ADC can work only in RUN, SLEEP, Low Power run and Low Power Sleep modes:
Best Regards
STTwo-32
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.
2024-08-19 10:36 PM
Hi @STTwo-32
Thanks for sharing the table. I have couple more questions
1. Any necessary steps to be taken to put ADC block in low power mode
2. After waking up from STOP2 mode, any re-initialization of ADC to be done so that ADC can be used in RUN mode?
2024-08-19 10:56 PM
For the first and a second question, i think t
You can follow the same steps as on this example.
Best Regards
STTwo-32
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.
2024-08-21 12:36 AM
I went through the example. But I was not able to see the IOC configuration and the driver files. Instead of the approach given in the example, I used ADC Polling method
In this approach I'm getting HAL_ERROR in the HAL_ADC_PollForConversion
2024-08-21 12:58 AM
The example is not based on the CubeMX. So, there is not a .ioc file for this project. For the Error, this is not on the same context of this post. I suggest you create a new post (after selecting a best answer for this one) on the Embedded Software forum. You should find there the help you need.
Best Regards.
STwo-32
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.