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

no-image

s5u1c33000c

Manufacturer Part Number
s5u1c33000c
Description
Cmos 32-bit Single Chip Microcomputer S5u1c33000c Manual
Manufacturer
Epson Electronics America, Inc.
Datasheet
Starting up and checking operation
(1) Starting up the system
(2) Debugging in the RAM
(3) Debugging in the Flash memory
S5U1C33000C MANUAL
(C COMPILER PACKAGE FOR S1C33 FAMILY) (Ver. 4)
The following sample programs are provided to check the system operation:
"\cc33\sample\dmt33005\led.srf"
"\cc33\sample\dmt33005\led2.srf"
These programs blink the LED on the S5U1C33209D1 board. "led.srf" and "led2.srf" are created to be able
to debug in the RAM (0x600000~) and in the Flash memory (0x200000~), respectively.
For the contents of the program, refer to the source file (led.s) in the directory.
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. When the source is modified, execute Make using the make
file provided in the directory.
Start up the system following the procedure below after connecting the S5U1C33000H and S5U1C33209D1
to the personal computer.
1) Set all the DIP switches of the S5U1C33000H to OPEN (upper position).
2) Turn the S5U1C33209D1 on.
3) Turn the S5U1C33000H on.
4) Turn the personal computer on and start up Windows.
5) Start up the debugger db33 (start-up method is described later).
The sample program for debugging in the RAM (0x600000~) of the 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 system as described above.
2) Set "\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 ICD mode and is ready to debug "led.srf". For example, the LED on the
S5U1C33209D1 board will start blinking by executing the g command.
The S5U1C33000H supports the key break function. The program execution can be suspended using the
[Key break] button of the Debugger. Also the trace function is available. Refer to Chapter 16, "Debugger",
for tracing.
The sample program for debugging in the Flash memory (0x200000~) of the 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.
Operating procedure for starting up the Debugger from the DOS prompt is as follows:
1) Start up the system as described above.
2) Set "\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.
C:\cc33\sample\dmt33005\>db33 -icd -b 115200 -p 33104_m.par -c led.cmd
C:\cc33\sample\dmt33005\>db33 -icd -b 115200 -p 33104_m.par -c led2.cmd
EPSON
CHAPTER 3: SOFTWARE DEVELOPMENT PROCEDURES
31

Related parts for s5u1c33000c