cancel
Showing results for 
Search instead for 
Did you mean: 

my ADC code cann't get value

daienming
Associate
Posted on March 04, 2015 at 17:41

The original post was too long to process during our migration. Please click on the attachment to read the original post.
4 REPLIES 4
Posted on March 04, 2015 at 18:39

Can't help you at all with the HAL stuff, I wish you much luck.

I will observe that unless you configure the ADC's symmetrically the sequencing of the data is likely to give you a lot of headaches.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Amel NASRI
ST Employee
Posted on March 09, 2015 at 11:50

Which product are you using?

Do the execution get stuck at a given level?

Are the values in ADCs registers aligned with what you expect?

-Mayla-

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.

iumez
Associate II
Posted on March 11, 2015 at 16:34

I don't know this HAL API but looking at the code you posted I see that:

1. You configured the ADC to use DMA.

2. You did not enable interrupts for the ADC.

So, how will an end of conversion event get triggered?

Posted on March 11, 2015 at 17:46

So, how will an end of conversion event get triggered?

Who knows, it's a selective presentation of code, and HAL/Cube hide a lot of the detail, and has a different methodology.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..