cancel
Showing results for 
Search instead for 
Did you mean: 

HAL UART DMA and SubGhz configuration bug

Gyuki
Associate

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!

 

2 REPLIES 2
Imen.D
ST Employee

Hello @Gyuki ,

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

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

Hey @Imen.D ,

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