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.

为什么F2812读外部RAM时,发现与之前写的内容不一致?



用F2812写外部RAM后,再读出来,为什么读的内容和写的内容不一致?

程序如下:

#define EXRAM 0x00081000
Uint16 Read[3200];
Uint16 *ptr;
int16 i;

void main()
{
InitSysCtrl();

DINT;
IER = 0x0000; 
IFR = 0x0000; 

InitPieCtrl();

InitPieVectTable();

EINT;

ptr=(unsigned int*)EXRAM;

for(i=0;i<3200;i++)
{
*ptr=0x5555;
asm(" RPT #10 || NOP ");
Read[i]=*ptr;
ptr=ptr+1;

}

}

有哪位大神帮忙看一下。。。求助