Skip to content

SPI DMA problems #16455

Closed Answered by TomFahey
TomFahey asked this question in RP2040 / Pico
Dec 19, 2024 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

Ok, I think I've worked out the problem here.

I think my use of the standard SPI module together with the direct DMA configuration may have caused a conflict, with SPI trying to use the same DMA channels as my code above (channels 0 and 1).

After deleting all the python objects instantiated from the SPI module, when I created two new rp2.DMA objects, they were assigned to DMA channels 4 and 5. Using these channels, the unresponsive state doesn't appear and I was able to reactivate rx_dma multiple times without any problems.

Testing this theory a bit further, I tried creating and deleting the rp2.DMA instances assigned to channel 0 and 1 and then creating two new ones, assigned to channel …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by TomFahey
Comment options

You must be logged in to vote
2 replies
@TomFahey
Comment options

@peterhinch
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants