cancel
Showing results for 
Search instead for 
Did you mean: 

set LPUART TX pin to level 1 while in Stopmode2 (STM32L476)

Mich1
Associate III

Hello,

How can I set the STM32L476 LPUART TX to level 1 while the device is in StopMode2?

The LPUART clock is the LSE clock.

Best regards

Mich.

5 REPLIES 5
Mohamed Aymen HZAMI
ST Employee

Hello Michel,

During the STOP 2 the CPU is clocked-off, you cannot set the LPUART configuration.

To do this, you must wake up from STOP 2, define your configuration and enter it again..

Best regards,

Mohamed Aymen.

Mich1
Associate III

The cubeMX exemple only uses HSI clock. During the stop mode 2 the LPUART TX pin stays at level 1.

Mohamed Aymen HZAMI
ST Employee

Hello Michel,

Which register do you use to set the LPUART TX pin level ?

Best Regards,

Mohamed Aymen.

I do not use register to set TX pin level.

I received an help from the distributor. Issue was related to a too fast enter in stop mode.

Hi Michel,

Glad to see that you resolved your issue.

It would be helpful for other members to share your experience and provide more details on how you fixed it.

-Amel

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.