日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

WINCE cvrtbin命令简介

發布時間:2025/4/16 编程问答 33 豆豆
生活随笔 收集整理的這篇文章主要介紹了 WINCE cvrtbin命令简介 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

********************************LoongEmbedded********************************

作者:LoongEmbedded(kandi)

時間:2010.10.25

類別:WINCE嵌入式操作系統

********************************LoongEmbedded********************************

WINCE cvrtbin命令簡介

關于cvrtbin的用途,最常用的就是將NK.bin轉換出NK.nb0。用法如下:

Cvrtbin (Cvrtbin.exe) is a command-line tool that converts read-only memory (ROM) files from binary (.bin) format to Motorola 32-bit (.sre) format or absolute binary (.abx) format.

?

cvrtbin <-r | -s> -a StartAddress -l ImageLength -w ImageWidth? filename

?

Parameters

-s

Generates an .sre file from a .bin file.

-r

Generates a ROM file from a .bin file.

-a

Specifies the ROM starting address. You must specify this parameter when converting a .bin file to a ROM format.

-w

Specifies ROM width, which is set to either 8, 16, or 32 bits. You must specify this parameter when converting a .bin file to a ROM format.

-l

Specifies ROM length, expressed as a hexadecimal value. You must specify this parameter when converting a bin file to a ROM format.

?

StartAddress

Specifies the start of the run-time image in memory.

?

ImageLength

Specifies the length of the run-time image in memory.

?

ImageWidth

Specifies the width of the run-time image in memory.

?

filename

Specifies the file name of the target run-time image, typically nk.bin.

?

cvrtbin [options] [filename]

-s bin文件中產生sre文件

-r bin文件中產生rom文件

-a rom文件的起始地址

-w 總線的寬度

-l rom文件的大小

這個工具可以和viewbin工具一起使用,將NK.bin文件轉換成NK.nb0。首先通過:viewbin nk.bin命令獲得NK.bin的起始地址和大小,如下所示:

從上圖可以知道image startlength的值,然后通過下面的命令:

Cvrtbin –r –a 0x80200000 –l 0x00E6610C –w 32 nk.bin

如下圖所示:

也可以通過下面的命令:

Cvrtbin –a 0x80200000 –l 0x00E6610C –w 32 –r nk.bin,如下圖所示:

這樣就可以將NK.bin轉換成NK.nb0。起始地址為0x802C0000,大小是0x00E6610C,總線寬度為32bit,最后輸出NK.nb0,也可以通過下面的命令來輸出到output.txt文本文件中

輸出的output.txt文本文件如下

……………………….

?

也可以通過上面類似的命令來生成.src文件,我們也可以在config.bib中通過加入如下內容:

SRE=ON

這樣在編譯的時候Romimage.exe就會編譯生成NK.src文件,如果config.bib中沒有SRE的設置或者是SRE=OFF,Romimage.exe就不會編譯生成NK.src文件。

?

總結

以上是生活随笔為你收集整理的WINCE cvrtbin命令简介的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。