| 网站首页 | 文章中心 | 下载中心 | vxworks在线文档 | 实时论坛 | 
您现在的位置: vxworks开发网 >> 文章中心 >> 技术资料 >> 文章正文 用户登录 新用户注册
通过串口tsfs启动vxworks调试            【字体:
通过串口tsfs启动vxworks调试
作者:frank    文章来源:本站原创    点击数:    更新时间:2008-2-16    

11:26 2002-2-22  create by frankzhou

                          how to boot target by serial connect and debug

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即可。


 

文章录入:frank    责任编辑:frank 
  • 上一篇文章:

  • 下一篇文章: 没有了
  • 发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
    最新热点 最新推荐 相关文章
    vxworks中的VME总线情况
    vxworks下文件读写示例
    vxworks生成BOOTROM的两种方…
    DOC盘启动vxworks
    Arbor EmCore-i412板子在vxw…
    vxworks下串口读写示例
    vxworks中实现双网卡驱动的例…
      网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)