Renesas M30220TF-PRB User Manual page 35

Pod probe for m30220 and m30221 group mcus
Table of Contents

Advertisement

Table 4.1 lists how to set breakpoints for procedures 1 and 3.
Table 4.1 How to set breakpoints for procedures 1 and 3
Procedure
• Examples 1 and 2 show how to set breakpoints to have the result shown below.
"Stop after jumping to the RAM area, and before setting the CPU rewrite mode select bit to "1"."
Example 1:
1
Example 2:
• Examples 1, 2, and 3 show how to set breakpoints to have the result shown below:
"Stop immediately before jumping to user ROM area."
Example 1:
Example 2:
3
Example 3:
Note on Address E0000h - FFFDFh Memory:
• When both the MAP setting for addresses E0000h to FFFDFh is "INT" and the
FMCR1 is set to "1", both the emulation memory and the MCU's internal flash
memory are enabled and bus collisions occur. Please avoid combining these settings.
Table 4.2 Address E0000h - FFFDFh memory
Map setting
INT
Description
Set a software break at the instruction to jump to the RAM area. After
stopping, set the program window to disassemble display mode and step
execute the jump to the RAM area. This allows you to stop in the RAM area.
If there are 10 or more cycles after jumping to the RAM area and before the
instruction to access the CPU rewrite mode select bit, set a hardware break
to the RAM area Fetch.
A jump to the user ROM area is made at the end of the control program
written to RAM. Set a software break at the jump instruction.
Set a software break in the instruction to set "0" in the CPU rewrite mode
select bit.
If there are enough cycles between the instruction to set "0" in the CPU
rewrite mode select bit and the instruction to jump to the user ROM area,
set a hardware break to the Write access to the flash memory control
register (address 3B4h).
CAUTION
FMCR1 setting
1
( 33 / 54 )
Remarks
Do not set in this way.

Advertisement

Table of Contents
loading

Table of Contents