在调试C6455开发板的PCI程序时,明明修改了C6455寄存器PCISTATSET,但从register中看到没有被修改,不知为何?
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.
在调试C6455开发板的PCI程序时,明明修改了C6455寄存器PCISTATSET,但从register中看到没有被修改,不知为何?
是,在程序暂停运行状态下,从程序上修改PCISTATSET,从registers窗口读,PCISTATSET没有被修改还是0x00000000;
如果直接从registers窗口修改,都修改不了。
从PCI user guide看,
The Status Set and Status Clear registers both return the contents of the internal PCI Status Register on reads.
你试试从代码里读PCISTATSET寄存器能反映出内部PCI status register的值。
程序里读PCISTATSET是0,根本就没有写进去似得,但是明明
#define PCISTATSET ((unsigned int*)0x02C00010)
*PCISTATSET = 0x02000000;
写了啊。崩溃
在程序中读
i=(*PCISTATSET)&02000000;
i读出来是0,表示没写进去吧。
针对C6455的PCI程序,TI这边有吗?麻烦给一个吧。
E2E上有工程师共享里PCI例程,可以参考一下。
https://e2e.ti.com/support/dsp/tms320c6000_high_performance_dsps/f/112/t/50107