cancel
Showing results for 
Search instead for 
Did you mean: 

STM32WL55 does not receive uart input after a certain amount of time passes after sending RF periodically

Son, Dong-Seong
Associate III

Hi

I am testing with STM32WL55

I programed that MCU transmitted LoRa signal periodically and transmitted data via uart1 periodically.

At first, MCU can recieve data via uart1.

After a certain amount of time, MCU can't transmitted some bytes via uart1 once or twice

and then MCU can't receive data via uart1 continuously.

I don't know how to fix the problem.

1. init

 /* Initialize all configured peripherals */

 MX_GPIO_Init();

// MX_I2C2_Init();

 MX_SUBGHZ_Init();

 MX_USART1_UART_Init();

 MX_USART2_UART_Init();

 MX_I2C3_Init();

 MX_RTC_Init();

 MX_TIM16_Init();

 /* USER CODE BEGIN 2 */

 MX_SubGHz_Phy_Init();

 MX_I2C2_Init();

HAL_TIM_Base_Start_IT(&htim16);

init();

2. I used timer_if.c : see added files

3. transmitted data via uart1

0693W00000GXDEBQA5.pngThe red line indicates the part where the data is not completely transmitted.

4. I add the project. please check where the problems are and let me know how to fix them.

thank you

0 REPLIES 0