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.

_Bool is undefined when debugging F28377D CLA

I am debugging cla example projects (v170) on F28377D using CCS 5.5 with compiler version of 6.4.9.

It is good to run the example projects, but the problem occurs when I want to modify the file.

I have ran two projects, "cla_adc_fir32_cpu01" and "cla_vinverse_cpu01". Everything is OK when I am debugging and running the original projects, However, when I want to add a .cla file to "cla_adc_fir32_cpu01" in which "F28x_Project.h" is included , the following errors occur:

line 114,118: error #20: identifier "_Bool" is undefined, in F2837xD_device.h

I have browsed the forum and try to add the definition of _Bool as follow:

#define  _Bool bool

But it doesn't work. Then I try another project "cla_vinverse_cpu01" which the cla file is written in .cla instead of .asm in the previous "cla_adc_fir32_cpu01". The only modification in .cla file is to include the header file of F2837xD_device.h, the same problem occurs.


It seems that F2837xD_device.h couldn't been added in .cla file. Is there any guide to solve these problems due to compiler settings? Otherwise it can't read the ADC results or change ePWM settings in .cla file.