2021-11-10 06:05 PM
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
The 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