We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello,
I am using CMSIS RTOSv2 running on a STM32F407 and I am trying to use the low-power STOP mode to put the micro and system to sleep and save power. When the system exits the STOP mode, via an interrupt, and then calls osDelay() a system Hardfault, INVPC, occurs. Functions that use osDelay() before entering STOP mode work as expected, but the same functions called after exiting STOP mode will Hardfault at the osDelay() call.
I am not calling osDelay() from an interrupt(been burned by that before).
I have struggled to find any examples or guides to using a low-power mode while using the CMSIS RTOS library. Do I have to prepare the RTOS for this 'hardware' low-power STOP mode?
Thank you in advance, Tim