我将一个txt文件加载到DDR2 widt xmd dow命令。我的txt文件如下
我使用C函数
void DispMem(int addrMem)
{
xil_printf(“addr =%08X mem =%08X r n”,addrMem,*(int *)(addrMem));
}
DispMem(XPAR_DDR2_SDRAM_MEM_BASEADDR);
但我得到一个错误的值,第一个数据是“5”,得到的结果是addr = 00000000 mem = 00000011 !!!!!! plz help,我也使用了XIO_IN8(DDR2_BaseAddress)而没有
最好的祝福;
data.txt.txt 1 KB
以上来自于谷歌翻译
以下为原文
I load a txt file to DDR2 widt xmd dow command.
My txt file is as follow
I use the C func
tion
void DispMem(int addrMem){xil_printf("addr=%08X mem=%08Xrn",addrMem,*(int *)(addrMem));}DispMem(XPAR_DDR2_SDRAM_MEM_BASEADDR);
but I obtain a wrong value
for the first data that is "5"
the result obtained is addr=00000000 mem= 00000011
!!!!!!
plz help, I used also XIO_IN8(DDR2_BaseAddress) and nothing
best regards;
data.txt.txt 1 KB