新闻中心

EEPW首页 > 嵌入式系统 > 设计应用 > 通过串口tsfs启动vxworks调试

通过串口tsfs启动vxworks调试

作者:时间:2016-10-08来源:网络收藏

modify at the config.h file end:

本文引用地址:http://www.eepw.com.cn/article/201610/305954.htm

/* add by frank */

#undef WDB_COMM_TYPE

#define WDB_COMM_TYPE WDB_COMM_SERIAL

#undef CONSOLE_TTY

#define CONSOLE_TTY 0 /* console口,根据自己的修改,有2个串口的可改成1 */

#undef WDB_TTY_CHANNEL

#define WDB_TTY_CHANNEL 0

#undef WDB_TTY_BAUD

#define WDB_TTY_BAUD 38400 /* default baud rate is 9600*/

#define INCLUDE_TSFS_BOOT

/*end by frank */

(方便调试,可关掉启动时的重定向)

in the tornadotargetconfigallbootconfig.c, undefine the tsfs_boot_vio_console by :

找到:

#ifdef INCLUDE_TSFS_BOOT /* boot via Target Server File System */

#if ((WDB_COMM_TYPE == WDB_COMM_SERIAL)

(CONSOLE_TTY == NONE || CONSOLE_TTY == WDB_TTY_CHANNEL))

#define INCLUDE_TSFS_BOOT_VIO_CONSOLE /* needed for Target Server Console */

#endif

改为:

#ifdef INCLUDE_TSFS_BOOT /* boot via Target Server File System */

#if ((WDB_COMM_TYPE == WDB_COMM_SERIAL)

(CONSOLE_TTY == NONE || CONSOLE_TTY == WDB_TTY_CHANNEL))

#undef INCLUDE_TSFS_BOOT_VIO_CONSOLE /* needed for Target Server Console */

#endif

please note the value of wdb_tty_baud .

To avoid some error of networking, could undefine the INCLUDE_END.

重编译生成bootrom和vxworks.

当bootrom启动了之后,要在host边开tsfs服务。具体设置如下:

1.选择tool->target server->configure...,在Back End项中,选择wdbserial,选择对应的com口及波特率。

2.在Core File and Symbols项中,File栏先不选对应的Vxworks文件。

3.在Target Server File System项中,选中Enable File System,Root中选择对应的Vxworks所在目录。

4.根据需要对Console and Redirection项中的重定位进行选择。(不选)

5.最后,点击Launch,启动target server的tsfs.

这样就开始通过串口下载vxworks映像。

下载完后,如要通过串口调试,先关掉原下载vxworks时的target server, target server配置中在Core File and Symbols项中,File栏选对应的Vxworks文件,点击launch启动target server即可。



关键词:

评论


相关推荐

技术专区

关闭