Skip to content

Continuous ADC with DMA on NUCLEO-F446RE board not working #89175

Discussion options

You must be logged in to vote

Unfortunately, continuous sampling on Zephyr is currently not supported for STM32 driver. I don't think there is even the possibility to enable the option using the Zephyr API.
I'm not sure of the behavior of your code, using a mix of driver function and direct call is risky. The driver may rewrite some registers in the interrupts resulting in strange behavior.

As a partial workaround, you could use extra_samplings to sample up to 65536 values at a time. You'll still have to relaunch a read sequence every now and then, but it is at least much less frequent. You can see examples of how it is used in tests/drivers/adc/adc_api/src/test_adc.c

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by JarmouniA
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug area: ADC Analog-to-Digital Converter (ADC) platform: STM32 ST Micro STM32
3 participants
Converted from issue

This discussion was converted from issue #89046 on April 28, 2025 07:37.