stm32wb55 : unhandled hardfault in enter to stop mode on LL_HSEM_1StepLock with CFG_HW_RCC_SEMID
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:
- pending ISR CFG_HW_ENTRY_STOP_MODE_SEMID and CFG_HW_RCC_SEMID
- hardfault by address 0x58001412 (it is a HSEM ISR CFG_HW_ENTRY_STOP_MODE_SEMID)
- and so else
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.