This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

FreeRTOS and RTC

Hello!
I used the "blinky_rtc_freertos" example and transferred ticksource from RTC to SYSTICK in "FreeRTOSConfig.h".
The application has stopped working. What am I doing wrong?

I use nRF52840, SEGGER Embedded Studio for ARM Release 4.12 Build 2018112601.37855 Windows x64, nRF5_SDK_15.2.0,
debug board PCA10056 1.0.0. WINDOWS 10 x64.

Thank you.

FreeRTOSConfig.h

Parents
  • The application has stopped working. What am I doing wrong?

    SYSTICK does not run when the core is in sleep mode. HFINT and HFCLK are stopped in order to save power - only the RTC is kept running.

    One can even abuse this behaviour to implement a CPU load gauge - just count actual SYSTICK interrupts per second. Does not work with a connected debugger, though.

    You must remember to set the Priority to a different value, as default zero is reserved by the softdevice.

Reply
  • The application has stopped working. What am I doing wrong?

    SYSTICK does not run when the core is in sleep mode. HFINT and HFCLK are stopped in order to save power - only the RTC is kept running.

    One can even abuse this behaviour to implement a CPU load gauge - just count actual SYSTICK interrupts per second. Does not work with a connected debugger, though.

    You must remember to set the Priority to a different value, as default zero is reserved by the softdevice.

Children
Related