Go Down

Topic: ZERO's ADC with DMA (Read 11641 times) previous topic - next topic


I think I'm missing something with how this code works. Perhaps with regard to memory consumption or access? If I remove the delay from the loop, my program/device locks up in 0-5 seconds of running. Isn't this just overwriting adcbuf every loop? Is something else allocating memory and causing the crash?


I am having the same issue with the serial port stopping printing the times.  It appears to be random, or at least I can't see the correlation to anything else.  I have even tried to use a dual buffer and this makes no difference.  Still looking for a solution as I would like this to sample continuously.


I ran into the same problem, and posted here about it. It seems that ADC->RESULT.reg is not returning true, which causes the while(!dmadone); loop to become endless. It seems to happen more frequently without an active voltage on the pin.

Go Up