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.

Compiler/TDA2SX: SW maximum element size

Guru 10750 points
Part Number: TDA2SX

Tool/software: TI C/C++ Compiler

Hello All,

We defined a structure which include three elements first element size = 0x0600 0000, second element size = 0x0c00 0000 and the third element size = 0x330, the basic address of the structure is 0xCA90 0000 so the first element get the basic address 0xCA90 0000 the second one gets 0xD090 0000 and the last one gets 0xBC90 0000 insted of 0xDC90 0000, when we reduced the over all size to less then 0x1000 0000 then everything is fine, is there any size limitation to a SW element? we also checked the struct size and we are getting a negative number,

We are using C66 ti-cgt-c6000_8.1.0 tool,

Many Thanks,

HR

  • For the source file that defines this very large structure, please follow the directions in the article How to Submit a Compiler Test Case.

    Thanks and regards,

    -George

  • Hello George,

    Please find attached a test project which was loaded to TDA2x/DSP1,

    In the file dsp1_main you can find the structure wStructTest if you decrease the overall size to less then 0x10000000 then everything is fine but if it is bigger then that then the wStructTest.structTest1 address is 0xBC900000 instead of 0xDC900000, you can also see that the struct size is negative,

    DSP1_buf_size.zip

    Many Thanks,

    HR

  • Thank you for submitting the test case.  I don't have the hardware that allows me to see the problem in CCS like you do, but I was able to determine the compiler makes an error which explains what you see.  The compiler generates debug information which CCS uses to do many things.  One of these things is to display a structure correctly.  For the third member of the structure wStructTest, the compiler emits the wrong offset in the debug information.  I filed the entry CODEGEN-6866 in the SDOWP system to have this investigated.  You are welcome to follow it with the SDOWP link below in my signature.

    Thanks and regards,

    -George

  • Hello George,

    It's not just the CCS display it is a wrong memory usage which goes over other data, please note that we see the same issue on M4 core using compiler version TI v16.9.2.LTS,

    Will follow CODEGEN-6866 in the SDOWP system,

    Many Thanks,

    HR