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.

66AK srio调试始终要进入异常中断



大家好

调试使用的例程是由SRIO_LpbkDioIsrK2HC66BiosExampleProject修改而来的。修改的内容只是将loopback修改为normal模式,以及将X1修改为X2模式

在SRIO初始化前加入

KeyStone_common_CPU_init();

K2_common_device_init();

KeyStone_Exception_cfg(TRUE);

这样程序就会跑飞。如果将

//KeyStone_common_CPU_init();

//K2_common_device_init();

这两句话屏蔽,那么程序就会进入异常中断。

进入异常中断打印信息如下:

External exception happened. MEXPFLAG[3]=0x80000000.

EMC_BUSERR Bus Error Interrupt for global configuration space between 0x01C00000 - 0x07FFFFFF

CFG write status error detected

XID (Transaction ID)= 14

Privilege error

如果什么语句都不加,那么程序就没有问题,不过66AK只能通过 NWRITE_R向其他器件的内存写数据,别的器件无法向66AK写数据

我也试过66AK通过NREAD方式读取别的器件的内存,也不行。

请问这是怎么回事啊?