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.

TMS320F28377S: An array is declared using const, and the array value is incorrect after compilation

Part Number: TMS320F28377S

Hi Team,

Here's an issue from the customer may need your help:

After declaring an array through const, the data value is found to be garbled during simulation. Check the hex file and find that the generated hex file is also incorrect. Where is the problem?

When all values are assigned to 0, the following problems exist:

When not assigned to 0, it is normal:

Tried the v18 v21 v22 version of the compiler.

--

Thanks & Regards

Yale

  • Hello Yale,

    What datatype is USIGN16? This is not the standard datatypes that we recommend for creating programs with in CCS, is there some reason the customer isn't using the built-in uint16_t? If this is not defined the same way as the uint16_t datatype, it may not show up in the Expressions window as expected.

    Best regards,

    Omer Amir