Skip to main content
Associate
December 6, 2023
Question

HAL UART DMA and SubGhz configuration bug

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.

2 replies

ST Technical Moderator
December 7, 2023

Hello @Gyuki ,

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

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
GyukiAuthor
Associate
December 7, 2023

Hey @Imen.D ,

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