Tool/software: Code Composer Studio
Hi there,
As the title, I'd like to know if there is any hard macro definition for DEBUG mode and RELEASE mode in CCS 8.2?
Thanks,
Catherine
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.
Tool/software: Code Composer Studio
Hi there,
As the title, I'd like to know if there is any hard macro definition for DEBUG mode and RELEASE mode in CCS 8.2?
Thanks,
Catherine
Hello,
user5890695 said:As the title, I'd like to know if there is any hard macro definition for DEBUG mode and RELEASE mode in CCS 8.2?
The closest variable you can use in the project properties is 'ConfigName'. This would point to the name of the currently active build configuration.
Thanks
ki
Catherine,
No, but since these are "Build Configurations", you can easily add an arbitrary number of macros that are passed to the compiler/linker via its command line. This is done via the option --define present on the project properties. Check section 6.1.3.1 of the CCS User's Guide:
https://software-dl.ti.com/ccs/esd/documents/users_guide/index.html
Optional topics:
If you want to add a different build configuration, please check the short clip below:
For an example of the benefits of having multiple build configurations, check the references below that show how they can be differentiated when debugging a device:
http://processors.wiki.ti.com/index.php/Using_Preprocessor_Support_in_Linker
Hope this helps,
Rafael