STM32 wakeup for unknown reason after enter stop mode when using freertos, need help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-07-03 1: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
- Labels:
-
Power
-
STM32F1 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-07-03 4: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:
- a non-masked interrupt occurs and is taken
- an interrupt masked by PRIMASK becomes pending
- a Debug Entry request
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-07-04 4: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.
