Omit SystemView in Production Code

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Omit SystemView in Production Code

    Hi, System View works in my hand. My question is now, how can I leave out the SystemView Code by makeing use of configUse_TRACE_FACILITY in FreeRTOSConfig.h

    It seems to me that this macro is alone not enough to leave out all SystemView macros and functions.

    Maybe my FreeRTOS is not clean since I did the patch manually (see attached). May I get the Seggers modified FreeRTOS V8.2.3?
  • Hi,

    SEGGER_SYSVIEW_FreeRTOS.h does not check for configUse_TRACE_FACILITY.
    The easiest way is to include it in your FreeRTOSConfig.h based on the define

    C Source Code

    1. #if defined(configUse_TRACE_FACILITY) && (configUse_TRACE_FACILITY)
    2. #include SEGGER_SYSVIEW_FreeRTOS.h
    3. #endif

    Other than that make sure to not call SEGGER_SYSVIEW_Init() in your application.

    Best regards