解决步骤如下:
1. 添加如下组件
-WDB agent components
-WDB agent services
VIO driver
WDB agent
WDB banner
WDB breakpoints
WDB call function
WDB callouts
WDB events
WDB exception notification
WDB gopher
WDB hardware fpp support
WDB memory access
WDB register access
WDB system agent hardware fpp support
WDB target server file system
WDB task breakpoint
WDB task creation
WDB task exit notification
WDB task hardware fpp support
WDB tasks
WDB user event
WDB virtual I/O library
-select WDB connection
WDB END driver connection
-select WDB mode
WDB system debugging
WDb task debugging
2.确认控制器用的哪个网卡(经确认使用的是网讯WX1860网卡)
3. 修改config.h中bootline为:
#define DEFAULT_BOOT_LINE "ngb(0,0)host:vxWorks h=10.30.142.35 e=10.30.142.119 u=usr pw=pwd tn=target"
4. 在内核组件中将如下null改成ngb(网络驱动的名称)
5. 在usrAppinit.c->usrAppInit中添加如下代码:
ipAttach(0,"ngb");
ifconfig("ngb0 10.30.142.119 up");
6. 编译工程,编译完成后使用生成的VxWorks镜像文件启动系统,此时就WDB ready并且可以看到device tgtsvr了 ,如下图所示:
7. 将host主机ip地址设置为10.30.142.35。
这时候使用网线连接host网口和remote systems(VxWorks系统)的网口1,host下便可以ping通remote systems了。
8. 新建Wind River VxWorks 6.x Target Server Connection,设置如下所示:
完成后选择连接就可以实现此功能了。