Hex文件格式说明文档

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

Hex File Reference

The postlocator is responsible for generating the hex file needed for the ROM flow. It can also be used by emulator and simulator for testing purposes. Due to the data structure of Intel hex files, it is not possible to handle virtual and physical addresses as data structures within the same file nor virtual addresses for multiple levels. Therefore, SLE 79 specific information is provided within comment lines. Such information are comments to be is played in the ROM generator GUI, date and time of creation, segment descriptors, virtual addresses and so on.

Note: The Intel hex file is an ASCII text file with lines of text that follow the Intel hex file format. Each data line in an Intel hex file contains one hex record. These records are made up of hexadecimal numbers that represent machine language code and/or constant data. Intel hex files are often used to transfer program and data to be stored in ROM or NVM.

1.1 Hex File Structure

The SLE 70 hex file is divided into three parts which have to occur in the described order:

• Comment part containing the following information:

–As first line “; TYPE=SLE70_MASK_IHEX” as identifier for the SLE 70 hex file format.

– Five sections in arbitrary order

- COMMENT (optional)

- INFO

- MEMORY_ADDRESSES

- CONFIG

- DESCRIPTOR

– The keywords inside these sections may contain

- Letters “a –z” and ”A –Z” (not case sensitive)

- Digits “0 –9” but not as first character

- “-” or “_” but not as the first character

-Leading and trailing spaces are ignored

• Data part which data lines (records) start always with a colon “:”. The only comments allowed in this part are the definitions of the virtual addresses “V_ADDR = 0x...”. These comments are allowed at the beginning of a line and define the virtual address for the following data lines until another definition of the virtual address. The virtual address must contain the level information in the upper byte. The offset

in an extended linear address record affects both the physical and the virtual address. Gaps in the data record section also affect the virtual address.

• Optional comment part which is situated after the “end-record” line.

General Rules

• The indicator for a comment line is t he semicolon “;”.

• The indicator for a data line is the colon “:”.

• Every character to the right of the equal sign will be assigned to the value of the keyword, except leading and trailing spaces. Quoting of strings containing spaces is not required.

• E mpty lines may occur anywhere in the file.

1.1.1Body of a SLE 70 HEX File

The basic structure of a SLE 70 hex file is given below. Optional parts are shown in green.

相关文档
最新文档