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?
    Files
  • 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
    Johannes
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.