Skip to main content
Renesas Electronics America - Knowledgebase

Storing the CRC result from multiple RL78 memory blocks (RL78 CC-RL)

Latest Updated:12/05/2016


Using the RL78 Compiler CC-RL, I performed the CRC operation for two or more areas. How do I store each CRC result?


You can store the CRC result for only one memory block at a time. Then if you wish, merge the resulting hex files using the CC-RL optimizing linker from each memory block using the following approach:
For purposes of this example, let's define the following conditions:

-The CRC operation method : 16-CCITT-LSB
-The CRC endian : LITTLE
-The output format : Intel HEX file
-The range of the area 1 : 1000h to affdh
-The address embedded with the CRC result for the area 1 : affeh
-The range of the area 2 : b000h to fffdh
-The address embedded with the CRC result for the area 2 : fffeh

Create the following subcommand file and input it to the linker.


Suitable Products
e² studio
CS+ (formerly CubeSuite+)
C Compiler Package for RL78 Family