OSEK / AUTOSAR: How do I select desired OS signalization method?

27-May-2024

Symbols specified as RUNNINGTASK, RUNNINGISR2 are used to show the OS state during debug when the CPU is stopped. OS Profiling, however, can be implemented in two different ways:

  • Data trace (if supported by the CPU) or
  • Instrumentation trace (OTM, ITM, SofTrace, User Trace Port etc.)


Possible solutions

  • By default data trace is used for OS Profiling, the only condition is to have RUNNINGTASK, and RUNNINGISR2 specified as simple variables and not pointers to these variables. 
  • If your ORTI file uses vs_SIGNAL specifications, these specify the instrumentation trace method that will be used for trace instead of data trace. In such case you need to make sure that the application is correctly instrumented.
Was this answer helpful?