Skip to content

current sense: RP2040ADCEngine DMA not stopping #259

Closed
@greymfm

Description

@greymfm

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 :-)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions