User’s Manual U17029EJ3V0UM
44
CHAPTER 6 CAUTIONS
6.1 Cautions When On-chip Debug
(1) Reserved area used by QB-78K0MINI
The following reserved areas are used by QB-78K0MINI.
(a) Flash memory area
z
Addresses 0x02 and 0x03
z
Addresses 0x7E and 0x7F (when using a software break)
z
Address 0x84
z
Addresses 0x85 to 0x8E
z
Addresses 0x8F to 0x18F: Standard value of program
(+256 bytes when using pseudo real-time RAM monitor function)
(when using a device with 10 or more SFRs the can be accessed in 16-bit units: +n (the number of
exceeding registers x 6 bytes))
(b) Internal extended RAM area
z
Addresses 0xF7F0 to 0xF7FF
(when using pseudo real-time RAM monitor function)
(c) Internal high-speed RAM area
z
7 bytes as stack area: Standard value of stack
(+2 bytes when using software breaks)
(+7 bytes when using pseudo real-time RAM monitor function)
(2) Values at addresses 0x02, 0x03 and 0x8F or higher
Values other than 0xFF cannot be downloaded to address 0x02, 0x03 or the program area starting from address
0x8F. 0xFF is always displayed in the Memory window in order to prevent errors that occur by changing the
value. Uploaded data is also displayed as 0xFF. In addition, on-chip debugging cannot be performed on these
areas after they are overwritten by self programming.
(3) Values specified by linker option -go
Among the reserved areas used by QB-78K0MINI, the following areas can be secured using the linker option -go.
z
Addresses 0x02 and 0x03
z
(Size of program specified from address 0x8F) +1
Specify the -go option default value, 256, for the program size for on-chip debugging.
Value Specified by Option
Program Size
Program Area
Standard
256
257
0x8F to 0x18F
When using the pseudo real-time RAM monitor function, expand the program area by 256 bytes. When using a
device with 10 or more SFRs that can be accessed in 16-bit units, expand the program area for on-chip
debugging (default: 257 bytes of 0x8F to 0x18F) by the amount exceeding the 10-SFR area. As a rough guide,
add the number of exceeding registers x 6 bytes.
Specify the size of the program area as “default size (257 bytes) + (the number of exceeding registers x 6 bytes)
with the linker option.
The value specified by the option may change when the function is extended in future.