cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F401Re issue with ADC

Valkan Pavlov
Associate III

Hey folks.

What I do is this: I get 14 ADC measurements on different channels, than use DMA to store them into an array. When this is ready an interrupt flag is raised, I make a copy of that array and send it via UART. There is a timer to control the ADC. At some point I do transfer back an UART message that I use to update my ARR register of the timer. This set up works from time to time, but most of the time, especially on higher values, DMA that I use with ADC stops rising the interrupt flag, and no new ADC values are produced. Does anyone have similar experience?

THanks!

 

I did try to disable the UART, ADC, and TImer before updating ARR, but to the same result.

1 ACCEPTED SOLUTION

Accepted Solutions
Sarra.S
ST Employee

Hello @Valkan Pavlov

check for overrun in OVR bit in the ADC_SR, read section 11.8.1 in RM0368

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.

View solution in original post

2 REPLIES 2
Sarra.S
ST Employee

Hello @Valkan Pavlov

check for overrun in OVR bit in the ADC_SR, read section 11.8.1 in RM0368

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.

Thank you Sarra!