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.

Debugging problem in TMS320F2808 and C28346 Project using Build configurations

Other Parts Discussed in Thread: TMS320F2808

Hi,

I changed a project from TMS320F2808 processor to C28346 by use of the build configurations.

Today I ran into a problem when I tried to debug the old Processor version. I did not recognize that the target configurations can be set 'Active' in the Project explorer.

To debug I just used the Bug-button in the menu list and selected the correct debug session (I suggested to do so)

but the debugging always failed.

When I later used the Project Explorer to set the correct one 'Active' debugging worked again!

Did I miss something in the configuration or why is the debugging no correctly connected to the build configuration?

thanks a lot for help

  • A project can have multiple target configuration files associated with it, but only one will be "Active". It is the "active" one that will be launched when you click on bug button (debug active project).

    This wiki page touches on it at step 5:
    http://processors.wiki.ti.com/index.php/GSG:Debugging_projects_v5#Creating_a_Target_Configuration_File

    Does this answer your question or did I misunderstand your question?

  • Hi,

    sorry for the late answer. Basically it answers my question.

    As an addition to the fact that there can be only one active target configuration I wanted to know if a specific target configuration file can be set active for a specific build configuration?

    So the result should be that I switch the build configuration and the active target configuration is switched automatically.

    Is that possible?

  • Andreas Unterberger said:

    As an addition to the fact that there can be only one active target configuration I wanted to know if a specific target configuration file can be set active for a specific build configuration?

    So the result should be that I switch the build configuration and the active target configuration is switched automatically.

    It is not possible to switch out the active target configuration based on build configuration, however you can create multiple debug configurations, which each one specifying which target config file to use and which program to load.

    So for instance, you can create a debug configuration called Debug1 that uses target1.ccxml and loads File1.out. And then create another debug configuration called Debug2 that uses target2.ccxml and loads File2.out.

    Debug configurations can be created/managed from CCS menu Run->Debug Configurations. The target config file is specified in the Main tab and the program to be loaded in specified in the Program tab. After the configuration is done, you can simply click on "Debug" to launch the debugger. Once a debug session has been launched once, it can then be relaunched by clicking on the drop-down list of the Debug (green bug) icon.

    This video should help walk you through the set up as well.
    http://processors.wiki.ti.com/index.php/Video_Tutorials_CCSv5#Multicore_debug_launch_made_easy

  • thanks a lot for the detailed information!