Skip to main content
Mich1
Associate III
December 17, 2018
Question

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

  • December 17, 2018
  • 3 replies
  • 936 views

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.

This topic has been closed for replies.

3 replies

Mohamed Aymen HZAMI
ST Employee
December 26, 2018

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
Mich1Author
Associate III
December 26, 2018

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
January 4, 2019

Hello Michel,

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

Best Regards,

Mohamed Aymen.

Mich1
Mich1Author
Associate III
January 4, 2019

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.

Amel NASRI
Technical Moderator
January 4, 2019

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 "Best Answer" on the reply which solved your issue or answered your question.