No part of this material may be reproduced or duplicated in any form or by any means without the written permission of Seiko
Epson. Seiko Epson reserves the right to make changes to this material without notice. Seiko Epson does not assume any
liability of any kind arising out of any inaccuracies contained in this material or due to its application or use in any product or
circuit and, further, there is no representation that this material is applicable to products requiring high level reliability, such
as medical products. Moreover, no license to any intellectual property rights is granted by implication or otherwise, and there
is no representation or warranty that anything made in accordance with this material will be free from any patent or copyright
infringement of a third party. This material or portions thereof may contain technology or the subject relating to strategic
products under the control of the Foreign Exchange and Foreign Trade Law of Japan and may require an export license from
the Ministry of International Trade and Industry or other approval from another government agency.
Windows 95, Windows 98 and Windows NT are registered trademarks of Microsoft Corporation, U.S.A.
PC/AT and IBM are registered trademarks of International Business Machines Corporation, U.S.A.
All other product names mentioned herein are trademarks and/or registered trademarks of their respective owners.
Starting April 1, 2001, the product number will be changed as listed below. To order from April 1,
2001 please use the new product number. For further information, please contact Epson sales
representative.
Configuration of product number
Devices
S1C33104F0A01
Development tools
S5U1
∗1: For details about tool types, see the tables below. (In some manuals, tool types are represented by one digit.)
∗2: Actual versions are not written in the manuals.
C33L01D11
00
Packing specification
Specification
Package (D: die form; F: QFP)
Model number
Model name (C: microcomputer, digital products)
Product classification (S1: semiconductor)
00
Packing specification
Version (1: Version 1 ∗2)
Tool type (D1: Development Tool ∗1)
Corresponding model number (33L01: for S1C33L01)
Tool classification (C: microcomputer use)
Product classification
(S5U1: development tool for semiconductor products)
Written for those who develop applications using the S1C33 Family of microcomputers, this manual describes how to
implement the S1C33 Family debug monitor library S5U1C330M2S and how to debug the target program.
2 Implementing the Debug ..............................................................................................4
2.1 Resources Required for the Debug Monitor..................................................................................................4
2.2 Starting Up the Debug Monitor...........................................................................................................................5
2.3 Building an Application Program........................................................................................................................6
2.4 Creating Communication Control Routines...................................................................................................7
3 Target Program and Debugging..................................................................................10
3.1 Notes for Creating Target Programs.............................................................................................................10
3.2 Parameter File for Debugging..........................................................................................................................10
3.3 Starting Up and Terminating Procedure of Debugging..........................................................................11
3.5 Precautions for Debugging................................................................................................................................14
3.5.1 Restriction on Debugging Command..........................................................................................14
3.5.2 Other Precautions ..............................................................................................................................14
A.1 Outline of S5U1C330MxD1 Board.................................................................................................................15
A.2 Names and Functions of Each Part..............................................................................................................15
A.3 Connecting the System......................................................................................................................................16
A.5 Program Debugging with a S5U1C33xxxDx Board and S5U1C330M2S.......................................18
A.6 Indispensable Signal Pins of S5U1C330MxD1.........................................................................................21
S1C33 FAMILY DEBUG MONITOREPSON
OPERATION MANUAL
i
1 S5U1C330M2S PACKAGE
1 S5U1C330M2S Package
The Debug Monitor S5U1C330M2S is a middleware designed for S1C33 Family single-chip
microcomputers.
It provides program-debugging functions on the user target board or for the actual product.
1.1 Features
The following lists the features of S5U1C330M2S:
• It is provided as a library file that can be linked to the user program.
This package also contains source codes of all the modules.
• S5 U1 C33 0M2 S u se s a pp r ox . 1 0KB RO M, a pp r ox . 2 .5K B RA M a nd a c ha n ne l o f s er i a l i nt er f a c e o n t he S1 C33
chip. It allows direct program debugging via the S5U1C330MxD1 board using the debugger db33 on the personal
computer.
• Allows debugging of the target program in the RAM, ROM or Flash memory on the target board.
• Supports the following debugging functions:
- Successive execution and step execution of the program
- PC break and data break
- Memory/register operation
- Flash memory writing
A configuration of the debugging system is shown in Figure 1.1.1.
Target board
S1C33xxx
Serial
interface
External
RAM
External
ROM
Figure 1.1.1 Configuration of debugging system
FLASH
memory
S5U1C330MxD1
interface board
RS232C
115,200 bps
Debugger
db33
EPSON
S1C33 FAMILY DEBUG MONITOREPSON
OPERATION MANUAL
1
1 S5U1C330M2S PACKAGE
1.2 Components of S5U1C330M2S Package
The following lists the contents of S5U1C330M2S Package:
When unpacking, make sure that all of the following components are included.
(1) Tool disk (3.5' FD for PC/AT, 1.44MB)1
(2) S1C33 Family Debug Monitor Operation Manual (this manual)2 (1 English/1 Japanese)
(3) Warranty2 (1 English/1 Japanese)
1.3 Installation
S5U1C330M2S needs to be linked with the user program as it is implemented. Therefore, make sure all tools of the
"S1C33 Family C Compiler Package" have been installed in the personal computer and are ready to run before
installing the S5U1C330M2S files. The basic system configuration is described below.
• Personal computer:
IBM PC/AT or compatible
(PC with Pentium 90 MHz or higher and 32MB or more memory recommended)
One channel of the serial port is used to communicate with the debug monitor.
• OS:
Windows95, Windows NT 4.0 or higher version (English version or Japanese version)
All the S5U1C330M2S files are supplied on one floppy disk. Execute the self-extract file "mon33vXX.exe" on the
FD to install the files. ("XX" in the file name represents the version number, for example, "mon33v10.exe" is the
file name of S5U1C330M2S ver. 1.0.)
When "mon33vXX.exe" is started up by double-clicking the file icon, the following dialog box appears.
Enter a path/folder name in the text box then click
[Unzip]. The specified folder will be created and all the
files will be copied to the folder.
When the specified folder already exists on the specified
path, the folder will be overwritten without prompting if
[Overwrite Files Without Prompting] is checked.
The following lists the configuration of directories and files after copying.
(root)\(default: C:\E0C33\MON33\)
readme.txtSupplementary explanation (in English)
readmeja.txtSupplementary explanation (in Japanese)
lib\..... MON33 library
mon33ch0.libS5U1C330M2S library that uses the serial I/F Ch.0 on the S1C33xxx
mon33ch1.libS5U1C330M2S library that uses the serial I/F Ch.1 on the S1C33xxx
mon33.libS5U1C330M2S library that does not use a serial I/F on the S1C33xxx
... These libraries cannot be used with the ICE or ICD.
Normally, either "mon33ch0.lib" or "mon33ch1.lib" is used according to
the serial I/F channel used. Use "mon33.lib" when providing a serial I/O
circuit separately and when not using the S5U1C330MxD1 board.
mon33ice.libLibrary that does not use a serial I/F on the S1C33xxx for debugging the
S5U1C330M2S using the ICE or ICD
2
EPSONS1C33 FAMILY DEBUG MONITOR
OPERATION MANUAL
1 S5U1C330M2S PACKAGE
mon33ch0.makMake file for building mon33ch0.lib
mon33ch1.makMake file for building mon33ch1.lib
mon33.makMake file for building mon33.lib
mon33ice.makMake file for building mon33ice.lib
src\..... MON33 source files
m33_def.hS5U1C330M2S definition file
m3c_brk.cC source file for break functions
m3c_exe.cC source file for program execution
m3c_flsh.cC source file for Flash memory operation
m3c_main.cS5U1C330M2S main C source file
m3c_mem.cC source file for memory operation
m3c_othe.cC source file for other functions
m3c_sci.cC source file for sending/receiving messages
m3s_exe.sAssembly source file for program execution
m3s_flsh.sAssembly source file for Flash memory operation
m3s_init.sAssembly source file for S5U1C330M2S initial set-up
m3s_mem.sAssembly source file for memory operation
m3s_sci.sAssembly source file for sending/receiving messages
dmt33xxx\ ..... Sample source files for the S5U1C33xxxDx, MON33 build files and related files
A sample program for blinking the LED on the S5U1C33xxxDx, a source for the onboard Flash memory write/erase routines and the make files are included in each
dmt33xxx folder. The source files can be modified to use in the application program if
necessary. Refer to "readme.txt" or "readmeja.txt" for the contents of the dmt33xxx
folder.
S1C33 FAMILY DEBUG MONITOREPSON
OPERATION MANUAL
3
Loading...
+ 21 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.