2024-11-27 01:32 AM - last edited on 2024-11-27 03:22 AM by SofLit
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,
2024-11-27 10:24 AM
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
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.