I am trying to test my interface to my off chip SRAM. I have initialize the EMIF registers in a GEL file. I can read and write to the memory using the view option. When I run my application to write know values to the memory it does not write to the memory correctly. Sometimes I have to shut down my CCS and restart the emualtor and my target. I have 1 meg words of SRAM. This is the code I wrote to store the values in memory.
Uns *myptr;
int i;
myptr = (Uns *)0x600000;
for (i = 0; i < 1000; i++)
{
*myptr = (Uns)0x1234;
myptr++;
*myptr = (Uns)0xbeef;
myptr++;
}
Is this a correct way to write to the memory?
Thanks
Barry