Disable SysConfig

This section will describe the steps necessary to disable SysConfig. Disabling SysConfig may be necessary when freezing source code for production or when you are satisfied with the output.

This example will use the multi_role project from the BLE5-Stack, but the steps can be adopted for project.

A summarization of the steps can be found below:

  1. Build the project at least once so that SysConfig can generate output
  2. Locate the generated files
  3. Copy generated files from build directory
  4. Disable SysConfig from running as a pre-build step
  5. Modify compiler/linker files to point to moved files

Locating Generated Files

The first step to disabling SysConfig is to determine which files it has generated.

Click the <> button in SysConfig to see which files it is currently generating. See Generated Files for an example of which files are generated by SysConfig for the multi_role project.

In CCS these files are placed in <build_config>/syscfg
  • <build_config> is the build configuration of the project. (e.g. Debug)
In IAR these files are placed in the project folder (e.g. ~/<proj_import>/)
  • <proj_import> is the location selected when importing the project in IAR
  • In the IDE the SysConfig files reside in a virtual folder called SysConfig Generated Files. You can find their location by right clicking any of the files in this folder and selecting “Open Containing folder…”

Copy Generated Files

IAR Users may skip this step

In CCS the build directory is cleaned every time the project is rebuilt, so it is necessary to copy the generated files to a permanent location before the project is rebuilt. Follow the steps below to do so. We will place the files in the application in a folder called syscfg but it can be called anything.

  1. Right click on the project -> New -> Folder
  2. Copy the files from <build_config>/syscfg to the new folder.

Disabling SysConfig

Disabling SysConfig is slightly different for IAR vs CCS. Expand the relevant section below to see how to disable SysConfig.

Click to IAR Instructions

In IAR, SysConfig is treated as a Custom Build step. To access the custom build steps select Project > Options > Custom Build. Remove all the fields that are populated under the Custom Tool Configuration tab as shown below:


Figure 118. Disable SysConfig IAR

Click to CCS Instructions

In CCS, files ending in .syscfg are automatically flagged as SysConfig files. If you have a file active in your workspace, it will invoke the SysConfig tool. This can be disabled by excluding the .syscfg files from build.

Modifying Compiler/Linker Settings

IAR Users may skip this step as the SysConfig output is already in a non destructive location. However, if you moved the SysConfig generated content to a new location elsewhere in the file system, you may need to change the project settings.

The .c, .h, and .opt files generated by SysConfig are consumed by the compiler and linker as part of the build process. Moving the files to a new location means that we need to modify the project settings to find them. For the case of multi_role this means:

  1. Change include paths (Project > Properties > ARM Compiler > Include Options)
  • Add ${PROJECT_ROOT}/syscfg

2. Change location of .opt files (Project > Properties > ARM Compiler > Advanced Options > Command Files)

  • Change the location of the ti_build_config.opt and ti_ble_app_config.opt to be in ${PROJECT_ROOT}/syscfg