This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

STM32L496 HAL_PWR_EnterSTOPMode casuse HardFault in RTOSS2

Hi,

I'm experimenting a weird behaviour working on an STM32L496 platform.

If I enable deep sleep mode with
HAL_PWR_EnterSTOPMode( PWR_LOWPOWERREGULATOR_ON, PWR_STOPENTRY_WFI );

I then get 'random' HardFaults ( especially when multiple interrupts are running) from SVC Calls.

If instead I simply call:
HAL_PWR_EnterSLEEPMode( PWR_LOWPOWERREGULATOR_ON, PWR_SLEEPENTRY_WFI );

No problems at all...

Can anybody give me a hint?

Thanks
Massimo