Wince BIN file format

Source: Internet
Author: User
Tags format definition

The binary image (. Bin) File Format organizes data by sections. Each section contains a section header that specifies the starting address, length, and checksum for that section.

Romimage.exe writes data organized by logical sections, such as an application's text or. Data region, to the. BIN file.

The image terminates with an image record header with the physical address and checksum set to zero.

A configuration file formatted as. BIN file is small and fast. a. BIN file is about half the size of. sre file. this smaller size allows. BIN file to download faster. sre file when you are using the Windows CE console debug shell tool (cesh.exe ).

The following table shows the. BIN file format.

Field Length (bytes) Description
Sync bytes (optional) 7 Byte 0 is B, Indicating a. BIN file format.

Bytes 1-6 are reserved and set to 0, 0, 0, F, F,/n.

Image Header, consisting of the following:    

Image address

4 Physical starting address of the image.

Image Length

4 Physical length, in bytes, of the image.
One or more records, consisting of the following:    

Record address

4 Physical starting address of data record.

If this value is zero, the record address is the end of the file, andRecord LengthContains the starting address of the image.

Record Length

4 LengthRecord Data, In bytes.

Record checksum

4 Signed 32-bit sumRecord DataBytes.

Record Data

Record Length Record data.

The following code example shows a. BIN file format definition.

IMAGE HEADER 15 Bytes:4230303046460A - 7 byte sync record000000A0 - 4 byte starting physical address of image00004000 - 4 byte physical length of imageIMAGE RECORD HEADER 12 Bytes:4 byte physical address of record4 byte length of record4 byte checksum of recordImage Record Data - Length specified in length of record

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.