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.

CCS/TMS570LS3137: Maximum Array Size Of TMS570LS3137 HDK When Using SDRAM

Part Number: TMS570LS3137
Other Parts Discussed in Thread: HALCOGEN

Tool/software: Code Composer Studio

Hello,

I write a program to test SDRAM on my TMS570LS3137 HDK, but there is a problem with it. Im sure that all configurations are correct (EMIF timings, PINMUX, Adding SDRAM address to linker etc.). This is the sys_main.c;

#define testSize 300000

int Test[testSize];

for(int i=0; i<testSize; i++)

{

Test[i]=i;

}

The values must increase like 0,1,2,3,4,5,6... but in Memory Browser I see those values at their addresses:

Test[0] = 256 

Test[1] = 257 

Test[2] = 258 

Test[3] = 259 

........

Test[256] = 256

Test[257] = 257

....

When I debug the code step by step, the values are increasing normally until i=256

Test[0] = 0

Test[1] = 1

Test[2] = 2

...

When i=256, just Test[256] must be equal to 256 but Test[0] becomes 256 too

When i=257, just Test[257] must be equal to 257 but Test[1] becomes 257 too

...

Please help me solve this. What would be wrong? 

Best Regards,

Aslan

Edit: I also tried the code with an uint16 array.