Renesas M16C FAMILY User Manual

Browse online or download User Manual for Unknown Renesas M16C FAMILY. Renesas M16C FAMILY User's Manual

  • Download
  • Add to my manuals
  • Print
  • Page
    / 103
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 0
REJ10J0143-0401Z
USB Flash Write
r
User's Manual
RENESAS SINGLE-CHIP MICROCOMPUTER
M16C FAMILY / 740 FAMILY
Rev.4.01 Renesas Solutions Corp.
Revision date: Dec 24, 2004 www.renesas.com
Page view 0
1 2 3 4 5 6 ... 102 103

Summary of Contents

Page 1 - User's Manual

REJ10J0143-0401Z USB Flash WriterUser's ManualRENESAS SINGLE-CHIP MICROCOMPUTER M16C FAMILY / 740 FAMILY Rev.4.

Page 2

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

Page 3 - Preface

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

Page 4 - Table of Content

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.

Page 5

USB Flash Writer User's Manual Publication Date Rev.1.00 Oct 23, 2002 Rev.4.01 Dec 24, 2004 Published by: Ren

Page 6

USB Flash WriterUser's Manual Renesas Solutions Corp. 4-1-6, Miyahara, Yodogawa-ku, Osaka City, 532-0003, Japan

Page 7 - 1. Contents of Product

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

Page 8 - 1.3 Compatible Products

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

Page 9 - *1: When using the KD30

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

Page 10 - 1.4 Board Specification

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

Page 11 - 1.6 System Requirements

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

Page 12 - 2. Product Specifications

3 Installing 5) Choose the component which you want to install and click the <Next> button. NOTICE: Explanation of install component(a) Short

Page 13 - 2 Product Specifications

3 Installing 6) Choose the install location of FoUSB and click the <Install> button. The default install location of FoUSB is “C:\MTOOL\FOUSB”.

Page 14 - 3. Installing

3 Installing 8) When an operating system is Windows XP, notes screen is displayed. Click the <OK> button. Then the software install screen is

Page 15 - 3.3.1 Method of Installation

3 Installing 10) The following figure is displayed when installation of USB Driver is completed. Click the <OK> button. 11) When the install

Page 16 - 3 Installing

1. These materials are intended as a reference to assist our customers in the selection of the Renesas Technology Corporation product best suited to

Page 17

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

Page 18

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

Page 19

3 Installing 3) When an operating system is WIndows 98SE/ME/2000, Windows system detect USB Driver automatically and recognizes USB Monitor Board. Re

Page 20

3 Installing 6) Click the <Finish> button. Windows system recognizes USB Monitor Board (for USBMON Driver). Recognition of USB Monitor Board

Page 21

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

Page 22

3 Installing 5) Next, the Hardware Installation screen is displayed, click the <Continue Anyway> button (Note). Note: Microsoft has advocated

Page 23

3 Installing 3.4.3 Other Notes Caution: The “USB Drivers” folder below is stored. Driver Name Description Related Files USBMON Driver USBMON drive

Page 24

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

Page 25

3 Installing (d) Click the <Next> button. A default install location is “C:\MTOOL”. If an install location is changed, please click the <Bro

Page 26 - 3.4.3 Other Notes

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

Page 27 - 3.5 KD30/KD3083 intalling

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

Page 28

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

Page 29

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

Page 30 - 4. Using the FoUSB

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

Page 31 - 4 Using the FoUSB

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

Page 32

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

Page 33 - 4.1.2 FoUSB starts

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

Page 34

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 <

Page 35

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

Page 36

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

Page 37

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

Page 38

Table of Content Table of Content 1. Contents of Product ...

Page 39

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

Page 40

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

Page 41

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

Page 42

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

Page 43

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

Page 44 - Program and Verify

4 Using the FoUSB (3) Erasing Options is useful when you select “Erase -> Program -> Verify” for Choose An Options, allowing you to select the

Page 45

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

Page 46

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

Page 47 - MCU Category Column

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

Page 48

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

Page 49

Table of Content 4.2.Other Functions...

Page 50 - 4.1.6 Monitor Information

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

Page 51 - 4.2.Other Functions

4 Using the FoUSB (1) Contents of Options Debug Mode: Whether debug mode is available (Unusable) Show splash screen: Whether FoUSB sound is available

Page 52 - 5. Using the KD

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

Page 53 - 5.1.2 Starting the KD

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

Page 54 - 5 Using the KD

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

Page 55

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

Page 56

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

Page 57

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

Page 58 - 5.1.3 Program Download

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"

Page 59 - 5.1.6 Program Step Execution

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

Page 60 - 5.1.9 KD Completion

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

Page 61 - 5.1.12 Operation Method

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

Page 62 - 5.2 KD Limitations

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

Page 63

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

Page 64

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

Page 65

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

Page 66 - 5.3 Memory Map Limitations

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

Page 67 - Table 5-3 ROM/RAM areas (2)

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

Page 68 - Figure 5-12 Mmemory map

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

Page 69 - 5.5 FoUSB Debugger Principle

5 Using the KD SFRUser RAM AreaMonitor RAMAreaFlash MemoryMonitor AreaUser FixedVector Area00000h00400hXXXXXhYYYYYhZZZZZhFF900hFFEFFhFFFFFh000000hSFR

Page 70 - 5.5.2 Command Execution

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

Page 71

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

Page 72 - 6. Troubleshooting

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

Page 73 - 6 Troubleshooting

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

Page 74

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

Page 75

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

Page 76

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

Page 77

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

Page 78

6 Troubleshooting 8) Connect USB Monitor Board (Board) with your host computer (PC). 9) Since firmware has downloaded normally if a Power indicator

Page 79

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

Page 80

6 Troubleshooting 3) If a communication error occurs frequently when debugging your program, check the following: When using an interrupt program in

Page 81 - 6.14 Message List

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

Page 82 - 7. Appendix

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

Page 83 - 7.1.3 Example Connection

6 Troubleshooting e. Interrupt Interrupts shown below are the resources of the Monitor Program. Do not use these interrupts. Also, some microcomputer

Page 84 - 7 Appendix

6 Troubleshooting 6.14 Message List The following lists the messages output by FoUSB. Normal message Your device has been automatically unlocked with

Page 85

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

Page 86 - User Reset Signal

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.

Page 87 - 10-Pin Connector assign

7 Appendix Example Connection for M16C/62A(M), 6N(M306NAFG, M306NBFC only), M3062GF8N, 80, 24 0.1uF0.1uFVcc5k5kVssVssAVssP64/CTS1/RTS1/CTS0/CLKS1P65/C

Page 88 - Example Connection for 7542

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

Page 89 - Example Connection for 38C2

7 Appendix Example Connection for M16C/10 0.1uF0.1uFVcc5k5kVssVssAVssCNVssRESETAVccVccVcc24681097531GNDVccRxDTxDFLAT Cable ConnectionUSB Monitor Board

Page 90 - 7.1.5 LED Status Indicators

7 Appendix Example Connection for M32C/83 0.1uF0.1uFVcc5k5kVssVssAVssP64/CTS1/RTS1/CTS0/CLKS1P65/CLK1P66/RxD1P67/TxD1CNVssRESETP50/WRL/WRP55/HOLDAVccV

Page 91 - Board (Manual setup)

7 Appendix Example Connection for R8C/10, 11, 12, 13 0.1uF0.1uFVcc5k33kAVssVssRESETAvcc/VREFVcc24681097531GNDVccRxDTxDFLAT Cable ConnectionUSB Monitor

Page 92

7 Appendix Example Connection for 38C2 Vcc5.1k8MHz15pF15pFVssP33/RxD2/(LED3)P32/TxD2/(LED2)XINXOU TCNVssRESE TP31/SCLK2/(LED1)P30/SRDY2/(LED0)Vcc5.1k0

Page 93

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

Page 94 - 7.2.2 For FoUSB Driver

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

Page 95

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

Page 96

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

Page 97

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

Page 98 - 7.4 Product Information

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

Page 99

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

Page 100 - 51 - 53

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

Page 101 - 80 - 86

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

Page 102

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

Page 103 - USB Flash Write

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

No comments