Renesas M306NKT3 User Manual

To our customers,
Old Company Name in Catalogs and Other Documents
On April 1st, 2010, NEC Electronics Corporation merged with Renesas Technology Corporation, and Renesas companies.
Therefore, although the old company name remains in this document, it is a valid
Renesas Electronics document. We appreciate your understanding.
Issued by: Renesas Electronics Corporation (http://www.renesas.com) Send any inquiries to http://www.renesas.com/inquiry
Electronics Corporation took over all the business of both
Renesas Electronics website: http://www.renesas.com
st
, 2010
April 1 Renesas Electronics Corporation
.
Notice
1. All information included in this document is current as of the date this document is issued. Such information, however, is
subject to change without any prior notice. Before purchasing or using any Renesas Electronics products listed herein, please confirm the latest product information with a Renesas Electronics sales office. Also, please pay regular and careful attention to additional and different inform ation to be disclosed by Renesas Electronics such as that disclosed through our website.
2. Renesas Electronics does not assume any liability for infringement of patents, copyrig hts, or other intellectual property rights
of third parties by or arising from the use of Renesa s Electronics products or technical information described in this document. No license, express, implied or otherwise, is granted hereby under any patents, copyrights or other intellectual property rights of Renesas Electronics or others.
3. You should not alter, modify, copy, or otherwise misappropriate any Renesas Electronics product, w hether in whole or in part.
4. Descriptions of circuits, software and other related information in this document are provided only to illustrate the operation of
semiconductor products and application examples. You are fully responsible for the incorporation of these circuits, software, and information in the design of your equipment. Renesas Electronics assumes no responsi bility for any losses incurred by you or third parties arising from the use of these circuits, software, or information.
5. When exporting the products or technology described in this document, you should comply with the applicable export control
laws and regulations and follow the procedures required by such laws and regulations. You sho uld not use Renesas Electronics products or the technolog y described in this document for any purpose relating to military applications or use by the military, including but not limited to the development of weapons of mass destruction. Renesas Electronics products and technology may not be used for or incorporate d into any products or systems whose manufac ture, use, or sale is prohibited under any applicable domestic or foreign laws or regulations.
6. Renesas Electronics has used reasonable ca re in preparing the information included in this document, but Renesas Electronics
does not warrant that such information is error free. Renesas Electronics assumes no liability whatsoever for any damages incurred by you resulting from errors in or omissions from the information included herein.
7. Renesas Electronics products are classified according to the following three quality grades: “Standard”, “High Quality”, and
“Specific”. The recommended applications for each Renesas Electronics product depends on the product’s quality grade, as indicated below. You must check the quality grade of each Renesas Electronics product before using it in a particular application. You may not use any Renesa s Electronics product for any application categorized as “Specific” without the prior written consent of Renesas Electronic s. Further, you may not use any Renesas Electronics product for any application for which it is not intended without the prior written consent of Renesas Electronics. Renesas Electronics shall not be in any way liable for any damages or losses incurred by you or third parties arising from the use of any Renesas Electronics product for an application categorized as “Spec ific” or for which the product is not intended where you have failed t o obtain the prior written consent of Renesas Electronics. The quality grade of each Renesas Electronics product is “Standard” unless otherwise expressly specified in a Renesas Electronics data sheets or data books, etc.
“Standard”: Computers; office equipment; communications equipment; test and measurement equipment; audio and visual
“High Quality”: Transportation equipment (automobiles, trains, ships, etc.); traffic control systems; anti-disaster systems; anti-
“Specific”: Aircraft; aerospace equipment; submersible repeaters; nuclear reactor control systems; medical equipment or
8. You should use the Renesas Electronics products described in this document within the range specified by Renesas Electronics,
especially with respect to the maximum rating, operating supply voltage range, movement power voltage range, heat radiation characteristics, installation and othe r product characteristics. Renesas Elec tronics shall have no liability for malfunctions or damages arising out of the use of Renesa s Electronics products beyond such specified ranges.
9. Although Renesas Electronics endeavors to improve the quality and reliability of its products, se miconductor products have
specific characteristics such as the occurrence of failure at a certain rate and malfunctions under certain use conditions. Further, Renesas Electronics products are not subject to radiation resistance design. Please be sure to implement safety measure s to guard them against the possibility of physical injury, and injury or damage caused by fire in the event of the failure of a Renesas Electronics product, such as safety design for hardware and software including but not limited to redundancy, fire control and malfunction prevention, appropriate treatment for aging degradation or any other appropriate measures. Because the evaluation of microcomputer software alone is very difficult, please evaluate the safety of the final products or system manufactured by you.
10. Please contact a Renesas Electronics sales office for details as to environmental matters such as the environmental
compatibility of each Renesas Electronics product. Please use Renesas Electronics products in compliance with all applicable laws and regulations that regulate the inclusion or use of controlled substances, including without limitation, the EU RoHS Directive. Renesas Electronics assumes no liability for damages or losses occurring as a result of your noncompliance with applicable laws and regulations.
11. This document may not be reproduced or duplicated, in any form, in whole or in part, without prior written consent of Renesas
Electronics.
12. Please contact a Renesas Electronics sales office if you have any questions regarding the information contained in this
document or Renesas Electronics products, or if you have any other inquiries.
(Note 1) “Renesas Electronics” as used in this document means Renesas Electronics Corporation and also includes its majority-
owned subsidiaries.
(Note 2) “Renesas Electronics product(s)” means any product developed or manufactured by or for Renesas Electronics.
equipment; home electronic applianc es; machine tools; personal electronic equipment; and industrial robots.
crime systems; safety equipment; and medical equipment not specifically designed for life support.
systems for life support (e.g. artificial life support devices or systems), surgical implantations, or healthcare intervention (e.g. excision, etc.), and any other applications or purposes that pose a direct threat to human life.
User’s Manual
Renesas FLASH Development Toolkit 3.05
(for Windows® 98SE/Me, Windows NT® 4.0, Windows® 2000 and Windows® XP)
User’s Manual Renesas FLASH Microcomputer
Programming System
HS6400FDIW3S
Rev.7.00 2006.01

Keep safety first in your circuit designs!

1. Renesas Technology Corp. 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.

Notes regarding these materials

1. These materials are intended as a reference to assist our customers in the selection of the Renesas Technology Corp. 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 Corp. or a third party.
2. Renesas Technology Corp. 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 Corp. without notice due to product improvements or other reasons. It is therefore recommended that customers contact Renesas Technology Corp. or an authorized Renesas Technology Corp. 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 Corp. 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 Corp. by various means, including the Renesas Technology Corp. 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 Corp. assumes no responsibility for any damage, liability or other loss resulting from the information contained herein.
5. Renesas Technology Corp. 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 Corp. or an authorized Renesas Technology Corp. 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 Corp. 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 Corp. for further details on these materials or the products contained therein.

i. Contents

i. Contents.........................................................................................................................i
ii. Cautions.........................................................................................................................viii
iii. Preface...........................................................................................................................ix
iv. Abbreviations ................................................................................................................x
v. Document Conventions.................................................................................................xii
Chapter 1 Introduction ...........................................................................................................1
1.1 Key Features............................................................................................................................................1
1.2 New Features...........................................................................................................................................1
Chapter 2 System Overview...................................................................................................3
2.1 User Interface ..........................................................................................................................................4
2.1.1 Menu bar ....................................................................................................................................5
2.1.2 Toolbars .....................................................................................................................................6
2.1.3 Status Bar ...................................................................................................................................10
2.1.4 Pop-up menus.............................................................................................................................11
2.2 Help.........................................................................................................................................................11
2.3 Hot Keys..................................................................................................................................................12
Chapter 3 Using FDT.............................................................................................................15
3.1 Quickstart ................................................................................................................................................15
3.2 Background Information .........................................................................................................................15
3.2.1 What are the User Area, User Boot Area and Data Areas?........................................................15
3.2.2 What is the difference between Boot Mode and User Mode?....................................................16
3.2.3 What is the difference between User Mode and User Program Mode? .....................................16
3.2.4 What are “Protocol A”, “Protocol B”, “Protocol C” and “Protocol D” Kernels? ......................16
3.2.5 What are the fcf and fdm files, can I edit them? ........................................................................17
3.2.6 Can I use FDT if I do not have Local Machine Administrator rights for my PC?.....................17
3.2.7 How do I recompile a kernel? ....................................................................................................18
3.2.8 How do I use the supplied demonstration User Mode Kernels?................................................18
3.2.9 Can I modify the User Mode kernels to work for a different clock frequency? ........................19
3.3 Starting FDT............................................................................................................................................20
3.3.1 Starting FDT without Security or Simple Interface Mode enabled............................................20
3.3.2 Starting FDT in Basic Simple Interface Mode...........................................................................20
3.3.3 Starting FDT by double clicking on a workspace file................................................................20
3.3.4 Starting FDT by double clicking on a data file..........................................................................20
3.3.5 Starting FDT by double clicking on a w4f script configuration file ..........................................21
3.3.6 Starting FDT with Simple Interface Mode enabled ...................................................................21
3.3.7 Starting FDT with Access Rights password security enabled....................................................21
3.3.8 Starting FDT by double clicking on a .fpf packaged project file...............................................21
3.3.9 Starting FDT from the command line ........................................................................................21
3.3.9.1 Opening data files from the command line ................................................................................21
3.3.9.2 Opening workspace files from the command line......................................................................21
3.3.9.3 Opening data files from the command line with Access Rights password security enabled......21
3.3.9.4 Opening w4f Script Configuration files from the command line...............................................22
3.3.9.5 Opening w4f Script Configuration files from the command line with Access Rights password
security enabled..........................................................................................................................22
3.3.9.6 Starting FDT Basic Simple Interface Mode from the command line.........................................22
i
3.4
Creating a New Workspace and Project..................................................................................................23
3.4.1 New Project Workspace .............................................................................................................23
3.4.2 Choose Device and Kernel (not Generic Boot*)........................................................................24
3.4.3 Communications Port.................................................................................................................25
3.4.4 Device Settings...........................................................................................................................26
3.4.5 Connection Type ........................................................................................................................27
3.4.6 Programming Options ................................................................................................................28
3.4.7 FDM\E8Direct Pin Settings........................................................................................................28
3.4.8 Reset Pin Settings.......................................................................................................................30
3.5 Configuring a Project for a Generic Boot Device...................................................................................32
3.5.1 New Project Workspace .............................................................................................................32
3.5.2 Generic Boot - Choose Device and Kernel ................................................................................33
3.5.3 Generic Boot - Communications Port ........................................................................................33
3.5.4 Generic Boot - FDM Pin Settings [FDM connection only]........................................................34
3.5.5 Generic Boot - E8Direct Pin Settings [E8Direct connection only]............................................35
3.5.6 Generic Boot - Confirmation......................................................................................................36
3.5.7 Generic Boot – Select Device ....................................................................................................37
3.5.8 Generic Boot – Select Clock Mode............................................................................................37
3.5.9 Generic Boot – Setup Complete.................................................................................................38
3.5.10 Generic Boot – Device Settings .................................................................................................39
3.5.11 Generic Boot - Connection Type ...............................................................................................39
3.5.12 Generic Boot – Programming Options.......................................................................................39
3.5.13 Generic Boot – Reset Pin Settings [FDM connection only].......................................................39
3.5.14 Generic Boot – Reinterrogate on connect option.......................................................................39
3.5.15 Prior Generic Device..................................................................................................................39
3.6 Connecting to the device.........................................................................................................................39
3.6.1 E8 USB Connection...................................................................................................................39
3.6.2 ID Check Dialog ........................................................................................................................40
3.7 Programming the Data to the FLASH ROM...........................................................................................40
3.7.1 Programming an individual file to the User Area (normal flash area).......................................40
3.7.2 Programming multiple files to the User Area (normal flash area) .............................................40
3.7.3 Programming an individual file to the User Boot Area..............................................................41
3.7.4 Programming multiple files to the User Boot Area....................................................................41
3.7.5 Programming some files to the User Area and other files to the User Boot Area......................41
3.8 Erasing Data from the FLASH ROM......................................................................................................42
3.9 Uploading the FLASH ROM Data..........................................................................................................43
3.10 Performing a Blank Check......................................................................................................................44
3.11 Disconnecting from the device................................................................................................................44
3.12 Saving a Workspace................................................................................................................................44
3.13 Closing a Workspace...............................................................................................................................44
3.14 Exiting FDT ............................................................................................................................................45
Chapter 4 Wait For Script ......................................................................................................47
4.1 Wait For Script Overview .......................................................................................................................47
4.2 Wait For Script – New Configuration.....................................................................................................47
4.2.1 Script File Page ..........................................................................................................................47
4.2.1.1 Description .................................................................................................................................47
4.2.1.2 Script Path ..................................................................................................................................48
4.2.1.3 Timings ......................................................................................................................................48
4.2.1.4 Save............................................................................................................................................48
4.2.2 Log File Page .............................................................................................................................48
4.2.2.1 Log File Directory......................................................................................................................48
4.2.2.2 Log File Name............................................................................................................................49
4.2.2.3 Save............................................................................................................................................49
4.2.3 Status File Page ..........................................................................................................................49
4.2.3.1 Status File Directory...................................................................................................................49
ii
4.2.3.2
Status File Name ........................................................................................................................49
4.2.3.3 Save............................................................................................................................................49
4.2.4 Error Handling Page...................................................................................................................50
4.2.4.1 On Script Fail .............................................................................................................................50
4.2.4.2 Save............................................................................................................................................51
4.3 Wait For Script – Edit Configuration......................................................................................................51
4.4 Wait For Script – Run Configuration......................................................................................................52
4.5 Wait For Script – Script Commands .......................................................................................................52
4.5.1 Workspace..................................................................................................................................53
4.5.2 Connect ......................................................................................................................................53
4.5.3 Download ...................................................................................................................................54
4.5.4 Erase ...........................................................................................................................................54
4.5.5 BlankCheck ................................................................................................................................55
4.5.6 Upload ........................................................................................................................................55
4.5.7 Checksum ...................................................................................................................................55
4.5.8 Disconnect..................................................................................................................................56
4.5.9 RebuildImage .............................................................................................................................56
4.5.10 # Comment .................................................................................................................................56
4.5.11 Alert ...........................................................................................................................................57
4.5.12 Pause ..........................................................................................................................................57
4.5.13 Delete .........................................................................................................................................57
4.5.14 Move \ Copy...............................................................................................................................57
4.5.15 Abort ..........................................................................................................................................58
4.6 Wait For Script – Example Script File....................................................................................................58
4.7 Wait For Script – Status File Format.......................................................................................................59
Chapter 5 Access Rights ........................................................................................................61
5.1 Access Rights Overview .........................................................................................................................61
5.2 Enabling Access Rights...........................................................................................................................61
5.3 Access Rights Administration.................................................................................................................61
5.3.1 Disable All .................................................................................................................................62
5.3.2 Modify User ...............................................................................................................................62
5.3.3 Add User ....................................................................................................................................63
5.3.4 Delete User .................................................................................................................................63
5.3.5 Reset Pwd ...................................................................................................................................63
5.3.6 Close...........................................................................................................................................63
Chapter 6 Configuring the User Interface ..............................................................................65
6.1 Arranging Windows ................................................................................................................................65
6.1.1 Minimising windows..................................................................................................................65
6.1.2 Tiling windows...........................................................................................................................65
6.1.3 Cascading windows....................................................................................................................65
6.2 Locating Currently Open Windows ........................................................................................................65
6.2.1 Locating a specific window........................................................................................................65
6.3 Enabling/disabling the Toolbar...............................................................................................................66
6.4 Enabling/disabling the Workspace Window ...........................................................................................66
6.5 Enabling/disabling the Output Window..................................................................................................66
6.6 Customising the Toolbar .........................................................................................................................67
6.6.1 Toolbars Tab ..............................................................................................................................67
Chapter 7 Menus ....................................................................................................................69
7.1 File Menu ................................................................................................................................................69
7.1.1 Close...........................................................................................................................................69
7.1.2 New Workspace... ......................................................................................................................69
7.1.3 Open Workspace... .....................................................................................................................69
7.1.4 Save Workspace .........................................................................................................................69
iii
7.1.5
Close Workspace........................................................................................................................69
7.1.6 Open an S-Record... ...................................................................................................................70
7.1.7 Save ............................................................................................................................................70
7.1.8 Save As... ...................................................................................................................................70
7.1.9 Exit.............................................................................................................................................70
7.2 Edit Menu................................................................................................................................................70
7.2.1 Undo ...........................................................................................................................................70
7.2.2 Redo ...........................................................................................................................................70
7.2.3 Cut ..............................................................................................................................................70
7.2.4 Copy ...........................................................................................................................................70
7.2.5 Paste ...........................................................................................................................................70
7.2.6 Select All ....................................................................................................................................70
7.2.7 Find... .........................................................................................................................................71
7.2.8 Find In Files... ............................................................................................................................71
7.2.9 Replace... ....................................................................................................................................71
7.3 View Menu..............................................................................................................................................71
7.3.1 Workspace..................................................................................................................................71
7.3.2 Output.........................................................................................................................................71
7.4 Project Menu ...........................................................................................................................................71
7.4.1 Set Current Project .....................................................................................................................71
7.4.2 Insert Project... ...........................................................................................................................71
7.4.3 Add Files... .................................................................................................................................71
7.4.4 Remove Files..............................................................................................................................72
7.4.5 File Extensions... ........................................................................................................................72
7.4.5.1 File Extensions Add... ................................................................................................................73
7.4.5.2 File Extensions Modify..............................................................................................................73
7.4.6 Rebuild Image ............................................................................................................................74
7.4.7 Download Image ........................................................................................................................74
7.4.8 Field Programming.....................................................................................................................74
7.5 Tools Menu .............................................................................................................................................74
7.5.1 Administration............................................................................................................................74
7.5.2 Customise... ................................................................................................................................74
7.5.3 Options... ....................................................................................................................................74
7.5.4 Format Views... ..........................................................................................................................74
7.5.5 Simple Interface... ......................................................................................................................75
7.5.6 Wait For Script ...........................................................................................................................75
7.5.7 Access Rights .............................................................................................................................75
7.5.7.1 Access Rights – Login................................................................................................................75
7.5.7.2 Access Rights – Change Password.............................................................................................75
7.5.7.3 Access Rights – Administration.................................................................................................75
7.6 Window Menu.........................................................................................................................................75
7.6.1 Cascade ......................................................................................................................................75
7.6.2 Tile Horizontally ........................................................................................................................75
7.6.3 Tile Vertically ............................................................................................................................75
7.6.4 Arrange Icons .............................................................................................................................75
7.6.5 Close All.....................................................................................................................................76
7.6.6 ‘file name’ ..................................................................................................................................76
7.7 Device Menu ...........................................................................................................................................76
7.7.1 Connect to Device ......................................................................................................................76
7.7.2 Disconnect..................................................................................................................................76
7.7.3 Erase FLASH blocks ..................................................................................................................76
7.7.4 Blank check ................................................................................................................................76
7.7.5 Upload Image .............................................................................................................................76
7.7.6 Download Active File ................................................................................................................76
7.7.7 FLASH Checksum .....................................................................................................................76
7.7.8 Go From Address... ....................................................................................................................77
iv
7.7.9
Cancel Operation........................................................................................................................77
7.7.10 Configure Flash Project..............................................................................................................77
7.8 Help Menu...............................................................................................................................................77
7.8.1 Help Topics ................................................................................................................................77
7.8.2 Technical Support ......................................................................................................................77
7.8.3 About..........................................................................................................................................77
Chapter 8 Windows................................................................................................................79
8.1 Workspace window.................................................................................................................................79
8.1.1 Workspace..................................................................................................................................79
8.1.1.1. Insert Project... ...........................................................................................................................79
8.1.1.2. Allow Docking...........................................................................................................................80
8.1.1.3. Hide............................................................................................................................................80
8.1.1.4. Properties ...................................................................................................................................80
8.1.2 Project ........................................................................................................................................81
8.1.2.1 Add Files... .................................................................................................................................81
8.1.2.2 Remove Files..............................................................................................................................81
8.1.2.3 Add Folder... ..............................................................................................................................81
8.1.2.4 Allow Docking...........................................................................................................................81
8.1.2.5 Hide............................................................................................................................................81
8.1.2.6 Properties ...................................................................................................................................82
8.1.2.7 Set as current Project..................................................................................................................82
8.1.2.8 Remove Project ..........................................................................................................................82
8.1.2.9 Unload Project............................................................................................................................82
8.1.2.10 Add Files From Kernel Dir... .....................................................................................................82
8.1.3 Device Image - Folder................................................................................................................82
8.1.3.1 Remove Folder...........................................................................................................................82
8.1.3.2 Rename Folder ...........................................................................................................................83
8.2 Device File ..............................................................................................................................................84
8.2.1 Open ‘filename’ .........................................................................................................................84
8.2.2 Add Files... .................................................................................................................................84
8.2.3 Remove Files..............................................................................................................................84
8.2.4 Allow Docking ...........................................................................................................................84
8.2.5 Hide ............................................................................................................................................84
8.2.6 Properties... ................................................................................................................................85
8.2.7 Display Block usage...................................................................................................................85
8.2.8 Exclude ‘filename’.....................................................................................................................85
8.2.9 User Boot Area...........................................................................................................................85
8.2.10 Download File to [User Area] /[User Boot Area] ......................................................................85
8.2.11 File Checksum............................................................................................................................85
8.2.12 Compare File->Device Checksum .............................................................................................85
8.3 Workspace Properties..............................................................................................................................86
8.4 Project Properties ....................................................................................................................................87
8.5 Configure Flash Project (Flash Properties) .............................................................................................87
8.5.1 Kernel Tab..................................................................................................................................87
8.5.2 Communications Tab .................................................................................................................89
8.5.3 Device Tab .................................................................................................................................90
8.5.4 Programmer Tab ........................................................................................................................92
8.5.5 Modules Tab ..............................................................................................................................94
8.6 S-Record Properties Window..................................................................................................................94
8.6.1 Block Usage Tab ........................................................................................................................94
8.6.2 Cursor Value ..............................................................................................................................95
8.6.3 Selection Value ..........................................................................................................................95
8.7 Output Window.......................................................................................................................................96
8.7.1 Clear Window ............................................................................................................................96
8.7.2 Allow Docking ...........................................................................................................................96
v
8.7.3
8.8 Hex Editor Window ................................................................................................................................97
8.9 Customise - Toolbars ..............................................................................................................................99
8.10 Customise – Menu...................................................................................................................................101
Hide ............................................................................................................................................96
8.8.1 Cut ..............................................................................................................................................98
8.8.2 Copy ...........................................................................................................................................98
8.8.3 Paste ...........................................................................................................................................98
8.8.4 Undo ...........................................................................................................................................98
8.8.5 Redo ...........................................................................................................................................98
8.8.6 Display Unit ...............................................................................................................................98
8.8.7 Align to 8 Bytes .........................................................................................................................98
8.8.8 Toggle ASCII Column ...............................................................................................................98
8.8.9 Create Selection... ......................................................................................................................98
8.8.10 Fill... ...........................................................................................................................................99
8.8.11 Find... .........................................................................................................................................99
8.8.12 Replace... ....................................................................................................................................99
8.8.13 Properties... ................................................................................................................................99
8.8.14 Add to Active Project.................................................................................................................99
8.8.15 Data Entry Note..........................................................................................................................99
8.8.16 Goto Address..............................................................................................................................99
8.9.1 Show Tooltips ............................................................................................................................100
8.9.2 New... .........................................................................................................................................100
8.9.3 Reset ...........................................................................................................................................100
8.9.4 Toolbar name .............................................................................................................................100
8.9.5 OK ..............................................................................................................................................100
8.9.6 Delete .........................................................................................................................................101
Chapter 9 Simple Interface Mode ..........................................................................................105
9.1 Options Menu..........................................................................................................................................105
9.1.1 Login... .......................................................................................................................................105
9.1.2 AutoDisconnect..........................................................................................................................106
9.1.3 Readback Verify.........................................................................................................................106
9.1.4 Request Checksum .....................................................................................................................106
9.1.5 Erase Device Before Program ....................................................................................................106
9.1.6 Security Protection .....................................................................................................................106
9.1.7 Field Programming->Run Published File…...............................................................................106
9.1.8 About…......................................................................................................................................106
9.2 Dialog Controls .......................................................................................................................................106
9.2.1 Back to Project ...........................................................................................................................106
9.2.2 Exit.............................................................................................................................................107
9.2.3 Download Project image / Download File radio buttons ...........................................................107
9.2.4 Project Image / Download File Area ..........................................................................................107
9.2.5 Program Flash ............................................................................................................................107
9.2.6 Disconnect..................................................................................................................................107
9.2.7 File Selection..............................................................................................................................107
Chapter 10 Basic Simple Interface Mode...............................................................................109
10.1 Options Menu..........................................................................................................................................109
10.1.1 Login... .......................................................................................................................................109
10.1.2 AutoDisconnect..........................................................................................................................110
10.1.3 Readback Verify.........................................................................................................................110
10.1.4 Request Checksum .....................................................................................................................110
10.1.5 Erase Device Before Program....................................................................................................110
10.1.6 Security Protection .....................................................................................................................110
10.1.7 New Settings… ..........................................................................................................................110
10.1.8 About…......................................................................................................................................110
vi
10.2
Dialog Controls .......................................................................................................................................110
10.2.1 Exit.............................................................................................................................................110
10.2.2 Download File radio button .......................................................................................................110
10.2.3 Download File Area ...................................................................................................................111
10.2.4 Program Flash ............................................................................................................................111
10.2.5 Disconnect..................................................................................................................................111
10.2.6 File Selection..............................................................................................................................111
Chapter 11 Field Programming..............................................................................................113
11.1 Options Menu..........................................................................................................................................114
11.1.1 Login... .......................................................................................................................................114
11.1.2 AutoDisconnect..........................................................................................................................114
11.1.3 Readback Verify.........................................................................................................................114
11.1.4 Request Checksum .....................................................................................................................115
11.1.5 Erase Device Before Program....................................................................................................115
11.1.6 Security Protection .....................................................................................................................115
11.1.7 Field Programming->Run Published File…...............................................................................115
11.1.8 About…......................................................................................................................................115
11.2 Dialog Controls .......................................................................................................................................115
11.2.1 Back to Project ...........................................................................................................................115
11.2.2 Exit.............................................................................................................................................115
11.2.3 Download Project image radio button........................................................................................115
11.2.4 Program Flash ............................................................................................................................115
11.2.5 Disconnect..................................................................................................................................116
Chapter 12 E8 Update............................................................................................................117
Chapter 13 E8Direct...............................................................................................................119
13.1 Firmware and Device ID.........................................................................................................................119
13.2 Hardware Differences .............................................................................................................................120
Chapter 14 QzROM Programming ........................................................................................123
14.1 Reserved Areas........................................................................................................................................123
14.2 Security Protection..................................................................................................................................124
14.2.1 Toolbar.......................................................................................................................................124
14.2.2 Project ........................................................................................................................................124
14.2.3 Simple Interface \ Basic Mode ...................................................................................................125
Chapter 15 Upgrading to FDT 3.05 .......................................................................................127
vii

ii. Cautions

Renesas neither warrants nor grants licenses of any rights of Renesas’ or any third party’s patent, copyright, trademark, or other intellectual property rights for information contained in this document. Renesas bears no responsibility for problems that may arise with third party’s rights, including intellectual property rights, in connection with use of the information contained in this document.
Products and product specifications may be subject to change without notice. Confirm that you have received the latest product standards or specifications before final design, purchase or use.
Renesas makes every attempt to ensure that its products are of high quality and reliability. However, contact Renesas’ sales office before using the product in an application that demands especially high quality and reliability or where its failure or malfunction may directly threaten human life or cause risk of bodily injury, such as aerospace, aeronautics, nuclear power, combustion control, transportation, traffic, safety equipment or medical equipment for life support.
Design your application so that the product is used within the ranges guaranteed by Renesas particularly for maximum rating, operating supply voltage range, heat radiation characteristics, installation conditions and other characteristics. Renesas bears no responsibility for failure or damage when used beyond the guaranteed ranges. Even within the guaranteed ranges, consider normally foreseeable failure rates or failure modes in semiconductor devices and employ systemic measures such as fail-safes, so that the equipment incorporating Renesas product does not cause bodily injury, fire or other consequential damage due to operation of the Renesas product.
This product is not designed to be radiation resistant.
No one is permitted to reproduce or duplicate, in any form, the whole or part of this document without written approval from Renesas.
Contact Renesas’ sales office for any questions regarding this document or Renesas semiconductor products.
viii

iii. Preface

About this guide
This guide explains the use of the Renesas Flash Development Toolkit (hereafter referred to as FDT).
Chapter 1 , Introduction, provides a brief explanation to the tool and lists its key features.
Chapter 2 , System Overview, describes how the different facilities make up the FDTGraphical User Interface.
Chapter 3 , Using FDT, describes how FDT is activated and the FLASH ROM is written.
Chapter 4 , Wait For Script
Chapter 5 , Access Rights describes configuration of User Names and Passwords
Chapter 6 , Configuring the User Interface, provides a way to configure the FDT Graphical User Interface.
Chapter 7 , Menus, and Chapter 8 , Windows, give reference information about the operations and facilities available through these respective areas.
Chapter 9 , Simple Interface Mode, describes use of FDT with a cut-down Graphical User Interface.
Chapter 10 , Basic Simple Interface Mode, describes use of FDT with a cut-down Graphical User Interface without the need to setup a workspace and project.
Chapter 11 , Field Programming, describes use the Field Programming feature for publishing projects for other FDT users, and use of published projects.
Chapter 12 , E8 Update, describes how FDT updates the E8 firmware.
Chapter 13 , E8Direct describes how an E8 can be used as an E8Direct
Chapter 14 , QzROM Programming describes the programming of the new style of Renesas Flash
Chapter 15 describes notes about upgrading to FDT 3.05.
Assumptions
®
It is assumed that the reader is experienced in using Microsoft computers.
Windows® applications on PC-compatible
ix

iv. Abbreviations

Target / Device Refers to the programmable microcontroller or microcomputer that is connected to
DLL Dynamic Linked Library
FDT Flash Development Toolkit
®
Flexible Zero Turn-Around Time
F-ZTAT
QzROM One time programmable memory
HEW Renesas High-performance Embedded Workshop
PC Personal Computer
USB Universal Serial Bus 1.1 or above
FDM Flash Development Module (USB interface board)
UPB Universal Programming Board –
HMSE Hitachi Micro Systems Europe Ltd –
FCF Flash Configuration File – Used to store information about the device and flash
DDI Device Data Image – a hybrid S-Record file format used for storing data for a device
Kernel Code which takes control of the device and allows reprogramming functions. This
Micro Kernel The part of the kernel which gets executed first and allows initial configuration and
Main Kernel The part of the kernel which gets downloaded by the micro kernel and handles
E8 / E8USB This is a USB interface board. It supports programming over the single wire interface
the PC ready for programming.
Legacy HMSE interface board used with Protocol A (Legacy) kernels.
The former name of part of the Renesas Technology Europe Engineering Division.
characteristics
with multiple flash areas.
code is often downloaded to the device.
downloading of the main kernel.
downloading of additional modules (if required) to perform the read / write / blank check / erase functions etc.
and clock synchronous programming using the four wire interface.
x
FoUSB This is a USB interface board developed by RTA. It is used for Flash Programming
Field Programming ­Publishing
E8Direct A firmware update to the E8 (using the existing E8 hardware), designed to be as
and in-circuit debugging. This is currently not supported by FDT in the Asia region.
The ability to package all kernel and data files into a single file for simplified sending to another FDT user.
similar as possible to the FDM
xi

v. Document Conventions

This manual uses the following typographic conventions:
CONVENTION MEANING
[Menu->Menu Option] Bold text with ‘->’ is used to indicate menu options (for example,
‘dialog name’ The ‘’ is used to indicate the name of a dialog box or menu.
‘Filename.ext’ Bold Courier Font is used to indicate filenames.
“enter this string” Used to indicate text that must be entered (excluding the “”
Key+Key Used to indicate required key presses. For example. Ctrl+N
Â
(The “how to” symbol)
Table 1: Typographic Conventions
Windows® is a registered trademark of Microsoft Corporation.
F-ZTAT is a trademark of Renesas, Ltd.
[File->Save As...]).
quotes).
means press the Ctrl key and then, whilst holding the Ctrl key down, press the N key.
When this symbol is used, it is always located in the left-hand margin. It indicates that the text to its immediate right is describing “how to” do something.
xii

Chapter 1 Introduction

The Renesas Flash Development Toolkit (FDT) is an on-board FLASH programming tool for Renesas F-ZTAT microcomputers that provides a high-performance and user-friendly Graphical User Interface (GUI).
Embedded software development projects created using the Renesas High-performance Embedded Workshop (HEW) may be programmed into Renesas F-ZTAT devices using FDT.
FDT may also be used as a general purpose S-Record or Hex editor.

1.1 Key Features

- Standard window operation based on the 32-bit Windows® GUI.
- Various online help functions.
- Selectable messaging levels.
- Simple programming environment; optionally controls an adapter board.
- Serial communication.
- USB communications supported via USB Interface Boards.
- USB communications directly to selected target devices.
- Wait for Script File facility

1.2 New Features

FDT 3.05 has the following new features:-
- E8 Emulator firmware update feature
- Multiple flash areas in a single image (DDI)
- E8Direct for added device support using E8
- QzROM programming
- Generic Boot over USBDirect
- Internal\External clock switch support
1
2

Chapter 2 System Overview

FDT provides a method of programming, erasing and reading from Renesas Flash devices. Workspaces and Projects can be used in order to save the settings between sessions, for easy switching between different settings, and to allow experienced users to configure the settings for less experienced operators. FDT is designed to provide a common look and feel, independent of the actual device to be programmed.
FDT employs a hierarchical structure so that work can be organised in a logical manner. The top level of the structure is the workspace.
To be useful, the workspace must contain at least one project. In order to create a project, a workspace must be created first.
Each project specifies its own target device configuration (specified when creating the project) and set of target files (S-Record / Hex / Binary) that can be used to program the device.
The project settings for the target device connection need only be set once, as they can be stored between sessions by saving the Project.
A single project within the workspace is active at any point in time. The active project is the context to which all ‘Device’ Menu, ‘Project’ Menu and ‘Project’ Toolbar commands will be directed.
When a project has been created, target files can be added to it. These files may:
- Be used to program the device.
- Be used to build a Device Image.
- Be opened in the hex editor.
- Be marked as being destined for the User Boot Area (for devices which support this).
- Have their checksum calculated
- Have their data block usage displayed
When using a project it is possible to take advantage of the following FDT features:
- Advanced messaging levels.
- Device Image builder.
- Uploading data from the target device.
- Viewing uploaded data in big or little endian, or floating point representation.
- Simple Interface Mode – for simplifying the user interface once the project is configured.
- Automatic masking of non-Flash areas in files upon opening project open
- Automatic masking of reserved sections within Flash areas
3

2.1 User Interface

The FDT Graphical User Interface is a Windows® application that presents a work environment, which allows the user to program FLASH memory.
Menu Bar Tool Bar
Workspace
Active
Project
Additional
Project
Editor
window
Flash Properties window (Docked)
Workspace
window
Device Image
Figure 2-1 FDT Graphical User Interface
Title Bar
Status Bar
Files open
in Hex Editor
Hex Editor
Address Column
S-Record
Properties
Dialog
Output window
4

2.1.1 Menu bar

Commands are grouped into related areas on the Menu bar as indicated by the menu titles. Using the mouse the user can select a command operation, invoke a dialog box or a window to interact with the system. Clicking the left mouse button on a menu title will pull down that menu, from which a selection can be made.
If a menu item does not perform an action directly, but instead displays a dialog box or window for further user interaction, then its name is appended with an ellipsis (three dots, ...).
Figure 2-2 Menu Ellipsis
If a menu item can also be invoked by pressing a hot key (a combination of keys), then the hot key is displayed to the right of the item.
If a menu item toggles a feature ON or OFF then a check mark (9) will be displayed next to its text when it is ON:
Figure 2-3 Checked Menu Items
5
If a menu item has the symbol (8) next to it then a cascading or hierarchical menu is available. Clicking on the menu item will reveal the cascading menu:
Figure 2-4 Cascading Menus
Menus can also be selected directly from the keyboard by pressing the ALT key followed by the corresponding key of the underlined letter or number for the menu item that the user wants to select, e.g. press ALT+F, S in sequence to Save the active file ([F
ile->Save]).

2.1.2 Toolbars

FDT has several toolbars located below the Menu bar. This provides quick access to FDT features by clicking the respective button with the mouse.
Figure 2-5 FDT Toolbars
The buttons on each toolbar are arranged in associated groups.
To find out the function of the button, move the mouse over the button and a hint will be displayed next to the button and in the status bar.
The toolbar buttons can be customised to provide a button for the majority of the features available in FDT and can be arranged in an order that the user finds convenient.
For more details about changing the arrangement of the toolbar buttons and a detailed description of each button’s function, see Chapter 6 .
6
Edit toolbar
Save File Cut Copy Paste Open an S-Record
Save File – saves the active file.
Cut – cuts data to the clipboard.
Copy – copies data to the clipboard.
Paste – pastes data from the clipboard.
Open an S-Record – Opens an S-Record or data file.
Figure 2-6 Edit Toolbar
7
FDT toolbar
Connect Disconnect Erase Blocks Blank Check Upload Download Active File Checksum Go from Address Cancel Configure Flash Project
Figure 2-7 FDT Toolbar
Connect - connects the device to the interface.
Disconnect - disconnects the device from the interface.
Erase Blocks - launches the ‘Erase Block’ dialog box to erase all or individual blocks of the device FLASH memory.
Blank Check - checks whether or not the FLASH section of the target device is blank.
Upload - launches the ‘Upload Image’ dialog box to allow data to be obtained from the target device.
Download Active File - downloads the file which is active in the hex editor.
Checksum – returns a checksum of the data in the FLASH.
Go from Address – launches a dialog to select the address to execute from.
Cancel – Cancels the current FLASH operation.
Configure Flash Project - launches the ‘Project Properties’ dialog box (or the Project Wizard if the
project is not yet configured).
8
S Record toolbar
View as Bytes
View as Words
View as DWords
Align view to 8 bytes
Toggle ASCII
Find
Find and Replace
Create Selection
Fill Selection
Properties
Figure 2-8 S Record Toolbar
View as Bytes - view the file data as 8 bit bytes.
View as Words - view the file data as 16 bit words.
View as DWords - view the file data as 32 bit double words.
Align view to 8 bytes - data is displayed on each line as 8 bytes. The number of bytes that can be
accommodated on each line is dependent upon the size of the window.
Toggle ASCII - turns ASCII data ON or OFF
Find - launches the ‘Find’ dialog box.
Find and Replace - launches the ‘Replace’ dialog box.
Create Selection - selects a block of the specified size in the active file.
Fill selection - launches the ‘Fill’ dialog box.
Properties – launches a dialog with information about the active file.
9
QzROM toolbar
Automatic Protection
Query Protection
No Protection
Figure 2-9 QzROM Toolbar
Automatic Protection – Set QzROM security protection automatically on disconnect.
Query Protection – Ask the user whether to set QzROM security protection on disconnect.
No Protection – Never set QzROM security protection on disconnect.
NB – setting the protection will stop any further connections to that particular target device
Search toolbar
Find in Files Data Find Find Next Find Previous
Figure 2-10 Search Toolbar
Find in Files – finds selected data in selected files.
Data – is used for the searches.
Find – locates data in active file.
Find Next – locates next occurrence of search criteria.
Find Previous - locates previous occurrence of search criteria.

2.1.3 Status Bar

The Status Bar is located at the bottom of the FDT application window. It provides the user with information about what the application is doing.
The left section of the Status Bar describes the action of the Toolbar items as the mouse arrow is positioned over a button, as well as displaying operation status information.
10
When an action is being performed, a progress bar is displayed to show the progress of the current operation.
The last section of the bar indicates the state of the toggling keyboard keys such as the Caps Lock, Insert and Number Lock keys.

2.1.4 Pop-up menus

Many windows have local pop-up menus in order to make commonly used features easier to access. These menus are invoked by clicking the right mouse button in the window (or pressing SHIFT+F10) and then selecting the required menu option. An example pop-up menu is:
Figure 2-11 Pop-up Menu
The contents and operation of specific pop-up menus are explained in detail in the description of each FDT window, see the Chapter 8 , Windows.

2.2 Help

FDT has a standard Windows® help system. This provides on-line information for using the system.
Help can be invoked by pressing the F1 key or via the Help menu.
11

2.3 Hot Keys

There are various hot keys for frequently used operations. These are as follows by category:-
Description
Help
Help F1
File Commands
C
Open S-R
Save Al
ave Ctrl+S
S
Ex
Edit Commands
U
R
Cut
C
aste Ctrl+V
P
Select A
ind Ctrl+F
F
Find I
Re
Tools Commands
Login Ctrl+Shift+U
Simple Interface Commands
Login Ctrl+Shift+U
View
Work
Ou
Window
View as A
View as B
View as W
View as D
Align to 8
Hot Key
lose File Ctrl+F4
ecord Ctrl+R
l Ctrl+Shift+H
it Alt+F4
ndo Ctrl+Z
edo Ctrl+Y
Ctrl+X
opy Ctrl+C
ll Ctrl+A
n Files F4
place Ctrl+H
space Alt+K
tput Alt+U
SCII Alt+A
ytes Alt+1
ord Alt+2
word Alt+4
Bytes Alt+8
12
Description
Hot Key
Device
onnect Ctrl+Alt+C
C
rase Flash Blocks Ctrl+Alt+E
E
lank Check Ctrl+Alt+B
B
pload Image Ctrl+Alt+U
U
oad Active File Ctrl+Alt+P
Downl
Flash Checks
o From Address Ctrl+Alt+G
G
Can
Configure Flash P
um Ctrl+Alt+S
cel Operation Ctrl+Break
roject Alt+Shift+R
Data File
Suppress request to save changes to a
Hold Shift key when closing data file data file when closing it (do not save changes)
13
14
Loading...
+ 117 hidden pages