Renesas QB-78K0KX1H-DA User Manual page 47

On-chip debug emulator
Table of Contents

Advertisement

(4) Values at address 0x7E and 0x7F
Use the areas at addresses 0x7E and 0x7F for setting a software break. Refer to the program example shown
below and secure those areas so that they are not used by the user program.
Example: When securing address 0x7E to 0x7F
SSS
(5) Value at address 0x84
The following settings can be made for the security ID code by setting address 0x84 to a value shown below.
0x00: Connection of QB-78K0MINI is prohibited.
0x02: The flash memory in the device is not erased how many times security ID code authentication fails.
0x03: All the flash memory areas in the device are erased when security ID code authentication fails
Values other than 0x02 and 0x03 cannot be written to address 0x84. The processing is performed so that
0x00 (the value set to disable QB-78K0MINI connection) or any other illegal value is not written. When setting
0x00, use a flash memory programmer (such as PG-FP4).
If address 0x84 is overwritten by 0x00 by self programming, communication is disabled after reset and
debugging can no longer be performed. The target microcontroller and QB-78K0MINI can no longer be
connected even after the debugger is restarted.
Example: When setting address 0x84 to 0x02
SSS
(6) Values at addresses 0x85 to 0x8E
The security ID of addresses 0x85 to 0x8E can be changed in the Memory window, etc. If addresses 0x85 to
0x8E are overwritten by self programming, communication is disabled after reset and debugging can no longer
be performed.
When the debugger is restarted, set the new security ID in the Configuration dialog box. If the security ID is
unknown, on-chip debugging can not be performed. The areas assigned at addresses 0x85 to 0x8E, which
are reserved for the security ID, can be secured and set using the linker option (-gi).
(7) Values at address 0xF7F0 to 0xF7FF
When using the pseudo real-time RAM monitor function, use the areas at address 0xF7F0 to 0xF7FF for
setting a software break. Refer to the program example shown below and secure those areas so that they are
not used by the user program. If the device does not have these areas, there is no need to do any securing.
Example: When securing address 0xF7F0 to 0xF7FF
SSS
(8) Stack pointer set value
Use address 0xFEDE or lower for the stack area.
The internal RAM area varies depending on the value set to the IMS register. If the RAM address starts from
0xFB00, the stack pointer set value is 0xFB07 to 0xFEDF (0xFB09 to 0xFEDF when using software breaks,
and 0xFB10 to 0xFEDF when using the pseudo real-time RAM monitor function). The stack size to be used
may change when the function is extended in future. Using address 0xFEDF for the stack area is disabled,
but it can be used as the variable area. QB-78K0MINI temporarily uses address 0xFEDF as a flag for
processing the program during a break, but the original value is held.
CHAPTER 6 CAUTIONS
CSEG
AT
07EH; "SSS" is any name (up to 8 characters)
DB
0FFH, 0FFH
CSEG
AT
084H; "SSS" is any name (up to 8 characters)
DB
2H
CSEG
AT
0F7F0H; "SSS" is any name (up to 8 characters)
DS
16
User's Manual U17029EJ3V0UM
45

Advertisement

Table of Contents
loading

This manual is also suitable for:

Qb-78k0miniQb-78k0mini-kf2Qb78k0miniee

Table of Contents