新聞中心

        EEPW首頁 > 嵌入式系統 > 設計應用 > 通過串口tsfs啟動vxworks調試

        通過串口tsfs啟動vxworks調試

        作者: 時間:2016-10-08 來源:網絡 收藏

        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口,根據自己的修改,有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 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.

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



        關鍵詞:

        評論


        相關推薦

        技術專區

        關閉
        主站蜘蛛池模板: 新建县| 河曲县| 南宫市| 商河县| 平定县| 阳山县| 称多县| 象州县| 宁城县| 定陶县| 屏山县| 阳山县| 巴南区| 株洲市| 措美县| 乃东县| 长寿区| 南靖县| 廊坊市| 台江县| 镇远县| 逊克县| 天峻县| 桓台县| 延川县| 安陆市| 沙河市| 崇义县| 临西县| 石狮市| 花莲市| 夏邑县| 镇坪县| 辽中县| 竹溪县| 腾冲县| 通江县| 咸阳市| 乐东| 广河县| 酒泉市|