START_ADDR的地址是0x21000000,用memory browser观察到的值是0x00000000,为什么用DDR_ReadReg函数读出来regdata=512??
int DDR_ReadReg(ReadReg)
{
unsigned int ReadReg;
ReadReg = *(unsigned int *)(RegAddr)
return (ReadReg);
}
Seven Han:您用的是C600系列的芯片?建议您到dap论坛咨询:e2echina.ti.com/…/
START_ADDR的地址是0x21000000,用memory browser观察到的值是0x00000000,为什么用DDR_ReadReg函数读出来regdata=512??
int DDR_ReadReg(ReadReg)
{
unsigned int ReadReg;
ReadReg = *(unsigned int *)(RegAddr)
return (ReadReg);
}
mangui zhang:是不是memory查看的是字节地址注意字地址和字节地址
START_ADDR的地址是0x21000000,用memory browser观察到的值是0x00000000,为什么用DDR_ReadReg函数读出来regdata=512??
int DDR_ReadReg(ReadReg)
{
unsigned int ReadReg;
ReadReg = *(unsigned int *)(RegAddr)
return (ReadReg);
}
user5774529:
回复 Seven Han:
是的6678,谢谢你的建议啦
START_ADDR的地址是0x21000000,用memory browser观察到的值是0x00000000,为什么用DDR_ReadReg函数读出来regdata=512??
int DDR_ReadReg(ReadReg)
{
unsigned int ReadReg;
ReadReg = *(unsigned int *)(RegAddr)
return (ReadReg);
}
user5774529:
回复 mangui zhang:
您好,在memory中怎么看字地址还是字节地址啊
START_ADDR的地址是0x21000000,用memory browser观察到的值是0x00000000,为什么用DDR_ReadReg函数读出来regdata=512??
int DDR_ReadReg(ReadReg)
{
unsigned int ReadReg;
ReadReg = *(unsigned int *)(RegAddr)
return (ReadReg);
}
mangui zhang:
回复 user5774529:
你将地址*8或➗8读取一下看看值是否一样
START_ADDR的地址是0x21000000,用memory browser观察到的值是0x00000000,为什么用DDR_ReadReg函数读出来regdata=512??
int DDR_ReadReg(ReadReg)
{
unsigned int ReadReg;
ReadReg = *(unsigned int *)(RegAddr)
return (ReadReg);
}
user5774529:
回复 mangui zhang:
*8读取是000000BF
/8读取是00000000
*8和/8是什么意思啊,我还不太明白