RL78 Family VDE Certified IEC60730/60335 Self Test Library
R01AN0749EG0201 Rev.2.01 Page 28 of 50
Mar 04, 2014
3.2 Flash ROM Verification
The ROM is tested by calculating a CRC value over the complete range of the Flash memory contents and comparing
with a reference CRC value that must be added to a specific location in the ROM not included in the CRC calculation.
The IAR embedded workbench tool chain can be used to calculate and add a CRC value and placed at a location at a
location specified by the user. This can be done via an external utility or using the IAR tool to generate the reference
CRC value and place the reference value in memory. Please note that this utility can only be used when using the
“software” CRC module. To provide a reference value when using the on chip CRC peripheral, an external CRC
program can be used or alternatively an example of an internal application based reference generation is included in the
test harness project.
Figure 9: Adding Reference CRC