2020-07-13 08:47 AM
I use custom application with FreeRTOS.
When I embed a power save mechanism, the FW periodically have an unhandled hardfault when use "maybe" stop mode API.
After more investigation like:
i chesk an API function "PWR_EnterStopMode".
In this func I comment all code who used a CFG_HW_RCC_SEMID and FW stay work fine.
P.S when disable a stop mode like
UTIL_LPM_SetStopMode(1 << CFG_LPM_APP, UTIL_LPM_DISABLE);
all work fine without any commenting.
What could be and why?
Thanks.