E2/E2 Lite
R20UT4582EJ0100 Rev.1.00
Page 24 of 30
Jul.16.19
Figure 3.9 Setting of [Use Flash Breakpoints]
Note: For [Clock] in the [Connection Settings] tabbed page of the emulator debugger, when [Yes] is
selected for [Permit Clock Source change on writing on-chip Flash Memory], condition (d) can be
excluded (the operation is explained for the case when the e
2
studio is in use).
Figure 3.10 Setting of [Permit Clock Source change on writing on-chip Flash Memory]
If the software break function is used with any condition not satisfied, the emulator shows an error message.
In such a case, use the hardware break or confirm that conditions (a) to (f) above are satisfied.
(8) Flash memory I/O register
After a debugging operation that involves reprogramming of flash memory, the value of the flash memory
I/O register is rewritten by the emulator debugger.
3.3.3
Note on Using Software Breaks in the On-Chip SRAM
(1) Overwriting of software breakpoints by user programs
If a software breakpoint is overwritten by a user program, the program will not stop even if it runs through
the address. In such a case, set the software breakpoint after the target on-chip SRAM has been
rewritten by the program.
3.3.4
Notes on Using Software Breaks (Common to the On-Chip SRAM and Flash Memory)
(1) Setting software breakpoints in a secure area
Do not set software breakpoints in a secure area which has been specified by the security MPU. If this is
attempted, an instruction code may be restored as incorrect data on release of the break.
(2) Reading an address where a software breakpoint has been set
Do not read an address where a user program has set a software breakpoint. Doing so may cause the
program to operate in a different way from in the normal state.
(3) Viewing memory in the [Memory] view
During execution of the user program, if a range of memory in which a software breakpoint has been set
is displayed in the [Memory] view of the emulator debugger, the value (BKPT instruction code) that is
shown is different from that in the actual program data.