日本黄色一级经典视频|伊人久久精品视频|亚洲黄色色周成人视频九九九|av免费网址黄色小短片|黄色Av无码亚洲成年人|亚洲1区2区3区无码|真人黄片免费观看|无码一级小说欧美日免费三级|日韩中文字幕91在线看|精品久久久无码中文字幕边打电话

當(dāng)前位置:首頁(yè) > 嵌入式 > 嵌入式軟件
[導(dǎo)讀] 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口,根據(jù)自己的修改,有2個(gè)串口的可改成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 */

(方便調(diào)試,可關(guān)掉啟動(dòng)時(shí)的重定向)

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.

當(dāng)bootrom啟動(dòng)了之后,要在host邊開(kāi)tsfs服務(wù)。具體設(shè)置如下:

1.選擇tool->target server->configure...,在Back End項(xiàng)中,選擇wdbserial,選擇對(duì)應(yīng)的com口及波特率。

2.在Core File and Symbols項(xiàng)中,F(xiàn)ile欄先不選對(duì)應(yīng)的Vxworks文件。

3.在Target Server File System項(xiàng)中,選中Enable File System,Root中選擇對(duì)應(yīng)的Vxworks所在目錄。

4.根據(jù)需要對(duì)Console and Redirection項(xiàng)中的重定位進(jìn)行選擇。(不選)

5.最后,點(diǎn)擊Launch,啟動(dòng)target server的tsfs.

這樣就開(kāi)始通過(guò)串口下載vxworks映像。

下載完后,如要通過(guò)串口調(diào)試,先關(guān)掉原下載vxworks時(shí)的target server, target server配置中在Core File and Symbols項(xiàng)中,F(xiàn)ile欄選對(duì)應(yīng)的Vxworks文件,點(diǎn)擊launch啟動(dòng)target server即可。

本站聲明: 本文章由作者或相關(guān)機(jī)構(gòu)授權(quán)發(fā)布,目的在于傳遞更多信息,并不代表本站贊同其觀點(diǎn),本站亦不保證或承諾內(nèi)容真實(shí)性等。需要轉(zhuǎn)載請(qǐng)聯(lián)系該專欄作者,如若文章內(nèi)容侵犯您的權(quán)益,請(qǐng)及時(shí)聯(lián)系本站刪除( 郵箱:macysun@21ic.com )。
換一批
延伸閱讀
關(guān)閉