Skip to main content
Explorer II
December 14, 2023
Solved

Error with GPDMA and ADC on STM32H563

  • December 14, 2023
  • 1 reply
  • 1846 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

    1 reply

    Imen.DAnswer
    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

    Explorer 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!