跳转到主内容
Knowledgebase
Home
Renesas Electronics China - Knowledgebase

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

Latest Updated:12/05/2016

Question:

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

Answer:

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:
 
<Example>
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.

-Input=sample.abs
-OUtput=area1.hex=0-afff
-FOrm=Hexadecimal
-CRc=affe=1000-affd/16-CCITT-LSB
-SPace=ff
-end
 
-Input=sample.abs
-OUtput=area2.hex=b000-ffff
-FOrm=Hexadecimal
-CRc=fffe=b000-fffd/16-CCITT-LSB
-SPace=ff
-end
 
-Input=area1.hex
-Input=area2.hex
-OUtput=sample.hex
-FOrm=Hexadecimal
-exit

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