我们在试验C6726B的dMax功能时,发现dMax传输不能启动。进一步测试发现dMax的相关寄存器不能写入,代码如下:
#include <stdio.h>
void main ()
{
printf ("——-%x\n", (*(unsigned int*)(0x6000000C)));
(*(unsigned int*)(0x6000000C)) = 0x20;
printf ("——-%x\n", (*(unsigned int*)(0x6000000C)));
printf ("——-%x\n", (*(unsigned int*)(0x60000014)));
(*(unsigned int*)(0x60000014)) = 0x20;
printf ("——-%x\n", (*(unsigned int*)(0x60000014)));
printf ("——-%x\n", *((unsigned int*)0xF0000010));
*((unsigned int*)0xF0000010) = 0x1111;
printf ("——-%x\n", *((unsigned int*)0xF0000010));
}
输出信息如下:
——-0
——-0
——-0
——-0
——-3ffffffd
——-1111
求大神指点!
Tony Tang:
C672x有个ROM的patch,确保工程里加入了patch包。