Renesas M30220TF-PRB Network Card User Manual


 
( 29 / 54 )
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: 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).
Step 2: 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.
Step 3: Register custom command dbg_reset.
Execute the following script command in the M3T-PD30 script window:
MACRO dbg_reset <RET>
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.
Step 4: 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.
Custom command dbg_reset specifications
Input format: dbg_reset
Function: Initializes and resets tool control for debugging in CPU rewrite mode.
(Note)
• This command cannot be used while the target program is running.
Command execution example
Example 1: dbg_reset must be executed after starting M3T-PD30 if you are debugging in
CPU rewrite mode.
> dbg_reset <RET>
DBG_RESET is done !!
>