2023-12-14 06:07 AM
I want to use DMA with ADC1. For this I made the following configuration (file attached). I have an error when calling the HAL_DMAEx_List_InsertNode() function. The error code is HAL_DMA_QUEUE_ERROR_OUTOFRANGE. I don't see where the problem comes from, any ideas?
Solved! Go to Solution.
2023-12-14 10:28 AM - edited 2023-12-14 10:29 AM
Hello @Ghislain_Clement and welcome to the Community :)
I don't see any DMA_Init() or GPDMA1 interrupt initialization?
If possible, provide your ioc file to check more the peripherals configurations.
Did you activate ADC peripheral and start conversions using HAL_ADC_Start_DMA()?
Please try to follow the GPDMA workshop and GPDMA documentation. These resources may help you on how to configure GPDMA and DMA with ADC configuration.
Imen
2023-12-14 10:28 AM - edited 2023-12-14 10:29 AM
Hello @Ghislain_Clement and welcome to the Community :)
I don't see any DMA_Init() or GPDMA1 interrupt initialization?
If possible, provide your ioc file to check more the peripherals configurations.
Did you activate ADC peripheral and start conversions using HAL_ADC_Start_DMA()?
Please try to follow the GPDMA workshop and GPDMA documentation. These resources may help you on how to configure GPDMA and DMA with ADC configuration.
Imen
2023-12-15 12:19 AM
Thank you very much for the links. I succeeded with a small project in basic DMA mode. This is what I need, it’s perfect!