Trouble Using DMA on the RP2350 (Pico2) #17612
-
Hello friends! I'm trying to set up the DMA in MicroPython and I'm seeing some funny errors? Is the DMA code working on the new RP2350s? Does anyone have any working code I can look at? Here's what I've tried and what I'm seeing: Simply trying to initialize a DMA channel with the DMA class throws an error as though the class doesn't exist: I have gotten this result in both 1.25 and the 1.26 preview. Another problem I've noticed (unsure if related!) is that I can't reset the DMA. If I use MEM32 to manually flip the reset bit, it doesn't seem to change. (?) I can provide sample code for that if needed. Mostly I'd just like to know if anyone else is having problems with the DMA in the RP2350 and how they solved them? Thank you!! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
(I saw this thread: https://github.com/orgs/micropython/discussions/17390 but that seems to be a slightly different issue, I started a new thread here when the previous one didn't seem to fix my issue!) |
Beta Was this translation helpful? Give feedback.
Here's your problem:
dma_channel.channel()
channel is not a class method, channel is a property.
Therefore:
print(f"SUCCESS! Created DMA object channel { dma_channel.channel }.")
Without the brackets.