Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8609

General • Re: ADC + DMA + FreeRTOS does not work.

$
0
0
You could add a double check that dma_channel_is_busy is false after your dma_channel_wait_for_finish_blocking, or some more detailed checks like chk_dma.

Maybe try

Code:

#define configCHECK_FOR_STACK_OVERFLOW          2
in your FreeRTOSConfig.h. You could also try disabling SMP there, as a test.

Try

Code:

    PARAM_ASSERTIONS_ENABLE_ALL=1    PICO_USE_STACK_GUARDS=1    PICO_MALLOC_PANIC=1
in your target_compile_definitions, and

Code:

  -Wall   -Wextra   -Wshadow   -fanalyzer 
in your target_compile_options.

Statistics: Posted by carlk3 — Wed Feb 19, 2025 6:06 pm



Viewing all articles
Browse latest Browse all 8609

Trending Articles