Tool/software: Code Composer Studio
generally, most CCS project have a CFG file that is processed by configuro to configure TIRTOS and driver lib.
In my case, the file is called "release.cfg", CCS - when building the example application invokes "configuro" with numerous parameters.
In the "release.cfg" file - I need to test to see if a specific compiler command line option is enable - if it is enabled, I need to modify other things in the 'release.cfg' file. In pseudo code, I need to the following:
if compiler command line option: '-DFOOBAR=1' is present on the command line
then
/* move the reset vector to another address */
m3Hwi.resetVectorAddress = 0x50;
/* Vector table lives at start of RAM */
m3Hwi.vectorTableAddress = 0x20000000;
else
/* leave the reset vector at address 0, make no modifications */
endif
Question How do I get access to the compiler command line options at that point?
Note: Specifically - this is the command line options that are GIVEN to the configuro application with the "--compilerOptions" parameter.
If you could show me something simple like:
print( "the compiler options are: " ???????? )
that would be great.
