Skip to main content
Associate II
December 14, 2023
Solved

Error with GPDMA and ADC on STM32H563

  • December 14, 2023
  • 2 replies
  • 1866 views

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?

This topic has been closed for replies.
Best answer by Imen.D

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

2 replies

Imen.DBest answer
ST Technical Moderator
December 14, 2023

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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
Associate II
December 15, 2023

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!