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.

TMS320F280049C: CCS doesn't report error when the gaven array size is less than the real array size

Part Number: TMS320F280049C

Hi,

I use CCS 11.2.0.00007 to compile a program that uses an array as below:

long aryAsin[128] = {
    IQ(0.000000, 30), // 0.000000 (0/256)
    IQ(0.015626, 30), // 0.015625 (1/256)

    ...

};

There are 129 data in the array but I gave a wrong array length 128. CCS doesn't report anything wrong,

 it just removes the last data in the array. This causes the last data of the array a wrong number.

Don't know if this has been fixed in the subsequent versions. If not, please fix it.

thanks,

Jiakai

  • Hello Jiaki,

    I tested making an array of size 5 with 6 values and it does throw a warning (compiler version 22.6), not an error. Do you not see this warning on your side? It should say, "#1238-D excess initializers are ignored".

    Best regards,

    Omer Amir