当前位置:首页 > 嵌入式 > 嵌入式软件
[导读] 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口

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

本站声明: 本文章由作者或相关机构授权发布,目的在于传递更多信息,并不代表本站赞同其观点,本站亦不保证或承诺内容真实性等。需要转载请联系该专栏作者,如若文章内容侵犯您的权益,请及时联系本站删除( 邮箱:macysun@21ic.com )。
换一批
延伸阅读
关闭