Other Parts Discussed in Thread: HALCOGEN
Tool/software: Code Composer Studio
Hello,
I'm new in embedded systems programing. I have a TMS570LS3137 HDK and i was trying to access the SDRAM. I write a simple program to check if I can use the SDRAM.
volatile uint16_t *p = (volatile uint16_t *) 0x80000000;
for(int i=0; i<32; i++)
{
*p=(uint16_t) 0x0030 + i ;
p++;
sciSend_32bitdata(scilinREG, *p);
sciSend_32bitdata(scilinREG, p);
}
In CCS, i use terminal and the result is;
Value: 00000030 Address: 80000000
Value: 00000030 Address: 80000002
Value: 00000032 Address: 80000004
Value: 00000032 Address: 80000006
Value: 00000034 Address: 80000008
Value: 00000034 Address: 80000010
....
It saves same value 2 times. What can i do to solve this issue? I'm sure I did all of the configurations well, I enabled drivers and in PINMUX tab enabled EMIF, Gate off EMIF clock and in EMIF tab I wrote all timings same with ISSI SDRAM datasheet, tried all clock frequences, can you please hep me solve this? What would be wrong?