Bin file format
Mirrored files compiled with PB generally will be given in both bin files and NB0 files.
The NB0 file is a complete image file of the address space, equivalent to a hard copy of the address space.
The Bin file is a binary ROM image file format, compared to the NB0 file, which compresses invalid data. The BIN file contains file headers and many segments, each segment gives the first address, length, check code, and data in the actual image.
The detailed format of the bin file is as follows:
File head (length: 7 bytes, content fixed), equivalent to a string "B000FF" plus a carriage return
42 30 30 30 46 46 0A
Keep up with the basic information of the entire image: (8 bytes)
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00ins.
Mapping to the first address of the entire image
Next is the definition of each segment
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
The length check code data of the first address segment of the segment, the length has been given
The definition of each segment is the same as above.
Note: The NB0 file is a complete image file in the address space, which is equivalent to the hard copy of the address space.