E1/E20/E2/E2 Lite Additional Document 3. Notes on Usage
R20UT1994EJ0910 Rev.9.10 Page 54 of 59
Oct.06.23
3.10.14 Points for Caution on Using the RL78/F2x
3.10.14.1 Specify RAM area size
In RL78/F2x, RAMSAR register is added to specify the size of the RAM area that can be used.
With the initial value of this register, only 4KB(0xFEF00 or later) can be used for the RAM area. If you want
to use over 4KB, set the value of the RAMSAR register in the program.
The value of this register can be rewritten only once after reset.
3.10.14.2 Caution about writing of security ID
In RL78/F2x, if you rewrite OCD security ID(0xC6-0xD5) on memory panel, ID authentication of debugger
fails and the program stops even if it is executed.
If you rewrite OCD security ID in memory panel, perform CPU reset in order to perform ID authentication
again with the debugger.
3.10.14.3 Caution about debugging program that causes internal reset
In RL78/F2x in the case of a user program that causes internal reset immediately after execution, if a forced
break is performed after the execution starts, it will break at address 0xF08C0.
Take one of the following measures.
(a) To avoid the internal reset, select "Yes" in the [Mask INTERNAL RESET signal] property of the
debugger.
(b) Modify the cause the reset in the program.
3.10.14.4 Caution of Secure boot function
In RL78/F2x, if set security option byte(0xC4) to enable secure boot(set bit0 to "0"), you can't do on-chip
debugging.
And on this condition, if set on-chip debug option byte(0xC3) to on-chip debug prohibited(OCDENSET=0),
this chip can't debug anymore.
If Secure Boot is enabled and on-chip debugging is enabled, you can enable on-chip debugging by setting
"Erase Flash ROM When Starting" to "Yes" and erasing the entire flash area.
Figure 3-8 Flash ROM erase setting at startup