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.

How to assign unique target configuration to each active build configuration?

To All,

I  have a project called Beta. Beta project has four different active build configuration DebugInFlash, DebuginXSRAM,  DebuginXSDRAM, Release4XSDRAM. I want to creat unique build configuration for each one of the above configuration that is assocaited with differnt gel file to perform differnt required initialization during debugging of each differnt build configuration. Essentially I wanted to associate different TargetConfiguration.ccxml file to each build configuration. Here is the example on what I want to accomplish.

Example:

DebugInFlash Gets Assign to "DebugInFlashTargetConfiguration.ccxml"

DebuginXSRAM Gets Assign to "DebugInXSRAMTargetConfiguration.ccxml"

DebuginXSDRAM Gets Assign to "DebugInXSDRAMTargetConfiguration.ccxml"

Release4XSDRAM Gets Assign to "DebugInRelease4XSDRAMTargetConfiguration.ccxml"

One alternative was to copy DebugInFlashTargetConfiguration.ccxml as three additional .ccxml file with the name of  "DebugInXSRAMTargetConfiguration.ccxml", "DebugInXSDRAMTargetConfiguration.ccxml" and "DebugInRelease4XSDRAMTargetConfiguration.ccxml". Than change the target configuration within each file to pint to a differnt .gel file to perform differnt initialization.

Q.1 Would this idea work? 

Q.2 What  are other alternatives to accomplish the same?

Thanks in advance for your assitance in this.

With Best Regards,

Al Modi

 

  • I am moving this question to the CCS support forum.

  • Hi Al, 

    Your idea should work. If you add all 4 ccxml files to your project only 1 can be marked [Active], thus when switching a build configuration you would need to also adjust which .ccxml file is active to keep your build configuration and target config file in synch. Debug Active project will then use [Active] .ccxml file to start debugger. There is currently no way of setting up linkage between build configuration and .ccxml. The only suggestion that I have to make this a bit easier is to create a javascript file that creates a set of menus under "Scripts" that sets active build configuration, sets a default .ccxml file and then optionally can launch a debugger. You would have 4 menus that do these 3 steps for each configuration. see link below for more info on scripting console. 

    http://processors.wiki.ti.com/index.php/Scripting_Console

     

    Martin