cancel
Showing results for 
Search instead for 
Did you mean: 

LPTIM and USART2 in Stop1 mode

dtarrago
Senior
Posted on March 14, 2017 at 11:20

Hello,

I have succeed in making my application (STM32L475 based) going to Stop1 mode allowing it to leave stop1 mode in the following situations:

- RTC (every 31,25ms)

- I2C1 IRQ

- USART2 IRQ (UART_WAKEUP_ON_READDATA_NONEMPTY)

This is correctly working but, then the problem appears when I include LPTIM to generate a PWM signal:

when PWM is started, USART2 does not work. If LPTIM is initialized but PWM generation is stopped (HAL_LPTIM_PWM_Stop), then USART2 is working again. If then, PWM generation is started again (HAL_LPTIM_PWM_Start), USART2 stops working.

Do you know which can be the reason of this behaviour?

Best regards.

#lptim #stm32l4 #i2c1 #stop1 #usart2
0 REPLIES 0