s5u1c33000c Epson Electronics America, Inc., s5u1c33000c Datasheet - Page 44

no-image

s5u1c33000c

Manufacturer Part Number
s5u1c33000c
Description
Cmos 32-bit Single Chip Microcomputer S5u1c33000c Manual
Manufacturer
Epson Electronics America, Inc.
Datasheet
CHAPTER 3: SOFTWARE DEVELOPMENT PROCEDURES
(1) Starting up the Debug Monitor
Note: When the power of the S5U1C33104D1/S5U1C33209D1 is turned on while the SW3 [DEBUG]
(2) Debugging in the RAM
(3) Debugging in the Flash memory
28
The boot routine mapped from address 0xC00000 on the S5U1C33104D1/S5U1C33209D1 starts the debug
monitor when the K63 input port is set to "0" (the [DEBUG] switch of the S5U1C330M1D1 is set to ON).
Start up the debug monitor following the procedure below after connecting the target system to the personal
computer.
The sample program for debugging in the RAM (0x600000~) of the S5U1C33104D1/S5U1C33209D1 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 for starting up the Debugger from the DOS prompt is as follows:
1) Start up the debug monitor as described above.
2) Set "\cc33\sample\dmt33004\" (or "\cc33\sample\dmt33005\") as the current directory.
3) Set a path to db33.exe.
4) Start up the debugger with the following command at the DOS prompt.
The debugger starts in debug monitor mode and is ready to debug "led.srf". For example, the LED on the
S5U1C33104D1/S5U1C33209D1 board will start blinking by executing the g command.
The debug monitor does not support forced break functions such as key break.
To suspend the program execution, "led.cmd" contains a command that sets a breakpoint at the label
located in the NMI routine of "led.srf". When the SW2 of the S5U1C330M1D1 is turned on, a NMI is
generated and it suspends the program execution.
The sample program for debugging in the Flash memory (0x200000~) of the S5U1C33104D1/
S5U1C33209D1 is "led2.srf".
To write the sample program to the Flash memory, first load the Flash erase/write routine "am29f800.srf".
Then initialize the Flash memory functions using the fls and fle commands and load the sample program
into the Flash memory using the lf command. Refer to the sample debug command file "led2.cmd" for
executing procedure.
When starting up the debugger, specify the debug command file "led2.cmd" with the -c option. "led2.cmd"
contains debug commands for loading the Flash erase/write routine, setting the trap table address and
loading "led2.srf" to the Flash memory.
of the S5U1C330M1D1 is off, the debug monitor does not start up. The S5U1C33104D1/
S5U1C33209D1 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
S5U1C33104D1/S5U1C33209D1 with the SW1 [RESET] to start up the debug monitor.
C:\cc33\sample\dmt33004\>db33 -mon -b 115200 -p 33104_m.par -c led.cmd
Fig. 3.3.2.2 S5U1C330M1D1 board layout
(RESET)
(NMI)
SW1
SW2
OFF
ON
S5U1C33xxxD/target board
1
interface connector
RS232 connector
12
OFF
SW3
(DEBUG)
ON
1) Turn SW3[DEBUG] of the S5U1C330M1D1 on.
2) Turn the power of the S5U1C33104D1/S5U1C33209D1
3) Reset the S5U1C33104D1/S5U1C33209D1
4) Turn the personal computer on and start up Windows.
5) Start up the debugger db33
EPSON
on.
(S5U1C330M1D1 SW1 [RESET] ON OFF).
(start-up method is described later).
(C COMPILER PACKAGE FOR S1C33 FAMILY) (Ver. 4)
S5U1C33000C MANUAL

Related parts for s5u1c33000c