RTOS DETAILS View
The RTOS DETAILS view shows various information about RTOS Tasks/Threads. The view appears in the bottom pane, once a debug session is started, and disappears after debugging ends.
The view is independent of the debug probe being used, as it only uses GDB commands to receive information from the target.
The supported RTOSes are:
FreeRTOS Usage
The RTOS DETAILS view will display the following for FreeRTOS projects. However, the project must be configured properly.
configUSE_TRACE_FACILITY
needs to be set to 1.configMAX_TASK_NAME_LEN
needs to be greater than 1.configRECORD_STACK_HIGH_ADDRESS
needs to be set to 1.configGENERATE_RUN_TIME_STATS
needs to be set to 1.Note: The Runtime view needs a patch to FreeRTOS to access runtime counters. See Erich Styger's blog for explanation and patch.
For the FreeRTOS portion of this article, I'll be working with the frdmrw612_freertos_sem example project obtained from the FRDMRW612 SDK.
To configure the settings on this project, open the FreeRTOSConfig_Gen.h file. In the FreeRTOSConfig_Gen.h file, use Ctrl+F to quickly find and set the defines highlighted in red above. Save the file.
Once the settings have been configured, build the example and flash the board. The RTOS DETAILS View is available in the bottom pane. To view the data, suspend the target and the view will detect the RTOS type and read information about the tasks/threads. Every time the target stops (suspended or stepped), the RTOS DETAILS view will refresh with updated information.
RTOS DETAILS view has the following capabilities:
Zephyr Usage
The RTOS DETAILS view will display the following for Zephyr projects.
CONFIG_THREAD_NAME
needs to be enabled.CONFIG_THREAD_STACK_INFO
needs to be enabled.
For the Zephyr portion of this article, I'll be working with the philosophers example project obtained from the Zephyr 4.1.0 SDK.
To configure the settings on this project, open the prj.conf file. Add the highlighted items above and save the file.
Next, build the project and flash the board. The RTOS DETAILS view will appear on the bottom pane during a debug session as it did for the FreeRTOS example. Expect the behavior to be similar with only a change in the columns.