pico-feedback
pico-feedback copied to clipboard
FreeRTOS with ADC and DMA do not work.
I am trying to run the code that is in https://github.com/ArvoreDosSaberes/magnectostriccao/tree/freertos branch freertos, there are 3 main threads and one of them must capture data using DMA, but I am not having success, simply the ADC+DMA does not work with freeRTOS, the same code was tested without RTOS and works with small adjustments, since the current code in the freertos branch is in the last attempt I made to try to find a solution. In addition, when I try to read the ADC+DMA the scaling freezes, it changes where it freezes, as I change the code, I did not identify stack problems, when I remove the code that activates and deactivates the ADC the tasks work again and everything goes well.
Could you help me, I don't know what to do anymore.
If this is just a generic "please help me get my code working" request, then GitHub issues isn't the place for that; you should ask for help at https://forums.raspberrypi.com/viewforum.php?f=143
Github is for reporting bugs, and you'd need to be much more specific about exactly what is or isn't working. So I'll leave this issue open for now in case you're able to provide more details and narrow down your question to a specific issue, but I'll move it to the pico-feedback repo.