Skip to content

current sense: RP2040ADCEngine DMA not stopping #259

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

Closed
greymfm opened this issue Mar 20, 2023 · 1 comment
Closed

current sense: RP2040ADCEngine DMA not stopping #259

greymfm opened this issue Mar 20, 2023 · 1 comment
Assignees
Milestone

Comments

@greymfm
Copy link

greymfm commented Mar 20, 2023

In our controlller we need to temporary stop the RP2040ADCEngine, so we can use RP2040 flash memory access for saving parameters in the user interface.

The RP2040ADCEngine stop function hangs in 'dma_channel_abort':

The reason is that DMA_IRQ_0 needs to be disabled first (before any call to 'dma_channel_abort'):
irq_set_enabled(DMA_IRQ_0, false);

Then it will no longer hang in RP2040ADCEngine stop :-)

@runger1101001
Copy link
Member

Thank you very much for reporting this! I will see that it gets fixed for the next release...

@runger1101001 runger1101001 self-assigned this Mar 21, 2023
@runger1101001 runger1101001 added this to the 2.3.1_Release milestone Mar 21, 2023
runger1101001 pushed a commit to runger1101001/Arduino-FOC that referenced this issue Mar 21, 2023
runger1101001 added a commit that referenced this issue Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants