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.

TMS320C6678: 【TMDXEVM667LE】使用memset函数对DDR空间写入数据

Part Number: TMS320C6678

使用的是STK例程,在初始化之后,get_dsp_number函数前加入下面四行程序进行测试。

memset((void*)0x80000000,0,0x10000000);
memset((void*)0x90000000,0xA5,0x10000000);
*((int *)0xc0000000)=0xAAAA5555;

*((int *)0x80000000)=0x5555AAAA;

使用如上代码对DDR空间进行写数

执行完memset((void*)0x80000000,0,0x10000000)后,0x80000000 0xa0000000 0xc0000000 0xe0000000空间上均被写0

执行完memset((void*)0x90000000,0xA5,0x10000000)后,0x90000000 0xb0000000 0xe0000000 0xf0000000空间上均被写0xA5

但是对0xc0000000上写入0xAAAA5555发现在DDR空间上仅该地址写入该值,而对0x80000000写入0x5555AAAA也同样只有0x80000000地址上写入0x5555AAAA

结论 对DDR空间进行连续写操作会改变其他DDR空间上的值 请问为什么会出现这种情况?