Missing ADC Samples when using double buffer circular DMA on STM32F407VG
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-12-19 2:36 AM
Posted on December 19, 2013 at 11:36The original post was too long to process during our migration. Please click on the attachment to read the original post.
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-12-19 4:35 AM
Posted on December 19, 2013 at 13:35
I found my problem:
To check the contents of the buffers with the ADC results I set a breakpoint inside the DMA transfer complete interrupt handler and did not stop the ADC. I guess the breakpoint did not stop the ADC and it continued writing samples into the buffer. So the content seems to be a mixture from old and new Samples. If I stop the ADC just before the breakpoint everything works as expected.Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-12-19 8:24 AM
Posted on December 19, 2013 at 17:24
Ok, yes the DMA and lots of peripherals operate autonomously of the core, got to watch that, and also that memory used in such a way is known to the compiler as volatile.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Up vote any posts that you find helpful, it shows what's working..
