Keil Logo

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

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Author
Massimo Santoli
Posted
27-Nov-2018 11:51 GMT
Toolset
ARM
New! 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

Author
Ron Wedge
Posted
22-Feb-2019 22:36 GMT
Toolset
ARM
New! RE: Keil RTX CMSIS-RTOS2 tickless operation problem on STM32L4 ( HardFaults )

Have you seen this article about Tick-less Low-Power Operation?

http://www.keil.com/pack/doc/CMSIS_Dev/RTOS2/html/theory_of_operation.html#TickLess

Author
Madeleine Hudson
Posted
18-Mar-2019 13:49 GMT
Toolset
ARM
New! RE: Keil RTX CMSIS-RTOS2 tickless operation problem on STM32L4 ( HardFaults )

Great and helpful article! I also would advise visiting http://www.writingpeak.co.uk/write-my-essay for help with almost every question that can appear.

Author
Roland MacLeod
Posted
15-Mar-2019 13:31 GMT
Toolset
ARM
New! RE: Keil RTX CMSIS-RTOS2 tickless operation problem on STM32L4 ( HardFaults )

To solve this problem, you should turn to professionals. I am currently developing an educational website for students and I also have difficulties with the code. I am lucky that I work with specialists who have more knowledge in this area than me and I can learn from them. Our site has a blog and support service, I am sure they can help you, just visit http://gpalabs.com/.

Next Thread | Thread List | Previous Thread Start a Thread | Settings

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.