I have a follow on question (an extension to this thread http://e2e.ti.com/support/embedded/tirtos/f/355/t/191616.aspx)
I added this line in my .cfg file: Program.global.EVM_TEST = 1;
This created a #define EVM_TEST 0x1 definition in some _pe66.h file
This definition is accessible from my source file if I #include <xdc/cfg/global.h>
In my function I'm using this definition in two ways:
void Test()
{
int array[EVM_TEST];
#ifdef EMV_TEST
Fxn1();
#else
Fxn2();
#endif
}
This code segment compiles without giving me any errors. However, the CCS tool is showing me that Fxn2() is the call that is being made (the call to Fxn1() is greyed out).
NOTE: I actually just verified that Fxn1() is being called as expected. The tool is just displaying the information incorrectly. I'm using CCS 5.4.0.00091.