Skip to main content
Visitor II
December 6, 2023
Question

HAL UART DMA and SubGhz configuration bug

  • December 6, 2023
  • 1 reply
  • 1281 views

Hey, 

Im trying to use interrupts from UART DMA and SubGhz with STM32WLE5CCU. 
I noticed that I don’t get interrupts from both when I don’t define delay time between the configurations. The current code:

MX_GPIO_Init();

HAL_Delay(25); // because of bug

MX_SUBGHZ_Init();

MX_DMA_Init();

HAL_Delay(25); // because of bug

MX_USART2_UART_Init();

….

 

without that HAL_Delay command I won’t get interrupts from UART and SubGhz?

I already tried to reduce the delay time to 10ms and it doesn’t work.

 

does anyone familiar with this bug and knows how to solve it?

 

THANKS!

 

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    December 7, 2023

    Hello @Gyuki ,

    Please move call to MX_DMA_Init() up before other peripherals initialization.

    Imen

    GyukiAuthor
    Visitor II
    December 7, 2023

    Hey @Imen.D ,

    I tried now but it didn’t solve the problem.