Renesas QB-78K0KX1H-DA User Manual page 49

On-chip debug emulator
Table of Contents

Advertisement

MOV PFCMD,#0A5H
MOV FLPMC,#1H ← <1>
MOV FLPMC,#0FEH
MOV FLPMC,#1H
CALL !08100H
MOV PFCMD,#0A5H
MOV FLPMC,#0H
MOV FLPMC,#0FFH
MOV FLPMC,#0H ← <3>
The section between <2> and <3> is in self programming mode A1 (including A2). Step execution or a break by
STOP or a breakpoint cannot be performed by the debugger in this section.
In addition, do not set a software break in the section between <1> and <3>; otherwise the execution continues
without a break but emulation is not performed normally.
(15) Break function for stack pointer initialization failure
This function executes a break when an interrupt occurs or a PUSH instruction is executed while the initial
setting has not been made for the stack pointer.
If the manipulation or instruction shown below is executed immediately after a reset operation, the break
function for stack pointer initialization failure becomes invalid.
Setting a software break
Write to the stack pointer from the Register window
Write to the flash memory from the Memory window, etc
If a software break occurs while the initial setting has not been made for the stack pointer, the message
"Uninitialized Stack Pointer" is displayed on the status bar.
The subsequent operations are not performed normally, so make sure to set the SP value in the user program.
(16) Caution on downloading HEX file
When downloading a HEX file while a value other than 0xFF is specified as the filling value using an object
converter option (-U), the operation contradicts that described in (2) Values at addresses 0x02, 0x03, and 0x8F
or higher. In such a case, keep consistency using the following program, instead of using the linker option (-go).
Example:
ORG 0002h
DB 0ffh,0ffh
ORG 008fh
DB 0ffh
DB 0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh
DB 0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh
:
: 16 lines 1 byte + 16 bytes × 16 = 257 bytes
:
DB 0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh,0ffh
CHAPTER 6 CAUTIONS
----------------------- From this position
← <2>
Mode A1
----------------------- To this position
User's Manual U17029EJ3V0UM
47

Advertisement

Table of Contents
loading

This manual is also suitable for:

Qb-78k0miniQb-78k0mini-kf2Qb78k0miniee

Table of Contents