ISYSTEM winIDEA Support for Infineon Aurix

From ErikaWiki

Revision as of 14:10, 16 November 2015 by Pj (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

ERIKA Enterprise is supported by iSYSTEM winIDEA. For more information about the ERIKA Enterprise support please chek the iSYSTEM - Erika webpage.

For applications, based on an AUTOSAR/OSEK compliant OS such as ERIKA Enterprise, the OSEK Run-Time Interface (ORTI) file is a method for describing the structure of the RTOS to the debugger. By reading in the ORTI file generated by the RTDRUID when building an ERIKA-based application, the winIDEA debugger becomes ERIKA Enterprise OS-aware.

ERIKA Enterprise OS awareness provides the following features:

- Display of OS Resources and Status

- Run-Time Analysis (Profiler Timeline) of Tasks and Interrupts (ISR Category 1 and 2)

- Analysis of CPU Utilization (Profiler Statistics) of Tasks and Interrupts (ISR Category 1 and 2)

Usage of NOP to prevent FIFO Full in the trace buffers

(This note thanks to Armin Stingl, iSystem)

You can use the following code to make the background task more trace-friendly:

File: EE_oo_start_os() in pkg/kernel/oo/src/ee_startos.c

static void EE_oo_start_os(void)
{
  /*
  * This assignment prevents from MISRA 14.2/FlexeLint 522:
  * lacks side-effects
  */
  EE_oo_started = 1U;
  for(;;) {
    __asm("NOP");
    __asm("NOP");
    __asm("NOP");
    __asm("NOP");
    __asm("NOP");
    __asm("NOP");
    __asm("NOP");
    __asm("NOP");
    __asm("NOP");
    __asm("NOP");
    __asm("NOP");
    ;
  }
}

In this way, the background forever loop will not loop continuously filling the trace buffer FIFO of the AURIX core.

Personal tools