This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/CC2642R: Shall we have 2 syscfg in one project?

Part Number: CC2642R
Other Parts Discussed in Thread: SYSCONFIG

Tool/software: Code Composer Studio

Dear sir, 

Now we would like to update SDK from  3_30_00_03 to the latest version.   The new version will use GUI to get syscfg for GPIO definition.

We have different hardwares.  In previous version, we will use different compile swith in the code to get those change.  

Now we just wonder if we can use 2 syscfg in one project to do the same thing?    If yes, please guide us how to do it.

Thank you in advance.

BRs

Jenny

  • Jenny,

    You could have 2 SysConfig files in your project and exclude them on a per build configuration basis.

    For example I have taken one of the example projects from the SDK (display).  I have adjusted it to have 2 build configurations.  GPIO1 and GPIO2.

    I then made a copy of the display.syscfg file display2.syscfg and added that to the project.  I did this by selecting the file, selecting copy from the context menu and then paste.  CCS then prompts me to give the copy a new name:

    It automatically excludes the old .syscfg file.  So currently display2.syscfg is used by both of my build configurations.

    Here you can see thta GPIO1 is the active config and that display.syscfg is excluded (line through the icon)

    If I want display.syscfg to be used for this configuration I just right click on it and uncheck exclude from build.  I then need to repeat that and exclude display2.syscfg

    The end result for my GPIO1 configuration is this:

    I can then set the active configuration to GPIO2 and perform a similar exercise.

    Once that is done display.syscfg will be used by GPIO1 and display2.syscfg by GPIO2.

    Regards,

    John