Export (0) Print
Expand All

Cvrtbin Tool

Other versions of this page are also available for the following:
Windows Mobile Not SupportedWindows Embedded CE Supported
8/28/2008

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.

<-r | -s> -a StartAddress -l ImageLength -w ImageWidthfilename

-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.

The following code example shows the output from the Viewbin tool for a run-time image:

C:>viewbin nk.bin
ViewBin... nk.bin
Image Start = 0x00220000, length = 0x00AC136C
                Start address = 0x0023D618
Checking record #72 for potential TOC (ROMOFFSET = 0x80000000)
Found pTOC  = 0x80ce02c0
ROMOFFSET = 0x80000000
Done.

Using this output, the following code example shows the syntax used to create an nk.nb0 file, using the values found in the Image Start and length lines:

C:>cvrtbin -r -a 00220000 -l 00ac136c -w 32 nk.bin

Community Additions

Show:
© 2014 Microsoft