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.

Predefined symbols problem with CCS 6.1.3

Other Parts Discussed in Thread: CODECOMPOSER

Hi

I installed CodeComposer 6.1.3 today and almost everything works fine so far. I have just a little issue:

I'm using a predefined symbol for different hardware revisions (as a compile switch):

compile option:  --define=_HWREV='A'

code:

133    #if _HWREV == 'A' | _HWREV == 'B' | _HWREV == 'C'
134       cc_meas.immediate.Idc1        = IDC_SCALE * ((int16)AdcMirror.ADCRESULT0 - IDC1_OFFSET);
135    #elif _HWREV == 'D'
136       cc_meas.immediate.Idc1         = -IDC_SCALE * ((int16)AdcMirror.ADCRESULT0 - IDC1_OFFSET);
137   #else
138      #error "Unknown Hardware Revision"
139   #endif

I get the follwing error (in CCS6.1.3):

"C:/Users/sinus/SVN/CC-75-500/branches/testCCS6_1/CC75500_BIOS/headers/DriveControl/cc_measurements.h", line 133: remark #195-D: zero used for undefined preprocessing identifier "A"
"C:/Users/sinus/SVN/CC-75-500/branches/testCCS6_1/CC75500_BIOS/headers/DriveControl/cc_measurements.h", line 133: remark #195-D: zero used for undefined preprocessing identifier "A"
"C:/Users/sinus/SVN/CC-75-500/branches/testCCS6_1/CC75500_BIOS/headers/DriveControl/cc_measurements.h", line 133: remark #195-D: zero used for undefined preprocessing identifier "A"
"C:/Users/sinus/SVN/CC-75-500/branches/testCCS6_1/CC75500_BIOS/headers/DriveControl/cc_measurements.h", line 135: remark #195-D: zero used for undefined preprocessing identifier "A"
"C:/Users/sinus/SVN/CC-75-500/branches/testCCS6_1/CC75500_BIOS/headers/DriveControl/cc_measurements.h", line 138: fatal error #35: #error directive: "Unknown Hardware Revision"

I had no problem in CCS 6.1.1 .I'm using Compilier version 6.4.11.

How can I fix this?

Thank you in advance,

Simon

PS: the compile switch works with numbers but I would prefer to use chars.