
APPENDIX S5U1C330MXD1 BOARD
Building the sample programIt 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 | led.mak | ... when creating "led.srf" | |
C:\... | \SAMPLE\>make | led2.mak | ... when creating "led2.srf" |
Make can also be executed from the work bench wb33 (refer to the "S1C33 Family C Compiler Package Manual").
Starting up the debug monitorThe 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
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 RAMThe 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
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
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 | EPSON | 19 |
OPERATION MANUAL |
|
|