2023-12-06 09:37 AM
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!
2023-12-07 01:52 AM
Hello @Gyuki ,
Please move call to MX_DMA_Init() up before other peripherals initialization.
Imen
2023-12-07 02:32 AM
Hey @Imen.D ,
I tried now but it didn’t solve the problem.