2024-11-26 08:56 AM
Hi,
in my low-power STM32WL55 application I would like to use the LPUART to receive data (no transmission) while the device is in STOP2 mode. I have two questions about this:
Thanks in advance!
2024-12-19 02:35 AM - edited 2024-12-19 02:36 AM
Hello @Erlkoenig
I suggest you take a look at the configuration of this example and modify the clock after waking up to SysCLK. This should work fine.
Best Regards.
STTwo-32
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.
2024-12-19 03:15 AM
Hi @STTwo-32 ,
thank you very much. "modify the clock after waking up to SysCLK" - will this also work when SysCLK is not 16 MHz? I guess I have to change LPUART_PRESC while switching the LPUART input clock, but how do I do this atomically, without interrupting an ongoing transfer?
Thanks!