Epson S1C33 Series Operation Manual page 25

Debug monitor
Hide thumbs Also See for S1C33 Series:
Table of Contents

Advertisement

Building the sample program
It is not necessary to execute Make when modification of the source is not needed since the executable object
files ("led.srf," "led2.srf") are provided in the "sample\" folder.
When the source is modified, execute Make using the make file provided.
Make execution procedure
1) Set "\dmt33004\sample\" (or "\dmt33005\sample\") as the current directory.
2) Enter the following command at the DOS prompt.
C:\...\SAMPLE\>make -f led.mak
C:\...\SAMPLE\>make -f led2.mak
Make can also be executed from the work bench wb33 (refer to the "S1C33 Family C Compiler Package
Manual").
Starting up the debug monitor
The boot routine mapped from address 0xC00000 on the S5U1C33104Dx/S5U1C33209Dx starts the debug
monitor when the K63 input port is set to "0".
Start up the debug monitor following the procedure below after connecting the target system and a personal
computer.
1) Turn SW3[DEBUG] of the S5U1C330MxD1 on.
2) Turn the power of the S5U1C33104Dx/S5U1C33209Dx on.
3) Reset the S5U1C33104Dx/S5U1C33209Dx (S5U1C330MxD1 SW1 [RESET] ON OFF).
4) Turn the personal computer on and start up Windows.
5) Start up the debugger db33 (start-up method is described later).
Note: When the power of the S5U1C33104Dx/S5U1C33209Dx is turned on while the SW3 [DEBUG] of
the S5U1C330MxD1 is off, the debug monitor does not start up.
The S5U1C33104Dx/S5U1C33209Dx sets TTBR at the beginning of the Flash memory
(0x200000~), so the program sequence branches to the boot address. In this case, turn the SW3
[DEBUG] on and reset the S5U1C33104Dx/S5U1C33209Dx with the SW1 [RESET] to start up the
debug monitor.
Debugging in the RAM
The sample program for debugging in the RAM (0x600000~) of the S5U1C33104Dx/S5U1C33209Dx is
"led.srf". When starting up the debugger, specify the debug command file "led.cmd" with the -c option.
"led.cmd" sets the trap table address to the start address of the RAM and loads "led.srf" to the RAM.
Operating procedure is as follows:
1) Start up the debug monitor as described above.
2) Set "\dmt33004\sample\" (or "\dmt33005\sample\") as the current directory.
3) Set a path to db33.exe.
4) Start up the debugger with the following command at the DOS prompt.
C:\...\SAMPLE\>db33 -mon -b 115200 -p 33104_m.par -c led.cmd
The debugger starts in debug monitor mode and is ready to debug "led.srf". For example, the LED on the
S5U1C33104Dx/S5U1C33209Dx board will start blinking by executing the g command.
Refer to "2. Debugging in the RAM" in Section 3.4, "Debugging Method", for the contents of the command
file.
Note: The debugger db33 ver. 1.0 does not support the debug monitor. Use ver. 1.72 or a later version.
S1C33 FAMILY DEBUG MONITOR
OPERATION MANUAL
APPENDIX S5U1C330MXD1 BOARD
... when creating "led.srf"
... when creating "led2.srf"
EPSON
19

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

S5u1c330m2s

Table of Contents