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.
I have a CCS 6 solution that has many projects within all with many different build configurations. Some are built with the GCC compiler but another subset are built with the TI Teva ARM compiler. There is one option under ARM Compiler->Advanced Options->Runtime Model Option->Designate enum type that is set to "packed" (--enum_type). I would like this to be set to "int" instead. Is there some place or somewhere I can set this option ONCE and have it universally apply to ALL Tiva ARM project? Otherwise I will have to go through ALL permutations of every project and change the setting ...yuck!
Hi,
There is no way to change this option in existing projects, short of hacking the option itself directly on the .cproject file of all the projects. However, this is somewhat difficult to do programatically and in the end it may take the same amount of work. If you still want to try, do the following: if you have a Project with the desired setting, the .cproject should have a line similar to the following (it may have diferences due to the comnpiler version):
cproject said:<option id="com.ti.ccstudio.buildDefinitions.TMS470_4.9.compilerID.ENUM_TYPE.772961077" superClass="com.ti.ccstudio.buildDefinitions.TMS470_4.9.compilerID.ENUM_TYPE" value="com.ti.ccstudio.buildDefinitions.TMS470_4.9.compilerID.ENUM_TYPE.int" valueType="enumerated"/>
In this case, note where the line is located in the .cproject file - it should be between the inside the directives:
cproject said:<tool id="com.ti.ccstudio.buildDefinitions.TMS470_4.9.exe.compilerDebug....>
</tool>
And simply replicate it to the other projects. Note also that you need to do this for all build configurations - for example, if you have a "Release configuration" the <tool> directive would be changed to "...TMS470_4.9.compilerRelease"
On the other hand, if you are talking about having this option set when creating new projects, then you can "hack" into the device XML file of your Tiva device and explicitly set its option. To do that, open the desired device XML file in a text editor (TM4C1294NCPDT is used in the example below):
C:\ti\ccsv6\ccs_base\common\targetdb\devices\tm4c1294ncpdt.xml
Then locate the line:
tm4c1294ncpdt.xml said:<property Type="stringfield" Value=" --silicon_version=7M4 --code_state=16 --abi=eabi --float_support=FPv4SPD16 --gcc -D=ccs="ccs" -D=PART_TM4C1294NCPDT" id="CompilerBuildOptions"/>
Simply add the option at the Value directive.
Hope this helps,
Rafael