2013-12-19 02:36 AM
2013-12-19 04:35 AM
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.2013-12-19 08:24 AM
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.