EMERSON KJ4001X1-CK1质量接线板
mageName无符号字符20用户定义的ImageRamAddress无符号整数1 RAM地址ImageOffset无符号整数从标头开始到条目的偏移ImageFlags无符号整数参考第110页的图像标志ImageVersion无符号整数用户定义的保留无符号整数8保留用于扩展校验和算法校验和算法是每个单词的简单无符号单词相加(4字节)位置。图像长度必须是4字节的倍数(字对齐)。标头中校验和位置的内容不是校验和计算的一部分。计算假定位置为零。该算法使用以下代码实现:无符号整数校验和(无符号int*startPtr,/*起始地址*/无符号int endPtr/*结束地址图像标志标头的图像标志定义了控制图像执行方式的各种位选项。COPY_TO_RAM如果设置,则此标志表示在传递控制之前,图像将复制到标头中指定的地址处的RAM。如果未设置,则图像将在闪存中执行实例中,控件将以标头中指定的图像偏移量从图像底部传递。
mageName unsigned character 20 User defined
ImageRamAddress unsigned integer 1 RAM address
ImageOffset unsigned integer 1 Offset from header start to entry
ImageFlags unsigned integer 1 Refer to Image Flags on page 110
ImageVersion unsigned integer 1 User defined
Reserved unsigned integer 8 Reserved for expansion Checksum Algorithm
The checksum algorithm is a simple unsigned word add of each word (4 byte) location in
the image. The image must be a multiple of 4 bytes in length (word-aligned). The content
of the checksum location in the header is not part of the checksum calculation. The
calculation assumes the location to be zero. The algorithm is implemented using the
following code:
Unsigned int checksum(
Unsigned int *startPtr,/* starting address */
Unsigned int endPtr/* ending address Image Flags
The image flags of the header define various bit options that control how the image will be
executed.
COPY_TO_RAM
If set, this flag indicates that the image is to be copied to RAM at the address specified in
the header before control is passed. If not set, the image will be executed in flash. In both
instances, control will be passed at the image offset specified in the header from the base
of the image.