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

freertos SysTickHandler problem

Hi,

I am working on nRF52 with freertos + SDK13.0 + sd S132_4.0.2. I found the device will be trap in the xTaskIncrementTick of the xPortSysTickHandler when some task is busy, e.g. streaming data from a spi sensor at 50Hz. When it is traped, the MCU is keep running but all task are not executed and never go to sleep. The system is fine when most of the task are idle. The time required to get trap is random, sometime is few seconds and sometime is few ten seconds.

I try to search in the forum and found some similar case. devzone.nordicsemi.com/.../

The solution include a updated port_cmsis_systick.c file. I try to use that code but it does not work, the tick frequency is wrong and will crash once it start. Also I found that updated file is come from SDK12.2, that file has another problem that __WFE(); is used instead of sd_app_evt_wait();. This will cause the device cannot sleep properly when softdevice is used.

I am quite confuse on that, can Nordic provide a new updated FreeRTOS with all known issues fixed?

Regards, George

Related