Initializing the Trace Recorder

Initializing the SystemView Trace Recorder

Initialize the SystemView Trace Recorder anywhere after the BSP has been initialized.

The code below shows an example where it gets initialized from the Startup task:

Listing - Initializing the SystemView Trace Recorder
#include  <os_trace.h>
.
.
.
static void AppTaskStart (void *p_arg)
{
    BSP_Init();                                /* Initialize BSP functions                             */
    CPU_Init();                                /* Initialize the uC/CPU services                       */
    .
    .
    .
    OS_TRACE_INIT();                           /* Initialize the uC/OS-II Trace recorder.              */ 
    .
    .
    .
}


Next Step

Starting the Trace Recorder