Part Number: F28M35H52C
Other Parts Discussed in Thread: CONTROLSUITE
Tool/software: Code Composer Studio
When I do the following the variable is zeroed out when I run the code instead of containing the data that I specified.
Uint16 myVar[2] = {1,2}; // this is in my main source file declared as a global before the main routine
In a source file can you no longer set a global variable in the same line as the declaration or is there some project setting which allows you to enable/disable this? I recently moved from CCS 6.1.1 using compiler 6.4.6 to CCS 7.4.0 using compiler 16.9.6. I started a new project pulling heavily from an old project and have noticed that I can no longer set a variable in the same line as I declared it.