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/TMS320F28379D: predefined symbols

Part Number: TMS320F28379D


Tool/software: Code Composer Studio

When I'm learning multiday workshop of C2000, I don't understand below sentences.

Does it mean that when I'm using CPU2 I will have to add "CPU2" to predefined symbols, and if I'm using both CPUs, I have to add "CPU1" and "CPU2" in predefined symbols? what's predefined symbols for?

In my mind define a symbol should be such as "a=4", what's the sense by just add the word "CPU1" ?

Thank you.

  • Hello,

    Howard Zou said:
    Does it mean that when I'm using CPU2 I will have to add "CPU2" to predefined symbols, and if I'm using both CPUs, I have to add "CPU1" and "CPU2" in predefined symbols? what's predefined symbols for?

    I am assuming that the workshop example code uses the macros to include/exclude code that applies (or does not apply) to a specific CPU. Hence on a dual core 28379D, one project would be for CPU1 and another for CPU2 and you would use the macro to tell the compiler which project is for which.

    Howard Zou said:
    In my mind define a symbol should be such as "a=4", what's the sense by just add the word "CPU1" ?

    Because (I assume) that the example code itself relies on the CPU1 macro. It is how the example code is written.

    Thanks

    ki

  • I don't think I need to specify CPU by predefined symbols since when I load the program, the following picture will appear.

  • Setting the predefined symbols apply to build time when the application is being built. It is completely unrelated to the dialog above which is used by the debugger to determine which CPU to load the built application on.