最近调试vxworks下的cs8900驱动,出现奇怪问题,现象如下:
auto-booting...
boot device : cs
unit number : 0
processor number : 0
host name : host
file name : /vxWorks
inet on ethernet (e) : 192.168.0.10:ffffff00
host inet (h) : 192.168.0.22
user (u) : sam
ftp password (pw) : sam
flags (f) : 0x0
target name (tn) : vxWorks
in IO mode,we write 114 reg
we write CS_PKTPG_SELF_CTL in cs8900aStart
in IO mode,we write 116 reg
Interrupt connected.
interrupt enabled.
cs8900 start end
cs8900 io base= 300
cs8900 rest= 15
cs8900 ID= 630e
cs8900 interrupt reg a22h=5550
Attached TCP/IP interface to cs0。
我发现,读芯片ID正常,可以进入cs8900aSend发送函数,不能接收数据包,但没有进入一次中断,想请教下大家,为什么读取cs8900其他寄存器正常,但在设置cs8900中断号的时候往cs8900 interrupt reg 写进0,读出的数据却是5550?