cancel
Showing results for 
Search instead for 
Did you mean: 

[STM32L4] [FreeRTOS] [USART3] Some of the Rx Interrupt are getting missed when entering Sleep Mode

sunny
Associate II
Posted on August 01, 2016 at 14:01

Hi,

I am using STM32L4 with FreeRTOS.

I have configured the USART3 Rx as Interrupt HAL_NVIC_SetPriority(USART3_IRQn, 4, 0) and am using the Tx as Polling.

Without entering the SLEEP mode, if I send data on USART3 from PC, I am able to get the USART3 Interrupts and am able to get the data.

But if I enter the SLEEP mode via the   HAL_PWR_EnterSLEEPMode(PWR_LOWPOWERREGULATOR_ON, PWR_SLEEPENTRY_WFI), I am not able to get the USART3 Rx Interrupt for all the received data.

I tried to debug, but I am not able to get the root cause.

It would be great if somebody can give pointer for the same.

Thanks,

Sunny

#stm32l4 #usart #sleepmode
1 REPLY 1
sunny
Associate II
Posted on August 02, 2016 at 05:46

Hi,

Can anyone please give their suggestions and / or pointers ?

Thanks,

Sunny