R01UH0822EJ0100 Rev.1.00
Page 952 of 1041
Jul 31, 2019
RX13T Group
31. Flash Memory (FLASH)
31.9
Flash Memory Protection
Flash memory protection prevents the flash memory from being read or rewritten by the third party.
The boot mode ID code protection is for connecting the serial programmer, and the on-chip debugging emulator ID code
protection is for connecting the on-chip debugging emulator.
31.9.1
ID Code Protection
There are two types of ID code protection: Boot mode ID code protection for connecting the serial programmer and on-
chip debugging emulator ID code protection is for connecting the on-chip debugging emulator. The same ID codes are
used for both functions, but operations differ.
ID codes consist of the control code and ID code 1 to ID code 15. Set ID codes to four 32-bit data in 32-bit units.
shows the ID Code Configuration.
Figure 31.24
ID Code Configuration
The following shows a program example for setting ID codes.
This is an example when setting the control code to 45h and setting ID codes to 01h, 02h, 03h, 04h, 05h, 06h, 07h, 08h,
09h, 0Ah, 0Bh, 0Ch, 0Dh, 0Eh, and 0Fh (from the ID code 1 field to the ID code 15 field).
C language:
#pragma address ID_CODE = 0xFFFFFFA0
const unsigned long ID_CODE [4] = {0x45010203, 0x04050607,0x08090A0B, 0x0C0D0E0F};
Assembly language:
.SECTION ID_CODE,CODE
.ORG 0FFFFFFA0h
.LWORD 45010203h
.LWORD 04050607h
.LWORD 08090A0Bh
.LWORD 0C0D0E0Fh
Control code
ID code 1
ID code 2
ID code 3
ID code 4
ID code 5
ID code 6
ID code 7
ID code 8
ID code 9
ID code 10
ID code 11
ID code 12
ID code 13
ID code 14
ID code 15
FFFF FFA0h
FFFF FFA4h
FFFF FFA8h
FFFF FFACh
31
24 23
16 15
8
7
0