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

Keil RTX CMSIS-RTOS2 tickless operation problem on STM32L4 ( HardFaults )

Hi
We are experimenting with the tickless opreation to achieve ultra low power mode.
And we are having issues after the MCU get's back for deep sleep.
We are using an STM32L4 and we are using the function
HAL_PWR_EnterSTOPMode( PWR_LOWPOWERREGULATOR_ON, PWR_STOPENTRY_WFI )
To enter deep sleep..

Once out of deep sleep, the RTX OS misbeahves and erratically fires HardFaults from the __svcXXX functions..
sometimes in __svcDelay, sometimes in __scvMessageQueueGet and so on..

The code works perfectly if we disable the tickless mode operation, ie. we have a void osRtxIdleThread() function.

This erratic behaviour is not automatic after the exit from StopMode, but it happens randomly, after 1 seconds or 30 seconds... it depends.

Looking for some support from more experienced users.

Thanks
Massimo

Parents
  • Hi, It is a while ago. But did you manage to find the issue? I have issues that look a lot like yours. The system stops randomly during the delay or messageQueueGet functions. We do not go into a tickless sleep mode though. our osRtxIdleThread only contains an infinite loop, nothing else.

    thank you

Reply
  • Hi, It is a while ago. But did you manage to find the issue? I have issues that look a lot like yours. The system stops randomly during the delay or messageQueueGet functions. We do not go into a tickless sleep mode though. our osRtxIdleThread only contains an infinite loop, nothing else.

    thank you

Children
No data