Thursday, June 29th 2017, 12:40pm UTC+2

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

shenj

Beginner

Date of registration: Nov 18th 2015

Posts: 9

1

Wednesday, August 24th 2016, 3:10pm

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?
shenj has attached the following file:

SEGGER - Johannes

Super Moderator

Date of registration: Aug 31st 2012

Posts: 350

2

Tuesday, August 30th 2016, 9:20am

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/C++ Source code

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


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

Best regards
Johannes