Rev.4.01 Renesas Solutions Corp.
Revision date: Dec 24, 2004 www.renesas.com
1. Renesas Technology Corporation puts the maximum effort into making semiconductor products
better and more reliable, but there is always the possibility that trouble may occur with them. Trouble
with semiconductors may lead to personal injury, fire or property damage.
Remember to give due consideration to safety when making your circuit designs, with appropriate
measures such as (i) placement of substitutive, auxiliary circuits, (ii) use of nonflammable material or
(iii) prevention against any malfunction or mishap.
Keep safety first in your circuit designs!
Notes regarding these materials
1. These materials are intended as a reference to assist our customers in the selection of the Renesas
Technology Corporation product best suited to the customer's application; they do not convey any
license under any intellectual property rights, or any other rights, belonging to Renesas Technology
Corporation or a third party.
2. Renesas Technology Corporation assumes no responsibility for any damage, or infringement of any
third-party's rights, originating in the use of any product data, diagrams, charts, programs,
algorithms, or circuit application examples contained in these materials.
3. All information contained in these materials, including product data, diagrams, charts, programs and
algorithms represents information on products at the time of publication of these materials, and are
subject to change by Renesas Technology Corporation without notice due to product improvements
or other reasons. It is therefore recommended that customers contact Renesas Technology
Corporation or an authorized Renesas Technology Corporation product distributor for the latest
product information before purchasing a product listed herein.
The information described here may contain technical inaccuracies or typographical errors.
Renesas Technology Corporation assumes no responsibility for any damage, liability, or other loss
rising from these inaccuracies or errors.
Please also pay attention to information published by Renesas Technology Corporation by various
means, including the Renesas Technology Corporation Semiconductor home page
(http://www.renesas.com).
4. When using any or all of the information contained in these materials, including product data,
diagrams, charts, programs, and algorithms, please be sure to evaluate all information as a total
system before making a final decision on the applicability of the information and products. Renesas
Technology Corporation assumes no responsibility for any damage, liability or other loss resulting
from the information contained herein.
5. Renesas Technology Corporation semiconductors are not designed or manufactured for use in a
device or system that is used under circumstances in which human life is potentially at stake.
Please contact Renesas Technology Corporation or an authorized Renesas Technology Corporation
product distributor when considering the use of a product contained herein for any specific
purposes, such as apparatus or systems for transportation, vehicular, medical, aerospace, nuclear,
or undersea repeater use.
6. The prior written approval of Renesas Technology Corporation is necessary to reprint or reproduce
in whole or in part these materials.
7. If these products or technologies are subject to the Japanese export control restrictions, they must
be exported under a license from the Japanese government and cannot be imported into a country
other than the approved destination.
Any diversion or reexport contrary to the export control laws and regulations of Japan and/or the
country of destination is prohibited.
8. Please contact Renesas Technology Corporation for further details on these materials or the
products contained therein.
Microsoft, MS, and MS-DOS are registered trademarks of Microsoft Corporation of the U.S.
Windows is trademark of Microsoft Corporation of the U.S.
IBM and PC/AT are registered trademarks of International Business Machines Corporation of the U.S.
Pentium is a trademark of Intel Corporation of the U.S.
Adobe and Acrobat are registered trademarks of Adobe Systems Incorporated.
Preface
Thank you for purchasing Renesas USB Flash Writer (M3A-0665).
This manual describes how to use the hardware and software products included with USB Flash Writer
(M3A-0665). To other tools, look other tools's manulas.
Table of Content
Table of Content
1. Contents of Product.........................................................................................................................................4
1.1 Contents of product........................................................................................................................................4
1.6 System Requirements....................................................................................................................................8
3.1 Before installing............................................................................................................................................11
3.2 Preparation before installing.........................................................................................................................11
3.3.1 Method of Installation............................................................................................................................12
3.3.2 Method of Uninstallation.......................................................................................................................17
3.4 Recognition of USB Monitor Board..............................................................................................................18
3.4.1 Recognition of USB Monitor Board 1 (for USBMON Driver) ...............................................................18
3.4.2 Recognition of USB Monitor Board 2 (for FoUSB Driver)....................................................................20
3.4.3 Other Notes...........................................................................................................................................23
3.5.2 Uninstalling the Remote Debugger......................................................................................................26
4. Using the FoUSB...........................................................................................................................................27
4.1 Using the FoUSB (Flash-over-USB)............................................................................................................27
4.1.1 Before Starting the FoUSB...................................................................................................................27
4.1.3 Details of Main Button 1........................................................................................................................31
4.1.4 Details of the Update Button.................................................................................................................42
4.1.5 Details of the Select MCU Button.........................................................................................................43
4.1.8 Details of Main Button 2........................................................................................................................47
5. Using the KD..................................................................................................................................................49
5.1 Using the KD.................................................................................................................................................49
5.1.1 Before Starting the KD..........................................................................................................................49
5.1.2 Starting the KD......................................................................................................................................50
5.1.3 Program Download...............................................................................................................................55
5.1.4 Program Execution...............................................................................................................................56
5.1.5 Program Stop........................................................................................................................................56
5.1.6 Program Step Execution.......................................................................................................................56
6.4.1 Compulsive download procedure of firmware......................................................................................71
6.5 Can FoUSB information be transmitted to KD?...........................................................................................74
6.6 A communication error occurs w hen the KD star ts. What is the cau se of this p roblem?...........................74
ii
Table of Content
6.7 A communication error occurred w hen debug ging the p rogram. Wha t is the cause of this pro blem?......74
6.8 A message "Source file cannot be found" was ou tput. What should I do?.................................................75
6.9 Is peripheral I/O operating during a bre ak?.................................................................................................75
6.10 Can coveragefunction be used in KD?......................................................................................................75
6.11 Can check sum function be used?.............................................................................................................75
6.12 ID code written to microcomputer after KD exits? .....................................................................................75
6.13 Debug operation has not worked w ell........................................................................................................76
6.14 Message List ..............................................................................................................................................78
7.1 USB Monitor Board ......................................................................................................................................79
7.1.3 Example Connection.............................................................................................................................80
7.1.4 Power Source Supply Selector.............................................................................................................87
7.1.5 LED Status Indicators...........................................................................................................................87
7.2 Installation of a USB Driver, and recognition of USB Monitor Board (Manual se tup).................................88
7.2.1 For USBMON Driver.............................................................................................................................88
7.2.2 For FoUSB Driver .................................................................................................................................91
This section shows the contents of theUSB Flash Writer’s product package. When
unpacking your USB Flash Writer, check to see that all products listed below are included.
1.1 Contents of product
Table 1-1 lists the products included in the USB Flash Writer.
Table 1-1 USB Flash Writer Product List
Product List Quantity Remark
USB Monitor Board 1pc
USB Cable (Used for the connection with the Host Computer.) 1pc
Flat Cable 1pc
Pin Header (HIF3FC-10P-2.54DSA: straight type) 1pc Note 1
CD-ROM 1pc Note 2
Note 1: Starter kit doesn't include pin header (straight type).
Note 2: When a FoUSB is included with starter kit, only one CD-ROM is in the FoUSB.
4
1 Contents of Product
1.2 Operating Environment
The software includes USB Flash Writer run on the Host Computer (PC) under the OS
(Operating System) version that are listed respectively in Table 1-2.
Table 1-2 Operating Envir onment
Host Computer (PC) IBM PC/AT series or its compatible
OS (Operating System) Microsoft Windows 98SE/ME/2000/XP
CPU Pentium II 233MHz or newer recommended
Memory 8 Mbyte or more (16 Mbyte recommended)
1.3 Compatible Products
Compatible products with USB Flash Writer are as follows.
Table 1-5 shows the USB Monitor Board Specification. When saving these products, put
them into the conductive bag. Store them into the container box which is used for shipping
as possible
Table 1-5 USB Monitor Board Specification
Item Description
Debug formula Monitor program formula
Monitor program
USB microcomputer M37641F8HP (8 bit USB flash microcomputer)
USB interface (J1) USB2.0 full speed
Operation voltage
Power consumption Max.50mA
Board size 70mm x 29mm
(at the time of operation)
(at the time of storage)
ROM size: Approx. 1600 byte
* In the case of R8C/Tiny Series, 2K byte
RAM size: 128 byte
* In the case of M16C/80 Group, 256 byte
* In the case of M32C/80 Series, 256 byte
* In the case of R8C/Tiny Series, not used
Operation frequency: 700KHz or above (Note1)
Operation mode: Single chip mode
Software break: 2 points to 8 points (Note2)
Synchronous serial Interface Target interface (J3)
Starter kit and 10 pin connector for target board connection
4.75V to 5.25V
(USB bus-powered supply or target supply enabled)
3.0V to 3.6V (supply from target is necessary) (Note3)
Temperature: 25±5°C (no corrosive gas) Use environment condition
Humidity: no condensation
Temperature: 25±5°C (no corrosive gas) Use environment condition
Humidity: no condensation
Note 1: Maximum operating frequency is dependent on the MCU.
Note 2: Software break numbers are dependent on the address match circuit numbers
are built-in MCU.
Note 3: When operating in 3.3V, supply power from the target board. In this case, it is not
possible to change the FoUSB firmware. When the model name of the
microcomputer to be used is changed, remove the target board, supply the USB
bus-powered and rewrite the firmware.
7
1 Contents of Product
1.5 CD-ROM
The CD-ROM contains software products necessary for developing programs and
electronic manuals as well. Here follow the contents of the CD-ROM.
CD-ROM: Rev.2.10 or later
\root
|--- Readme_e.txt : Readme File (English version)
|--- Readme_j.txt : Readme FIle (Japanese version)
|--- \Document : User’s manual is included (English and Japanease version)
|--- \FOUSB : FoUSB Installer is included (English and Japanese common version)
| |--- \USB Drivers : USB Driver is included (English and Japanese common version)
|
|--- \KD
| |--- \KD30 : KD30 Installer is included (English and Japanese version)
| |--- \KD3083 : KD3083 Installer is included (English and Japanses versio n)
|
|--- \NC
|--- \NC30WA : NC30WA C Compiler is included (English and Japanese version) Note
|--- \NC308WA : NC308WA C Compiler is included (English and Japanese version) Note
Note: Entry version
1.6 System Requirements
In addition to the products listed above, you must have the following equipment before
you can use the USB Flash Writer.
1) Host Computer (PC)
2) Target Board
8
2 Product Specifications
2. Product Specifications
2.1 FoUSB (Flash-over-USB)
FoUSB is the software that allows you to operate on M16C, M32C, R8C or 740
microcomputers with built-in flash memory from a Windows version host computer
(Windows 98SE or later).
2.2 KD30/KD3083
The KD included with the package is the debug software that runs on a Windows version
host computer. This KD is usable for only the R8C/Tiny, M16C/10, M16C/20, M16C/Tiny,
M16C/60, M16C/80 or M32C/80 series of Renesas 16-bit and 32-bit single-chip
microcomputers with built-in flash memory. The KD provides a powerful debugging
environment. In addition, it is operationally compatible with and can therefore be used the
same way as PD30 (or PD308F), the emulator control debugger for Renesas 16C/62
microcomputers. The features of the Remote Debugger are outlined below. For details,
see Section “5. Using the KD”.
Table 2-1 PD30 and KD30 com parison
No. Item PD30 KD30
1 Software break function 64 points 2 points to 8 points (Note)
2 Hardware break function 6 points not included
3 RAM monitor function included included
4 Real time trace included not include d
5 Time measurement function included not included
6 Script function included included
Note: Software break numbers are dependent on the address match circuit numbers are
built-in MCU.
9
Table 2-2 PD308F and KD3083 comparison
No. Item PD308F KD3083
1 Software break function 64 points 4 points to 8 points (Note)
2 Hardware break function 6 points not included
3 RAM monitor function included included
4 Real time trace included not include d
5 Time measurement function included not included
6 Script function included included
Note: Software break numbers are dependent on the address match circuit numbers are
Do not connect the USB Cable which belongs to this product to the Host computer (PC) before
installing.
3 Installing
3.2 Preparation before installing
Be sure to confirm the following point before performing installation of a tool (GUI) and a driver.
(1) The CD-ROM includes files required for the FoUSB (Flash-over-USB) installation. Copy all files
to any folder in your PC before installation.
(2) All tools and USB drivers must be installed with the administrator if installed on Windows
2000/XP. Both PowerUser (for a standard access) and User (for a limited access) can use
software after installation.
11
3.3 FoUSB (Flash-over-USB) installing
3.3.1 Method of Installation
1) To install FoUSB, double-click “FoUSB_V.*.**.exe” on the folder into which you’ve copied FoUSB
files from the CD-ROM.
2) Select the language of installer.
3 Installing
3) Click the <Next> button.
4)
Only when you agree, click the <I Agree> button.
12
5) Choose the component which you want to install and click the <Next> button.
3 Installing
NOTICE: Explanation of install component
(a) Shortcut on Desktop
The shortcut of a FoUSB (Flash-over-USB) execution file is created on a desktop.
(b) Install USB Drivers
FoUSB installer installs a USB Driver in the correct location of Windows system automatically.
We recommend choosing this component in all operating systems. In addition, when this
component is not chosen, please perform installation of a USB Driver, and recognition of USB
Monitor Board with reference to [7.2 Installation of a USB Driver, and recognition of USB Monitor
Board (Manual setup)].
(c) Update KD30 Files
FoUSB installer updates KD30 to KD30 with a firmware older than the firmware of FoUSB.
(d) Update KD3083 Files
FoUSB installer updates KD3083 to KD3083 with a firmware oloder than the firmware of
FoUSB.
13
6) Choose the install location of FoUSB and click the <Install> button. The default install location of
FoUSB is “C:\MTOOL\FOUSB”.
3 Installing
7) The following figure is displayed when the install component “Install USB Drivers” is choosen.
Click the <Yes> button.
Next, warning is displayed. Please check that USB Monitor Board is not connected to your host
computer (PC), and click the <OK> button.
14
8) When an operating system is Windows XP, notes screen is displayed. Click the <OK> button.
Then the software install screen is displayed two times (for USBMON Driver and FoUSB Driver),
click the <Continue Anyway> button twice (Note).
3 Installing
Note: Microsoft has advocated authentication of the USB drivers to the USB vendors in the
Microsoft® Windows® XP and Windows®-based operating systems released after Microsoft®
Windows® XP. This is aimed at elimination of illegal drivers and improvement of host computer
(PC). Renesas USB Drivers are not authenticated by Microsoft, but we provide them based on
the sufficient examination.
9) The following figure is displayed when the USB Driver is already installed in the PC. Click the
<OK> button.
USBMON Driver
FoUSB Driver
15
10) The following figure is displayed when installation of USB Driver is completed. Click the <OK>
button.
11) When the install component “Update KD30 Files” is chosen, FoUSB installer seaches KD30
with a firmware older than the firmware of FoUSB. The following figure will be displayed if KD30
is detected.
If you want to update a firmware, click the <Yes> button. When <No> button is clicked, the
3 Installing
firmware of KD30 is not updated.
Note: When the install component “Update KD3083 Files” is chosen, the update check screen is
displayed like the above.
16
12) Finally, click the <Finish> button.
3 Installing
13) Now you’ve finished installing the FoUSB (Flash-over-USB).
3.3.2 Method of Uninstallation
To uninstall the FoUSB (Flash-over-USB) you've installed, choose Settings -- Control Panel from the
Start menu, and then click “Add/Remove Programs”. Select "Flash-over-USB V.*.** " from the
program list and click the <Add/Remove> button. An uninstall window will appear, with the
Flash-over-USB V.*.** compiler uninsalled.
17
3 Installing
3.4 Recognition of USB Monitor Board
From installer version “V.2.04”, the FoUSB installer has an automatic USB Driver install function
(Refer to [3.3 FoUSB (Flash-over-USB) installing].). This section explains recognition of USB
Monitor Board when confirming this function and installing FoUSB.
When this function is not confirmed, please perform installation of a USB Driver, and recognition of
USB Monitor Board with reference to [7.2 Installation of a USB Driver, and recognition of USB
Monitor Board (Manual setup)].
3.4.1 Recognition of USB Monitor Board 1 (for USBMON Driver)
1) Remove the cover of USB Monitor Board and make a USB Monitor Board (Board) the following
setup, before connecting USB Monitor Board to your host computer (PC). If a setup is completed,
attach a cover in a USB Monitor Board (Board).
Power Source Supply Selector (S1: Power Mode): USB side
MCU Mode Pin (JP1: MCU Mode): Open
Open
USB side
Figure 3-1 Setup of USB Monitor Board (Board )
2) Connect the USB Monitor Board included with the package to the USB port of PC. The Power
indicator (D1: Power) of USB Monitor Board lights, and a Status indicator (D4: Status) blinks.
Figure 3-2 USB Monitor Board con nectivity
18
3 Installing
3) When an operating system is WIndows 98SE/ME/2000, Windows system detect USB Driver
automatically and recognizes USB Monitor Board. Recognition of USB Monitor Board for
USBMON Driver is completion.
4) When an operating system is Windows XP, Windows system displays the Found New
Hardware Wizard screen. Then, choose “Install the software automatically” and click the <Next>
button.
5) Next, the Hardware Installation screen is displayed, click the <Continue Anyway> button (Note).
Note: Microsoft has advocated authentication of the USB drivers to the USB vendors in the
Microsoft® Windows® XP and Windows®-based operating systems released after Microsoft®
Windows® XP. This is aimed at elimination of illegal drivers and improvement of host computer
(PC). Renesas USB Drivers are not authenticated by Microsoft, but we provide them based on
the sufficient examination.
19
3 Installing
6) Click the <Finish> button. Windows system recognizes USB Monitor Board (for USBMON
Driver).
Recognition of USB Monitor Board for USBMON Driver is completion.
3.4.2 Recognition of USB Monitor Board 2 (for FoUSB Driver)
1) Remove the cover of USB Monitor Board and make a USB Monitor Board (Board) the following
setup, before connecting USB Monitor Board to your host computer (PC). If a setup is completed,
attach a cover in a USB Monitor Board (Board).
Power Source Supply Selector (S1: Power Mode): USB side
MCU Mode Pin (JP1: MCU Mode): Shorted
Shorted
USB side
Figure 3-3 Setup of USB Monitor Board (Board )
20
3 Installing
2) Connect the USB Monitor Board included with the package to the USB port of PC. The Power
indicator (D1: Power) of USB Monitor Board lights.
Figure 3-4 USB Monitor Board con nectivity
3) When an operating system is WIndows 98SE/ME/2000, Windows system detect USB Driver
automatically and recognizes USB Monitor Board. Recognition of USB Monitor Board for
USBMON Driver is completion.
Please skip to 7).
4) When an operating system is Windows XP, Windows system displays the Found New
Hardware Wizard screen. Then, choose “Install the software automatically” and click the <Next>
button.
21
3 Installing
5) Next, the Hardware Installation screen is displayed, click the <Continue Anyway> button (Note).
Note: Microsoft has advocated authentication of the USB drivers to the USB vendors in the
Microsoft® Windows® XP and Windows®-based operating systems released after Microsoft®
Windows® XP. This is aimed at elimination of illegal drivers and improvement of host computer
(PC). Renesas USB Drivers are not authenticated by Microsoft, but we provide them baased
on the sufficient examination.
6) Click the <Finish> button. Windows system recognizes USB Monitor Board (for FoUSB Driver).
Recognition of USB Monitor Board for FoUSB Driver is completion.
7) Separate USB Monitor Board from host computer (PC).
8) Finally remove the cover of USB Monitor Board and set the MCU Mode Pin (JP1: MCU Mode)
as “Open”.
22
3.4.3 Other Notes
Caution: The “USB Drivers” folder below is stored.
Driver Name Description Related Files
3 Installing
USBMON Driver USBMON driver is a driver for using
FoUSB (Flash-over-USB) and KD (KD30,
usbmon.sys
usbmon.inf
KD3083)
FoUSB Driver FoUSB driver is a driver for using USB
MCU (M367641F8) of USB Monitor
fousb.sys
fousb.inf
Board in Boot mode. (Note)
(Note)
The Boot mode of USB MCU is used only for the use shown below.
1) Installation of FoUSB Driver
2) When the firmware of USB MCU is erased or damaged
When the firmware of USB MCU is erased or damaged, the phenomenon of [6.4 FoUSB cannot
operate Why?] or [6.6 A communication error occurs when the KD starts. What is the cause of
this problem?] occurs.
In this case, it is necessary to install FoUSB driver (first time only) and download firmware
compulsorily on a USB MCU. Please refer to [6.4 FoUSB cannot operate Why?].
23
3.5 KD30/KD3083 intalling
3.5.1 Installing
1) Installing the Remote Debugger
Double-click installer file on the CD-ROM (\KD\KD30) for KD30.
In KD3083, the installer file is included in \KD\KD3083.
2) A flow of installation procedures is shown in the pages that follow.
(a) Click the <Yes> button.
3 Installing
(b) Click the <Next> button.
Only when you agree, click the <Yes> bu tton
(c)
24
3 Installing
(d) Click the <Next> button.
A default install location is “C:\MTOOL”. If an install location is changed, please click the
<Browse> button and determine an install location.
(e) Click the <Yes> button.
(f) Click the <OK> button.
3) Now you've finished installing the KD30.
Note: The installation of KD3083 is the same.
25
3.5.2 Uninstalling the Remote Debugger
To uninstall, choose Settings -- Control Panel from the Start menu, and then click the
“Add/Remove Programs”. Select KD from the program list and click the <Add/Remove> button.
An uninstall window will appear, with the integrated development environment uninsalled.
The uninstallation of KD3083 is the same, too.
3 Installing
26
4. Using the FoUSB
4.1 Using the FoUSB (Flash-over-USB)
4.1.1 Before Starting the FoUSB
1) Check to see that the FoUSB is installed in your host computer (PC).
2) Check to see that PC, USB Cable, USB Monitor Board, Flat Cable and Target Board
4 Using the FoUSB
are firmly connected. (See Figure 4-1)
3. USB Monitor Board
1. USB Cable
4. Flat Cable
2. Target Board
5. Target MCU
Figure 4-1 connect-1
27
Loading...
+ 73 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.