4.1 DAT File Description for M2GL, M2S, MPF and MPF SoC Devices
The data file contains the following sections:
Header Block
Contains information identifying the type of the binary file and data size blocks.
Header Section of DAT File | |
---|---|
Information | # of Bytes |
Designer Version Number | 24 |
Header Size | 1 |
Image Size | 4 |
DAT File Version | 1 |
Tools Version Number | 2 |
Map Version Number | 2 |
Feature Flag | 2 |
Device Family | 1 |
Constant Data Block
Includes device ID, silicon signature, and other information needed for programming.
Constant Data Block | |
---|---|
Information | # of Bytes |
Device ID | 4 |
Device ID Mask | 4 |
Silicon Signature | 4 |
Checksum | 2 |
Number of BSR Bits | 2 |
Number of Components | 2 |
Data Size | 2 |
Erase Data Size | 2 |
Verify Data Size | 2 |
ENVM Data Size | 2 |
ENVM Verify Data Size | 2 |
UEK1_EXISTS | 1 |
UEK2_EXISTS | 1 |
SEC_ERASE | 1 |
UEK3_EXISTS (M2S, M2GL only) | 1 |
Number of Records | 1 |
Data Lookup Table
Contains records identifying the starting relative location of all the different data blocks used in the SPI-DirectC code and data size of each block. The following table lists the format.
Look-Up-Table | |
---|---|
Information | # of Bytes |
Data Identifier # 1 | 1 |
Pointer to data 1 memory location in the data block section | 4 |
# Of bytes of data 1 | 4 |
Data Identifier # 2 | 1 |
Pointer to data 2 memory location in the data block section | 4 |
# Of bytes of data 2 | 4 |
Data Identifier # x | 1 |
Pointer to data x memory location in the data block section | 4 |
# Of bytes of data x | 4 |
Data Block
Contains the raw data for all the different variables specified in the look-up-table.
Data Block | |
---|---|
Information | # of Bytes |
Binary Data | Variable |
CRC of the entire image | 2 |