This option outputs the CRC code.
CRC (cyclic redundancy check) operation is done for the specified range of section data in the order from the lower to the higher addresses, and the operation result is output to the specified output address in the specified endian mode. |
Specify one of the following as the operation method. If the specification of the operation method is omitted, operation is performed assuming that 32-ETHERNET has been specified. |
The specifiable value of initial value ranges from 0x0 to 0xFFFFFFFF when the operation method is 32-ETHERNET, and from 0x0 to 0xFFFF for other cases. |
When initial value is omitted, operation is performed on the assumption that 0x5 has been specified for the operation method of SENT-MSB, 0xFFFF for CCITT, 0xFFFFFFFF for 32-ETHERNET, and 0x0 for other cases. |
The operation result is output to the specified output address by writing at the offset location from the beginning of the area allocated by size in the byte order specified with BIG or LITTLE. 0 is output from the beginning of the allocated area until immediately before the offset location. |
When the size and offset are omitted, the size is assumed to be 2 bytes and the offset is assumed to be 0. |
When the space option is not specified, space=FF is assumed for CRC operation for the unused areas in the operation range. Note that 0xFF is only assumed for CRC operation for the unused areas, but the areas are not actually filled with 0xFF. |
To perform CRC operation for the area from 0x1000 to 0x2FFD and write the result to address 0x2FFE, describe as: |
>rlink *.obj -form=stype -start=.SEC1,.SEC2/1000,.SEC3/2000 -crc=2FFE=1000-2FFD -output=out.mot=1000-2FFF |
When multiple load module files are input, the compiler outputs a warning message and ignores this option. |
This option is valid when the output format is form={hexadecimal | stype}. For any other cases, the error message is output and execution is terminated. |
When the space option is not specified and the operation range includes an empty area that is not output, 0xFF is assumed to be stored in the unused area during CRC operation. |
The following can be specified for the size and offset when specifying the endian. For any other cases, the error message is output and execution is terminated. |