How can I test external ZBT RAM on MPS2 board?

Hello:

I need more  RAM size on MSP2 board.

in Keil  uVison 5, I add a simple code to write then read testing.

//-------------------------------------------------------

ram_addr=(volatile uint32_t *)(0x20400000);

for (j=0; j<1024; j++)
{
*ram_addr++=j;
}

for (j=0; j<1024; j++)
{
data=*ram_addr++;
printf(" %x ", data);
}*/

//------------------------------------------------------

According to datasheet, 0x20400000 is the start address of ZBT SRAM2/3. 

After write, I read random data, not sequential 1, 2, 3, ......  I wrote into SRAM.

Can you tell me what wrong with it?

Thanks

Jimmy 

Parents Reply Children
No Data