Renesas QB-MINI2 User Manual page 94

On-chip debug emulator with programming function
Hide thumbs Also See for QB-MINI2:
Table of Contents

Advertisement

CHAPTER
(5) Emulation in self programming mode
For self programming, the mode is switched from normal mode to self programming mode.
MOV PFCMD,#0A5H
MOV FLPMC,#1H
MOV FLPMC,#0FEH
MOV FLPMC,#1H
----------------------- From this position
CALL !08100H
MOV PFCMD,#0A5H
MOV FLPMC,#0H
MOV FLPMC,#0FFH
MOV FLPMC,#0H
----------------------- To this position
The section between (2) and (3) is in self programming mode A1. Step execution or debug operations, such
as stopping program execution, cannot be performed 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.
(6) 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.
(7) Caution on downloading a HEX file
When downloading a HEX file, do not set specify a filling value other than 0xFF for the object converter option
(-U).
92
4
HOW TO USE MINICUBE2 WITH 78K0 MICROCONTROLLER
← (1)
← (2)
Mode A1
← (3)
User's Manual
U18371EJ5V0UM

Advertisement

Table of Contents
loading

Table of Contents