Compartilhar via


Stampbin Tool (Compact 2013)

3/26/2014

The Stampbin tool (Stampbin.exe) enables you to view and modify the data contained in the ROMPID and ROMHDR extension areas of a selected run-time image.

Syntax

stampbin [-v] [-i imagename] name type inputfile [-0 | -1] [pidfile]

Parameters

  • -v
    View the current ROMPID data for the given run-time image.
  • - i <imagename>
    Defines the name of the .bin file that you want to view or modify. By default, this is set to Nk.bin.
  • pidfile
    Specifies the name of the ASCII file in either version 0 or version 1 format that contains data for the new stamp to be used.
  • -0
    Specifies that the pidfile uses version 0 format. The file should contain 10 hex DWORD values separated by whitespace.

    This is the default setting.

  • -1
    Specifies that the pidfile uses version 1 format. The file should contain a 25 character license key followed by up to 5 OEM-defined hex DWORD values separated by whitespace.
  • name
    Specifies the named ROMHDR extension for which Stampbin.exe searches.
  • type
    Specifies the type of the named ROMHDR extension for which Stampbin.exe searches. This is a hexadecimal number.

    This must refer to the same extension specified using the name parameter.

  • input
    Specifies the name of the file that Stampbin copies into the data area that belongs to the ROMHDR extension.

    The size of the specified file must be less than or equal to the size of the data area that belongs to the ROMHDR extension.

    For more information about the data area, see MEMORY Section.

Remarks

The ROMPID data area is a special unnamed ROMHDR extension. The first ROMHDR extension is always a ROMPID data area.

This means that you can only use Stampbin to place a signature into a named ROMHDR extension if the run-time image also has a ROMPID data area that is defined. If you want to stamp a bootloader, you must make sure that the ROMPID is defined in the source code for your BSP.

See Also

Reference

Platform Builder Command Line Tools
MEMORY Section

Other Resources

ROMHDR