Share via


Cvrtbin Tool (Compact 2013)

3/26/2014

This tool converts ROM files from binary (.bin) format to Motorola 32-bit (.sre) format or absolute binary (.abx) format.

Syntax

cvrtbin -s | -r [-a Start Address -w Image Width] -l Image Length filename

Parameters

  • -s
    Generates an .sre file from a .bin file.
  • -r
    Generates a ROM file from a .bin file.
  • -a
    Specifies the ROM Start Address. You must specify this parameter when converting a .bin file to a ROM format.
  • -w
    Specifies ROM Image Width, which is set to 8, 16, or 32 bits. You must specify this parameter when converting a .bin file to a ROM format.
  • -l
    Specifies ROM Image Length, expressed as a hexadecimal value. You must specify this parameter when converting a .bin file to a ROM format.
  • filename
    Specifies the file name of the target run-time image, typically nk.bin.

Remarks

The following code examples show calling the cvrtbin tool using information about a run-time image obtained from the Viewbin tool.

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

See Also

Reference

Platform Builder Command Line Tools
Romimage Tool (romimage.exe)
Binary Image Builder (.bib) File