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.
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 line
Hex文件格式说明文档 来自淘豆网www.taodocs.com转载请标明出处.