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.

TM4C1294NCPDT: Array Addressing

Part Number: TM4C1294NCPDT


If I add a new array to my code Code Composer Studio places the Address for the new array at 0x00000000 (of course it cannot be used). I don't believe anything has changed in the setup - this just appeared today. 

The array I'm using at the moment for testing is:

unsigned char myArray[128];

Can anyone point me in the right direction?

Thank you for any assistance,

Byron

  • Hello Byron,

    Is the array actually being used for any processing? If it is just declared without being used, the compiler will optimize it out so no memory will be reserved in SRAM.

    Best Regards,

    Ralph Jacobi

  • Thank you Ralph. I don't quite understanding why my code was originally crashing. The myArray was set to capture 64 bytes of data from another bit of code. That is when I noticed it seemed to be set to an address starting at 0. Now that I've taken it away and put it back it seems to work fine. I've been pointed in the right direction and am very thankful lad!