Ashling* RiscFree* Integrated Development Environment (IDE) for Altera® FPGAs User Guide

ID 730783
Date 4/11/2025
Public
Document Table of Contents

3.5.1.4. Debugging RTOS

Note: µC/OS-II RTOS is not supported.

FreeRTOS

When you debug the FreeRTOS application, you can view the number of tasks, task details, and queue list. To display details of FreeRTOS Task List, enable the macro as below in the FreeRTOSConfig.h.
Note: If you use the FreeRTOS BSP generated from BSP Editor, you do not need to manually configure configUSE_TRACE_FACILITY in FreeRTOSConfig.h. The setting depends on system.h (part of FreeRTOSConfig.h #include), which can be configured using BSP Editor GUI or niosv-bsp command
Table 19.  FreeRTOS Debug Configuration
Debug Information Macros Configuration Description
Task List configUSE_TRACE_FACILITY 1 To display task number of the project
The configuration is as shown below:
#define configUSE_TRACE_FACILITY 1

To debug FreeRTOS application, follow these steps:

  • Launch the FreeRTOS application debug. The RTOS related view is automatically appeared in Panel.
    Figure 163. RTOS Related View

Zephyr

When you debug the Nios® V processor application, you can view the Zephyr Mutex (Mutual Exclusion Object) List, Zephyr Semaphore List, and Zephyr Thread List.

To display details of Zephyr Mutex, Semaphore and Thread lists, enable the macros as below in the prj.conf file.

Debug Information Macros Configuration Description
Enable Trace CONFIG_TRACING Y

To enable all the tracing function.

Note: All tracing macros have dependency to CONFIG_TRACING.
Mutex List CONFIG_TRACING_OBJECT_TRACKING Y To enable object tracking for mutex.
Semaphore List To enable object tracking for semaphore.
Thread List CONFIG_DEBUG_THREAD_INFO Y To display thread details.
The configuration is as shown below:
CONFIG_TRACING=y
CONFIG_TRACING_OBJECT_TRACKING=y
CONFIG_DEBUG_THREAD_INFO=y

Follow these steps to debug the Zephyr application:

  • Launch the Zephyr application debug. The RTOS-related view automatically appears in the Panel.