Using Custom Commands Dbg_Reset And Fmcr1Set; Custom Command Dbg_Reset - Renesas M30220TF-PRB User Manual

Pod probe for m30220 and m30221 group mcus
Table of Contents

Advertisement

4.2 Using Custom Commands dbg_reset and fmcr1set

The custom commands dbg_reset and fmcr1set must be used when debugging in CPU rewrite mode.
The custom command program file is provided on the attached floppy disk.

(1) Custom Command dbg_reset

When debugging in CPU rewrite mode, you must execute custom command dbg_reset to initialize
tool control.
To use custom command dbg_reset, use the following procedure to register dbg_reset in the M3T-
PD30. Once registered, dbg_reset can be used without the need to reregister it each time.
How to register dbg_reset with M3T-PD30
Step 1:
Step 2:
Step 3:
Step 4:
Custom command dbg_reset specifications
Input format:
Function:
Command execution example
Example 1:
Copy file.
Copy dbg_reset.p (program file of custom command dbg_reset) from the attached floppy
disk to the host machine.
Example 1:
Copy dbg_reset.p to the folder (e.g. C:¥MTOOL¥M3T-PD30) containing the executable
file of M3T-PD30 (M3T-PD30.exe).
Set the search path of the custom program.
Open the M3T-PD30 script window and execute the following script command:
MacroPATH "absolute directory to which dbg_reset.p was copied"
Example 1:
MacroPATH C:¥MTOOL¥M3T-PD30 <RET>
The MacroPATH command is the script command to set the path specified in the argument
as the path to the custom program in M3T-PD30.
Register custom command dbg_reset.
Execute the following script command in the M3T-PD30 script window:
The MACRO command is the script command to register the custom command specified
in the argument in M3T-PD30. This completes registration of custom command dbg_reset
in M3T-PD30. Custom command dbg_reset can now be executed from the script window
command input area in the same way as script commands. See the specifications for the
custom command (shown below) for the input format, etc. Note that once the custom
command has been registered, the registration remains valid until deleted using the
DELMACRO or DELMACROALL script command.
Restart M3T-PD30.
After completing steps 1 to 3, restart M3T-PD30. To use the custom command dbg_reset,
make sure that the search path is the absolute directory to which dbg_reset.p was copied.
dbg_reset
Initializes and resets tool control for debugging in CPU rewrite mode.
(Note)
• This command cannot be used while the target program is running.
dbg_reset must be executed after starting M3T-PD30 if you are debugging in
CPU rewrite mode.
> dbg_reset <RET>
DBG_RESET is done !!
>
( 29 / 54 )
MACRO dbg_reset <RET>

Advertisement

Table of Contents
loading

Table of Contents