Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Segger Embedded Studio: adding thread awareness for FreeRTOS

Has anyone succeeded in setting up the SES thread awareness for FreeRTOS with the nRF5 SDK? That would enable showing the state of the FreeRTOS tasks (threads) in the debugger, with amount of free stack, running status, resource waited etc.

I think I have already managed the SES part (links below). The remaining part probably requires editing the FreeRTOS port in the nRF5 SDK. The SES script accesses a number of variables inside the FreeRTOS implementation that need to be made non-static.

I configured SES with the instructions found from these two pages: 
https://wiki.segger.com/How_to_enable_RTOS_thread_awareness and http://forum.segger.com/index.php?page=Thread&threadID=3012 , that was quite easy. The "Threads" tab opens in SES but it remains empty.

Pertti

Related