新聞中心

        EEPW首頁 > 嵌入式系統(tǒng) > 設(shè)計(jì)應(yīng)用 > 通過串口tsfs啟動vxworks調(diào)試

        通過串口tsfs啟動vxworks調(diào)試

        作者: 時間:2016-10-08 來源:網(wǎng)絡(luò) 收藏

        modify at the config.h file end:

        本文引用地址:http://www.104case.com/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口,根據(jù)自己的修改,有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 */

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

        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.

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

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

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

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

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

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

        這樣就開始通過串口下載vxworks映像。

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



        關(guān)鍵詞:

        評論


        相關(guān)推薦

        技術(shù)專區(qū)

        關(guān)閉
        主站蜘蛛池模板: 黎川县| 清新县| 定襄县| 武汉市| 胶南市| 齐齐哈尔市| 安平县| 东辽县| 河源市| 连南| 北票市| 克东县| 错那县| 巴楚县| 伊春市| 锦州市| 宁阳县| 颍上县| 吕梁市| 佳木斯市| 天台县| 建平县| 镇雄县| 色达县| 漳浦县| 城步| 岳阳市| 商水县| 客服| 崇阳县| 探索| 双峰县| 崇文区| 濮阳县| 吐鲁番市| 信丰县| 九龙坡区| 武威市| 九江市| 钟山县| 阿坝县|