Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

abort() hangs #1

Open
bapowell opened this issue Mar 25, 2024 · 2 comments
Open

abort() hangs #1

bapowell opened this issue Mar 25, 2024 · 2 comments

Comments

@bapowell
Copy link

For me this always hangs:

while p[0]:

To fix, I replaced
while p[0]:
with
while self.busy():

This seems to agree with the comment at raspberrypi/pico-sdk#923:

...After aborting a channel, poll the CTRL.BUSY bit to wait for completion (not the ABORT bit), ...

@rkompass
Copy link
Owner

Hello @bapowell,

thank you for this finding and report.

Interesting to get feedback - now that there are DMA routines in the MP RP2 firmware.

I'll have to change my DMA class accordingly.

If you don't mind: In which setting did you use the DMA class?

Raul Kompaß

@bapowell
Copy link
Author

I'm using DMA to transfer accumulated counts from PIO to memory.

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

No branches or pull requests

2 participants