2024-07-03 01:34 AM
1. stm32F105 + stm32cubemx
2. project was created using freertos by stm32cubemx,no peripheral enabled,and config no use gpio as analog.
3. mcu can go to stop mode normally before os started
4. mcu wakeup for unknown reason when enter stop mode in default task
2024-07-03 04:57 AM
Hello @supgz, welcome to ST community
Please specify the wakeup source (RTC or LPTIM?) and any other interrupts?
WFI will suspend execution until one the following events occurs:
In the 2nd condition, you need to check your interrupts that can be in pending state which causes the wakeup from lpmode mode
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-07-04 04:40 AM
Hi Sarra:
Thanks for your reply.
1. I have add breakpoints to NMI interrupts ISR and foundno non-masked interrupt occus
2. before _WFI, no interrupt is on pending state
3. I know debug entry request would resume the stop mode ,but not for my situation
4. Code was generated by stm32cubemx, what I added was just enter stopmode code which was listed on my post.