REJ10J0143-0401Z USB Flash WriterUser's ManualRENESAS SINGLE-CHIP MICROCOMPUTER M16C FAMILY / 740 FAMILY Rev.4.
1 Contents of Product 1.4 Board Specification Table 1-5 shows the USB Monitor Board Specification. When saving these products, put them into the condu
REVISION HISTORY Description Rev. Date Page Summary 2.00 Jul 12, 2003 - Whole page is revised according to the firm name chage 9 Changed method
Description Rev. Date Page Summary 61 Section “5.2.4 Precautions on Internal Reserved Area Expansion Bit” is added 62 Description of Section “5.2.
USB Flash Writer User's Manual Publication Date Rev.1.00 Oct 23, 2002 Rev.4.01 Dec 24, 2004 Published by: Ren
USB Flash WriterUser's Manual Renesas Solutions Corp. 4-1-6, Miyahara, Yodogawa-ku, Osaka City, 532-0003, Japan
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 t
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 7
2 Product Specifications Table 2-2 PD308F and KD3083 comparison No. Item PD308F KD3083 1 Software break function 64 points 4 points to 8 points (N
3 Installing 3. Installing 3.1 Before installing Do not connect the USB Cable which belongs to this product to the Host computer (PC) before installin
3 Installing 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 int
3 Installing 5) Choose the component which you want to install and click the <Next> button. NOTICE: Explanation of install component(a) Short
3 Installing 6) Choose the install location of FoUSB and click the <Install> button. The default install location of FoUSB is “C:\MTOOL\FOUSB”.
3 Installing 8) When an operating system is Windows XP, notes screen is displayed. Click the <OK> button. Then the software install screen is
3 Installing 10) The following figure is displayed when installation of USB Driver is completed. Click the <OK> button. 11) When the install
1. These materials are intended as a reference to assist our customers in the selection of the Renesas Technology Corporation product best suited to
3 Installing 12) Finally, click the <Finish> button. 13) Now you’ve finished installing the FoUSB (Flash-over-USB). 3.3.2 Method of Uninstal
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 (R
3 Installing 3) When an operating system is WIndows 98SE/ME/2000, Windows system detect USB Driver automatically and recognizes USB Monitor Board. Re
3 Installing 6) Click the <Finish> button. Windows system recognizes USB Monitor Board (for USBMON Driver). Recognition of USB Monitor Board
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 l
3 Installing 5) Next, the Hardware Installation screen is displayed, click the <Continue Anyway> button (Note). Note: Microsoft has advocated
3 Installing 3.4.3 Other Notes Caution: The “USB Drivers” folder below is stored. Driver Name Description Related Files USBMON Driver USBMON drive
3 Installing 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 KD3
3 Installing (d) Click the <Next> button. A default install location is “C:\MTOOL”. If an install location is changed, please click the <Bro
3 Installing 3.5.2 Uninstalling the Remote Debugger To uninstall, choose Settings -- Control Panel from the Start menu, and then click the “Add/Remove
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. IB
4 Using the FoUSB 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
4 Using the FoUSB 3) Connection Method It specifies as a premise that MCU is carried on the Target Board. (1) Connection order when using the USB bus
4 Using the FoUSB (2) When using 3.3 V The power for the Target MCU is not supplied from the USB Monitor Board and must therefore be supplied from th
4 Using the FoUSB 4.1.2 FoUSB starts 1) From the Start menu, choose Programs -- RENESAS-TOOLS – Flash-over-USB V.*.** -- FoUSB Programmer to start the
4 Using the FoUSB 4.1.3 Details of Main Button 1 1) “OPEN” button This button reads the downloading (programming) file to the Target MCU. (1) Click t
4 Using the FoUSB 2) “READ” button This button performs to verify data written in the Target MCU and the file read by “OPEN”. Also, performs to read o
4 Using the FoUSB (3) For “Read Area”, specify the range of data to read in hexadecimal. By default, the data opens in a custom window. Click the <
4 Using the FoUSB (4) To change the custom window used for displaying data to an editor, select the <Display using>. By default, data is display
4 Using the FoUSB Figure 4-13 Save screen 3) “ERASE” button This button erases the Flash ROM in the Target MCU. (1) When you click the “ERASE” butt
4 Using the FoUSB (3) After downloading The system reads information from the downloaded data to determine which block to erase and marks the corresp
Table of Content Table of Content 1. Contents of Product ...
4 Using the FoUSB When you click the “UNLOCK” button, the system checks ID code. The ID code check has automatic setting and manual setting. (1) Auto
4 Using the FoUSB (2) Manual setting If you click the “UNLOCK” button, Figure 4-17 will be displayed. Enter the ID code and click the <OK> butto
4 Using the FoUSB Example of File input In this example, the ID code of “01 02 03 04 05 06 07” is programmed in the Target MCU. First, click the “OPEN
4 Using the FoUSB NOTICE: ID code address of MCU Series ID code address M16C/10 M16C/20 M16C/Tiny M16C/60 ID1: 0FFFDFh ID2: 0FFFE3h ID3: 0FFFEBh ID4
4 Using the FoUSB 5) “PROGRAM” button This button performs programming to the Target MCU. (1) Click the “PROGRAM” button, and the screen shown in Fig
4 Using the FoUSB (3) Erasing Options is useful when you select “Erase -> Program -> Verify” for Choose An Options, allowing you to select the
4 Using the FoUSB 4.1.5 Details of the Select MCU Button 1) The following MCUs can be selected in FoUSB. Group MCU Product Name to select in FoUSB G
4 Using the FoUSB 2) When pressing the "Select MCU" button, the screen shown in Figure 4-21 is displayed. Select the Target MCU in this scre
4 Using the FoUSB 5) When the system has finished download the firmware, the screen shown in Figure 4-24 is displayed. Click the <OK> button. F
4 Using the FoUSB c) Start FoUSB. At this time, although the following error screen is displayed, ignore the error and click the <OK> button. F
Table of Content 4.2.Other Functions...
4 Using the FoUSB 4.1.6 Monitor Information 1) Monitor Firmware The version of the firmware currently written in the USB Monitor Board is indicated he
4 Using the FoUSB (1) Contents of Options Debug Mode: Whether debug mode is available (Unusable) Show splash screen: Whether FoUSB sound is available
5 Using the KD 5. Using the KD 5.1 Using the KD 5.1.1 Before Starting the KD 1) Corresponding MCU become only R8C/Tiny, M16C/10, M16C/20, M16C/Tiny, M
5 Using the KD 5.1.2 Starting the KD 1) From the Start menu, choose Programs -- RENESAS-TOOLS – KD30 V.*.** Release* -- KD30 to start the KD. When the
5 Using the KD 3) The Init screen of the Figure 5-4 opens when it is done after a MCU File is chosen. Choose “USB” as the communication interface and
5 Using the KD (a) At first an example to which the Emulation Memory overlaps the User Program is shown. In this example, the User Program is allocat
5 Using the KD (b) Then an example to which the Emulation Memory does not overlap the User Program is shown. In this example, the User Program is all
5 Using the KD 4) This KD Main screen appears when the KD was able to communicate normally at startup. A. Go button D. Reset button C. Stop button B
5 Using the KD 5.1.3 Program Download 1) Download a program by "File -- Download" in KD Main screen. Please note that "SKPTest.x30"
5 Using the KD 5.1.4 Program Execution When completing download, click the "Go" button on the KD Main screen to execute a program. After thi
Table of Content 6.7 A communication error occurred when debugging the program. What is the cause of this problem? ...74 6.8 A message "Source
5 Using the KD 5.1.7 Software Break Method When executing the software break, the software break can be set as the place which has "-" in &q
5 Using the KD 5.1.10 If a Communication Error Occurs If a communication error occurs, the error screen shown in Figure 5-11 appears. In that case, cl
5 Using the KD 5.2 KD Limitations 5.2.1 Limitations on Special Page Vector A Monitor Program uses several Special Page Vectors. Therefore, the Special
5 Using the KD 5.2.2 A limitation item about the C language When using Renesas C compiler. It is necessary to change a start up file (ncrt0.a30 and se
5 Using the KD 5.2.3 Limitations on Memory Extension When using memory extension, make sure the power source supply selector on the USB Monitor Board
5 Using the KD 5.2.5 Limitations on Stop and Wait Modes To use stop or wait modes in the User Program, start the KD in free-run mode. If you want to d
5 Using the KD 5.3 Memory Map Limitations Table 5-2 and Table 5-3 list the ROM/RAM areas which the monitor program uses. Figure 5-12 shows the memory
5 Using the KD Table 5-3 ROM/RAM areas (2) Group MCU ROM/RAM XXXXXh YYYYYh ZZZZZh M306N4FC 128K/5K 1780h 17FFh 0E0000h M306N5FC 128K/5K 1780h 17FFh
5 Using the KD SFRUser RAM AreaMonitor RAMAreaFlash MemoryMonitor AreaUser FixedVector Area00000h00400hXXXXXhYYYYYhZZZZZhFF900hFFEFFhFFFFFh000000hSFR
5 Using the KD 5.4 Peripheral Function Related Limitations 1) UART pins (TxDi, RxDi) The UARTi transmit and receive interrupts are used for communicat
1 Contents of Product 1. Contents of Product This section shows the contents of theUSB Flash Writer’s product package. When unpacking your USB Flash W
5 Using the KD 5.5.1 Communication Function with FoUSB The clock synchronous serial I/O is used for FoUSB and the monitor program communication. When
5 Using the KD 5) RAM monitor When using RAM monitor, a User Program execution is stopped temporarily. 6) Register reference When using register re
6 Troubleshooting 6. Troubleshooting 6.1 FoUSB cannot communicate with the Target MCU Why? It is possible that the firmware written in the USB Monitor
6 Troubleshooting Figure 6-1 FoUSB main window lights only Figure 6-2 USB Monitor Board (Board) In such a case, it is necessary to download firmwar
6 Troubleshooting 6.4.1 Compulsive download procedure of firmware 1) Remove the cover of USB Monitor Board and make a USB Monitor Board (Board) the fo
6 Troubleshooting 4) On the Chip Selection screen, select your MCU and download a firmware to the USB MCU. (2) Click here(1) Select your MCU 5) If
6 Troubleshooting 8) Connect USB Monitor Board (Board) with your host computer (PC). 9) Since firmware has downloaded normally if a Power indicator
6 Troubleshooting 6.5 Can FoUSB information be transmitted to KD? A written program using FoUSB cannot be debugged with KD. It is necessary to downloa
6 Troubleshooting 3) If a communication error occurs frequently when debugging your program, check the following: When using an interrupt program in
6 Troubleshooting 6.13 Debug operation has not worked well Isn’t the resource of a Monitor Program used? When using the resource of the Monitor Progra
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) v
6 Troubleshooting e. Interrupt Interrupts shown below are the resources of the Monitor Program. Do not use these interrupts. Also, some microcomputer
6 Troubleshooting 6.14 Message List The following lists the messages output by FoUSB. Normal message Your device has been automatically unlocked with
7 Appendix 7. Appendix 7.1 USB Monitor Board 7.1.1 Board Specifications Figure 7-1 list Board specifications of USB Monitor Board. J3:10-Pin
7 Appendix 7.1.2 Pin Assignments As an example of M16C/62A group, Pin assignments of the 10-pin connector (for Flat Cable) are shown in Figure 7-2.
7 Appendix Example Connection for M16C/62A(M), 6N(M306NAFG, M306NBFC only), M3062GF8N, 80, 24 0.1uF0.1uFVcc5k5kVssVssAVssP64/CTS1/RTS1/CTS0/CLKS1P65/C
7 Appendix Example Connection for M16C/26, 26A, 28, 29 [1] Note: It is necessary to connect the CE pin or the EPM (RP) pin and the P1_6 pin. The CE pi
7 Appendix Example Connection for M16C/10 0.1uF0.1uFVcc5k5kVssVssAVssCNVssRESETAVccVccVcc24681097531GNDVccRxDTxDFLAT Cable ConnectionUSB Monitor Board
7 Appendix Example Connection for M32C/83 0.1uF0.1uFVcc5k5kVssVssAVssP64/CTS1/RTS1/CTS0/CLKS1P65/CLK1P66/RxD1P67/TxD1CNVssRESETP50/WRL/WRP55/HOLDAVccV
7 Appendix Example Connection for R8C/10, 11, 12, 13 0.1uF0.1uFVcc5k33kAVssVssRESETAvcc/VREFVcc24681097531GNDVccRxDTxDFLAT Cable ConnectionUSB Monitor
7 Appendix Example Connection for 38C2 Vcc5.1k8MHz15pF15pFVssP33/RxD2/(LED3)P32/TxD2/(LED2)XINXOU TCNVssRESE TP31/SCLK2/(LED1)P30/SRDY2/(LED0)Vcc5.1k0
1 Contents of Product Table 1-4 Compatible Products (2) Group MCU Product Name Corresponding Software MCU Product Name to select in Software M16C/24
7 Appendix 7.1.4 Power Source Supply Selector Specifications of the Power Source Supply Selector (S1: Power Mode) are shown in Table 7-1. Table 7-1 Ju
7 Appendix 7.2 Installation of a USB Driver, and recognition of USB Monitor Board (Manual setup) 7.2.1 For USBMON Driver 1) Remove the cover of USB Mo
7 Appendix 4) Recognition of new hardware displays an install wizard. So click the <Next> button. 5) Select the method to search for your new h
7 Appendix 7) When the Windows system has been prepared to install the driver the wizard shown in Figure 7-3 appears. So click the <Next> button
7 Appendix 7.2.2 For FoUSB Driver 1) Remove the cover of USB Monitor Board and make a USB Monitor Board (Board) the following setup, before installing
7 Appendix 4) Recognition of new hardware displayes an install wizard. So click the <Next> button. 5) Select the method to search for your new
7 Appendix 7) When the Windows system has been prepared to install the driver, the wizard shown in Figure 7-5 appears. So click the <Next> butto
7 Appendix 10) Remove the cover of USB Monitor Board and make a USB Monitor Board (Board) the following setup. If a setup is completed, attach a cover
7 Appendix 7.3 Referencing Electronic Manuals Electronic Manuals of the Product are in the form of files in PDF (portable document format). To referen
5544332211D DC CB BA AJP1 MCU MODES HUNT E D = B OOT M ODEOP E N = US E R M ODEPOWERR UNNI NGSTATUSUAR T 1RS2 3 2 CVcc GNDTARGETIFIO/DEBUGPI NSUS BST
Comments to this Manuals