Skip to main content
Associate
November 27, 2024
Question

How to Write Correct Sleep Function for WB55?

  • November 27, 2024
  • 1 reply
  • 588 views

Split from https://community.st.com/t5/stm32-mcus-wireless/how-to-write-correct-sleep-function-for-wb55/td-p/746937 as this is a separate question

 

Hello, 

I have another question: When I enable the CFG_LPM_SUPPORTED parameter in CubeMX, where should I call my custom functions to ensure they work correctly?

I noticed that when I call my custom functions under the MX_APPE_Process(); function, they do not work properly. Additionally, I am using the LPUART1 and USART1 channels for my sensors, and I observed that they are not functioning either.

Looking Forward to Your Response,

1 reply

STTwo-32
Technical Moderator
November 27, 2024

Hello @Ygt 

So when you enable the CFG_LPM_SUPPORTED the system will enter the configured Low power mode configure (sleep or stop2) will the sequencer is in IDLE state. For the USART1, if you are enabling the trace function on your program, you need to use it for trace function.

If you want to keep using it, you may have to check your configuration and debug your code depending on your code and use cas and where you do the calls. Then, you will understand where this issue come from.

Best Regards.

STTwo-32