Skip to main content
Associate II
Question

Suggest improvements in my data acquisition system

so this is my data acquisition system, i want you to suggest some improvements in it. as the adc + dma ping pong buffer is working fine, but after that the conversion and its transmission via dma+uart ping-pong buffer is so much miserable. there is no synch between these buffers.
here is my project:
Vishwas1523/dataAcquisitionSystem

PS: i am using stm32 nucleo f446re

4 replies

AScha.3
Super User

Basically your way ADC- > DMA - > 2 buffers , is good.

But to get it automatic in sync , just set the DMA to circular and use callbacks .

In half / full callback you move the data from the block to your ...big buffer for analysis, or whatever you want to do.

to enable callbacks generated by Cube:

 

If you feel a post has answered your question, please click on " Best Answer ".
Associate II

Thankyou for giving your time and thoughts to my question, i will try to do this and hopefully it will work :)

 

KDJEM.1
ST Technical Moderator

Hello ​@vishwas1523 ;

 

Did ​@AScha.3’s proposal help you?

If yes please click on “'Best answer'”on the reply which solved your issue.

 

Thank you.

Kaouthar

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.
Associate II

sadly i did not work. i am trying other methods, lets see what happens