您的位置 首页 基础

经过串口tsfs发动vxworks调试

modify at the config.h file end:/* add by frank */#undef WDB_COMM_TYPE#define WDB_COMM_TYPE WDB_COMM

modify at the config.h file end:

/* 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 tornado\target\config\all\bootconfig.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即可。

声明:本文内容来自网络转载或用户投稿,文章版权归原作者和原出处所有。文中观点,不代表本站立场。若有侵权请联系本站删除(kf@86ic.com)https://www.86ic.net/zhishi/jichu/297492.html

为您推荐

联系我们

联系我们

在线咨询: QQ交谈

邮箱: kf@86ic.com

关注微信
微信扫一扫关注我们

微信扫一扫关注我们

返回顶部