Skip to main content
Knowledgebase
Home
Renesas India - Knowledgebase

CRC calculated on debugger does not match to linker result

Latest Updated:08/22/2016

Question:

When connected with an emulator, MPU calculated CRC value does not match to the value calculated by linker.

  Note1: The linker refers to "Optimizing Linkage Editor" (rlink) of "RX Family C/C++ Compiler Package", or "Optimizing linker" of "C Compiler Package for RL78 Family"

  Note2: The emulator refers to On-chip debugging emulator of E1, E20 and E2 emulator Lite, or in-Circuit emulator IECUBE.

Answer:

Flash memory values can be alterd by an emulator.

CRC calculation program may refer to the alterd values while emulator is connected. In such cases, CRC may not match to linker calculated result.

Emulator re-writes Flash at the following addresses:

  - Device ID code (RX, RL78 devices)

  - OFS register (RX devices)

  - Address placed Software Breakpoints

This FAQ page tells more about Device ID code and OFS register.

At the Software Breakpoint placed addresses, original codes were replaced with Break instruction.

To calculate CRC, please remove Software Breakpoints, or use Hardware Breakpoints alternatively.

Suitable Products
CS+ (formerly CubeSuite+)
e2studio
E1
E20
E2Lite
IECUBE
RX
RL78