阅读:1842回复:0
通过串口使用TSFS出现问题,超急!!高手请进呀
我最近做486的BSP,有两个串口,一个做WDB用,一个做终端,下载使用TSFS,配置如下:
#define INCLUDE_SERIAL #undef NUM_TTY #define NUM_TTY (N_UART_CHANNELS) /* number of tty channels */ #undef CONSOLE_TTY /*add by cyf use com2 for console*/ #define CONSOLE_TTY (1) #undef CONSOLE_BAUD_RATE #define CONSOLE_BAUD_RATE 115200 /* Redefine to PP1 default */ #undef WDB_TTY_CHANNEL #define WDB_TTY_CHANNEL 0 #undef WDB_COMM_TYPE #define WDB_COMM_TYPE WDB_COMM_SERIAL /* 0 communication through serial port */ #undef WDB_TTY_BAUD #define WDB_TTY_BAUD 38400 #define INCLUDE_TSFS_BOOT #undef INCLUDE_WDB_TSFS #define INCLUDE_WDB_TSFS bootrom起来后可以通过TSFS下载vxworks到内存中,运行也正常。vxworks配置包含了 WDB Target File System,我在SHELL中查看主机目录中的文件时出现下面的情况: -> devs drv name 0 /null 1 /tyCo/1 4 /vio 5 /tgtsvr value = 25 = 0x19 -> cd "/tgtsvr" value = 0 = 0x0 -> ls . .. sysALib.o sysLib.o usrAppInit.o prjConfig.o linkSyms.o 文件没有列完就死翘了,看了一下tgtsvr,显示如下: tgtsvr (host:@hzk-7): Thu Aug 11 10:02:05 2005 Checking License ...OK Connecting to target agent... succeeded. Attaching C++ interface... succeeded. Attaching elf OMF reader for I80X86 CPU family... succeeded. TSFS: opened directory (E:\Tornado2.2\target\proj\EM486\default). Error: rpccore backend client Client can't decode result Warning: Cannot get event. 有时候它可以显示几次,有时后一次都不行,这是为什么呀?那位兄弟知道告诉我一声呀!!超感激不尽呀!!现在根本就没法通过TSFS下载vxworks到FLASH中呀!! |
|