Home
Renesas FLASH Development Toolkit 3.07 Computer Hardware User Manual
Contents
1. cancel Operation Ctrl Break Z Configure Flash Project Alt Shift R Figure 15 2 Menu Entry Each erase block that supports the feature can be locked and unlocked individually Note an unlock can only be performed by erasing the block However the setting will have no effect until disconnecting to the device The lock status of each erase block can be set automatically at disconnect by FDT 121 15 2 Connection If FDT is connecting to a device that supports the locking feature it will check the current locked state of each erase block that has a corresponding lock bit as defined in the project configuration file Then depending on the current connection setting selectable from the Locking Dialog see section 15 3 FDT will do one of three things 1 Automatically Disable Locks FDT will automatically disable the locking of device on connection This will allow all blocks on the device to be written or erased whether they are currently locked or not 2 Query User FDT will ask the user what to do about the locking of device on connection Flash Development Toolkit x 9 The device reports one or more erase blocks are currently locked N jJ Should FOT temporarily disable this locking to allow erase and program Yes No Figure 15 3 Query on Connection Message If Yes is clicked then the master lock bit will be disabled as in 1 If No is selected then the locking settings will be left alo
2. Figure 8 16 Output Window The window has available pop up menu that contains the following items 8 7 1 Copy Copies any selected text to the clipboard 8 7 2 Clear Window This will clear the Output window 8 7 3 Save Allows the contents of the window to be saved to a text file A Save Dialog will appear to specify the intended file location 90 8 7 4 Allow Docking With this option checked the Output window is capable of being docked within the FDT application window With the option unchecked the Output window is a floating window 8 7 5 Hide Invoking Hide conceals the output window It is restored by View gt Output Note the output window will not log messages indefinitely The current default is 500 lines of text after which older messages will be purged 8 8 Hex Editor Window The Hex Editor window is one of the main windows contained in the FDT GUL It is used to display file contents or target uploads within FDT There are several ways of opening a file within the editor e double click on a project file from the Workspace view e double click on an EDT file type from Windows Explorer e drag and drop a file from Windows Explorer onto the editor space e choose Open an S record from the File menu or toolbar icon e upload data from a target device Industrial Controller ddi 0x00000178 00090000 FE FE FE vyeyvvey 0 000 0013 FF FF FF FF FF FF FE FF irpa ayy yan yyy yyy yy 00000026 FE
3. The Toolkit will display verbose messages whenever it is Guest Figure 3 7 Programming Options 3 4 7 FDM E8Direct Pin Settings Only if the FDM or E8Direct is selected Select the Operating Mode and Clock Mode and if User Defined set the pin settings For Boot Mode projects set the Boot Mode Outputs and the Boot Mode Setting for the required mode for User Mode projects set the User Mode Outputs User Mode Setting and the User Program Mode Setting for the required mode Click the Next button to continue Mode Outputs sets which pins are driven Mode Setting sets whether output pins are driven High checked or Low Unchecked Notes Setting the mode pins using the FDM or E8Direct requires caution Please confirm the pin settings with the hardware manual even if a default setting is available Should you be using the E8Direct then a message box will also appear requesting confirmation of this warning Note that in some devices changing the mode pin setting changes the maximum supply voltage 25 26 FDM Pin Settings x Please select the pin settings tor the FOM BOOT Mode using Clock Mode nove z oare TEIR 7 Px SCK MD4 MOS MD2 MDI MOO K BOOT Mode leo CN A T fe iy Target Hez Outputs 24 Drive mol BOOT Mode l 2 aaa aa ao algo coloured pins are clock mode pins _ EE cea Figure 3 8 FDM Pin Settings Pin Se
4. 108 11 1 8 Field Programming gt Run Published File L kk 108 ji A 108 111 2 gt Dialog Control TTT 109 11 231 Back to Project A Kan ek W n a Rab a ke RN Wer AKAN B k 109 Hi DED HAG DN r n ga 109 11 2 3 Download Project image radio button ekere kek ke n 109 11 24 Program Flash VETAS vinotinto 109 LAR DISCO ri AA AAA AE 109 Chapter 12 E8 Update iii 111 Chapter 13 gt ES Dire Eliana asii 113 13 1 Firmware and Device TD nanasi iii rn 113 13 2 3 Hardware Diflerences ATAR ERA KA HA KAN 115 Chapter 14 QzROM Programming sss ce s sees eee eee eee eee eee 117 EAT RESELVE NATA A o a 117 EAS SAS AAA O OO 118 14 2 Toolbar NO 119 LADOS 119 14 2 3 Simple Interface Basic Mode adar EVO dE Kak Ed TS4 2 120 Chapter 15 Locas a T T 121 DS O A A O NON 121 15 2 Connection 422 15 3 Locking Dialog 123 15 4 DISCOMMECHON rial sand na edi es ed e 125 Chapter 16 Upgrading to FDTS3 07 554554 y32x1 1255y r NANA Eek en ne k 127 1 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
5. output FDT will output a message on the active project tab Example Alert output Please make sure the board is connected 4 5 12 Pause Description this command will pause script file execution for the specified number of milliseconds Arguments Number of milliseconds to pause for Example Pause 2000 4 5 13 Delete Description deletes the script file NB FDT will process the script no further than this line before deleting it Arguments Example Delete script 53 4 5 14 Move Copy Description move or copy the script file NB FDT will process the script no further than this line Arguments Copy move rename this script file lt filename gt Required The file directory the source file is to be copied moved renamed lt directory gt to Example Move script server networkfiles done txt Copy script C backups 4 5 15 Abort Description stop processing the script and return failure NB This command is primarily designed to be used in an error processing script Arguments NONE AAA 33 Example Abort 54 4 6 Wait For Script Example Script File What follows is an example of how a script file for FDT may look This highlights some of the available commands and gives an idea of how they might be used H EXAMPLE SCRIPT FILE open this workspace and associated project H for which the flash project wizard must have completed successfully workspace C Workspaces 22
6. 7 2 6 Select All 7 2 7 Find 7 2 8 Find In Files F A A TS 67 E A RN 67 TEA AA A A Ka 67 IA A A T cere AE 67 7 4 Project Menu 67 7 4 1 Set Current Project 7 42 Insert Project 67 2k34 Add NO 67 PAA Remoy I E E eee seek Ser elated na ele ele ae ETE e a ea a lee a 67 LAS Fil EXtENSI ONS ay Au wak lal K lak eii A aa 67 45 14 Fil Extensions TS T 4 i225 lar kee ee ee de 68 RAS 2 File Extensions Modifye el n l Res Ne K Ne N Ver DE vette Dev PA l 69 LAOS Rebuild IMA xc li yey ke ke ke SA 69 DAE DownloadImMagey ii SAS AAA 69 b Field Pro E 69 Usd GROOMS AAA RT a a a an 70 TL AMS 15 Tol is 70 TZ CUSTOMS Esa aa 70 S OPONE ds iat te la del 70 TDA A A E ON 70 LOD Simple AAA RN 70 TSO Walt O ON 70 PIE gt ACCESS RISKS aa a a a Mie ees 70 TIT Ls ACCESS Rights T 70 7 5 7 2 Access Rights Change Password asses 70 7 5 7 3 Access Rights Administration 70 7 6 Window Menu cece esse eee essences ach 7 6 1 Cascade j 71 26 2 E HoriZontally lt y 54 454 444 y tasinan eenaa AA KE MEME ARA k aA Ae kak ke KA Keve er 71 PO Sy Tile Vertical isis aerea disnei 71 POA Arrange COS A Seed E Ke EAEAN 71 EOD Close AM lt 5 4 45 0154 2044 In vee sung tdi enan xas Kese S K e net KAK 71 ARTS 1 T OS e a ke Kaka eu a Hen ea a Na ak S aa SK ana N N 11 O AAA ke cer KEREN en KE MEHE KE
7. 8 8 11 Find This will launch the Find dialog box allowing the user to enter either hexadecimal or ASCII data The scope of the search is limited to the data within the active file in the Editor window If a match is found the Editor window is updated to display the found data 8 8 12 Replace This will launch the Replace dialog box allowing the user to enter either the hexadecimal or ASCII data to be found and the replacement data in the same format The scope of the search is limited to the data within the active file in the Editor window If a match is found the Editor window is updated to display the found data click on the now enabled Replace button to replace the data 8 8 13 Properties Launches the S Record Properties dialog box 8 8 14 Add to Active Project Adds the file to the active project This menu item will be disabled if the file is already added to the project 93 8 8 15 Data EntryNote When entering data in the Find Replace or Fill dialog boxes only hexadecimal or ASCII values can be used based on the ASCII Search check box When entering hexadecimal values a preceding Ox is fixed in the entry text box so hexadecimal values are appended 8 8 16 Goto Address Double clicking on the address column displays the Goto Address dialog This allows entry of a hex address to set the hex editor cursor position to Note that this is entirely different to the similarly na
8. Configuration BOOT Mode connection using emulated interface Opening port E8 Checking for E8 update Adaptor checksum OK Processing Data file c FDT ADPFiles E8 Rel Img mot Adaptor version number OK current E8 Bootstub Level 0 version 2 00 00 000 FDT holds version 2 00 00 000 FDT requires version 2 00 XX XXX Adaptor version type OK current type E8EMULATOR Processing Data file c FDT ADPFiles E8 Rel Img mot Mismatched Adaptor Software Level 1 version number found current E8 version 1 02 01 005 FDT holds version 1 06 00 000 FDT requires version 1 06 XX XXX FLASH Development Toolkit xl FDT will now update the E8 firmware to a newer version to allow connection to this device lt current Adaptor Software Level 1 version 1 02 01 005 new version 1 06 00 000 Chick OK to continue eT Update selected Adaptor update started do not unplug Processing Data file c FDT ADPFiles MonpMain mot Adaptor update program downloaded Processing Data file c FDT ADPFiles AdpErase mot Adaptor erased Processing Data file c FDT ADPFiles AdpWrite mot Updating Adaptor updated successfully lt Connection continues gt 112 Chapter 13 E8Direct The E8 is an existing USB interface board which has been used to implement the communications protocol for programming R8C and M16C devices Originally this did not support a low level interface allowing its use
9. Na 90 9 4 2 Clear Windows iy ba E A 90 OLB lt O diy sela yen cis Gerdi PE VE abe KEN DE HIR EKA E pen VE Ee K HERA RE ea se D eee 90 STA Allow DOC ki b53ly lk ayly 541y ES 91 S d HIVE eet MAN isa NN 91 Hex Editor Window 4 391 8 8 1 Cut 92 8 8 2 Copy B 8 8 3 Paste 92 8 8 4 Undo 92 8 8 5 Redo 92 8 8 6 Display Unit 3593 8 8 7 Align to 8 Bytes 8 8 8 Toggle ASCH Col a a aes 93 8 8 9 Create SCLC A O 93 A A AAN 93 SSL Te A A ii 93 382127 Replace a id da 93 8 8 13 A A A A AAR 93 8 58 12 Addilo Acfiye Project ia 93 9 89 15 Data Entry Note costs idear isis dilo 94 8 8 16 Goto Address 1 94 8 9 Customise Toolbars 94 8 9 1 Show Tooltips 94 8 9 2 New 94 3 9 3 RGG nyn 95 8 9 4 Toolbar name 95 SIS lt LOK aad 95 8 9 6 Delete P SAO Customise M A A 96 Chapter 9 Simple Interface Mode sss sse 99 E IA AR HH HHHNREe 100 QM VEO SIN aii ude RN 100 9 1 2 BatehiBrase Mode 355 55 5 5 5x 5 452 455544s5054046 e AAA ke d e devon a A 100 0 O A ANO 100 951 47 Readback Verify coria ion nea asia 100 DAS o Request CHECKSUM sage A AAA ae 100 9 1 6 Erase Device Before Program coocnonicnncnnonononaninoncnnnnnnncanananacananncnnononncnn sa H ka nez 100 G N SCCULITY S e LTTE 100 9 1 8 Field Programming gt Run Published File 0 sese 100 G ADOUUS 2 sists deeded A A DD DN 100 92 Dialog Controls a
10. especially with respect to the maximum rating operating supply voltage range movement power voltage range heat radiation characteristics installation and other product characteristics Renesas shall have no liability for malfunctions or damages arising out of the use of Renesas products beyond such specified ranges 10 Although Renesas endeavors to improve the quality and reliability of its products IC products have specific characteristics such as the occurrence of failure at a certain rate and malfunctions under certain use conditions Please be sure to implement safety measures to guard against the possibility of physical injury and injury or damage caused by fire in the event of the failure of a Renesas 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 applicable measures Among others since the evaluation of microcomputer software alone is very difficult please evaluate the safety of the final products or system manufactured by you 11 In case Renesas products listed in this document are detached from the products to which the Renesas products are attached or affixed the risk of accident such as swallowing by infants and small children is very high You should implement safety measures so that Renesas products may not be easily detached from your products Renesas shall have no liability for damage
11. target files can be added to it These files may s Be used to program the device e Be used to build a Device Image e Be opened in the hex editor e Be marked as being destined for the User Boot Area for devices which support this e Have their checksum calculated e Have their data block usage displayed e Be compared against the data already programmed to the device When using a project it is possible to take advantage of the following FDT features e Advanced messaging levels e Device Image builder e Uploading data from the target device e Viewing uploaded data in big or little endian or floating point representation e Simple Interface Mode for simplifying the user interface once the project is configured e Automatic masking of non Flash areas in files upon opening project open e Automatic masking of reserved sections within Flash areas 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 Workspace Device Image i gt Tool Be 7a Files open in Hex Editor Hex Editor Address Column Additional Project Editor window Flash Properties window Docked Figure 2 1 FDT Graphical User Interface 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 bo
12. 54 4 6 Wait For Script Example Script File LLLEmEm nenere keke keke keke kek r ke keke 55 4 7 Wait For Script Status File Format k l l d be keskek KEVE EE i TOTES 56 Chapter5 Access Rights bilyan dindik n Ha dikar e n de kek k ee yewe KESR H ya 57 5 1 Access RightsOverview 7 5 2 Enabling Access Rights ses OT 5 3 Access Rights Administration J 57 5 3 1 Disable Al 158 5 3 2 Modify User 158 5 3 3 Add User 158 5 3 4 Delete User 5 3 5 Reset Pwd DO CO td e YA WA EE OY ESE Ry 59 Chapter 6 Configuring the User Interface sees 61 6 1 Arran ding WIDdOWS sayin Gen AAA ia 61 GLI MIS ME WindOWS 45 553054 eee AR ad 61 651 2 Bili 8 Wind OWS Ss cs Ke v De EN E HE NEKE DS 61 6 13 AS A ANN 61 6 2 Locating Currently Open Windows sss 61 6 2 1 Locating a specific Wi id 61 6 3 Enabling disabling the Toolbar sss esse 62 6 4 Enabling disabling the Workspace WImdOW sese esse eee eee 62 6 5 Enabling disabling the Output Window 62 6 6 Customising the Toolbar 63 GOL Toolbars 1 AAA AAA Ad 63 Chapter T MedUS ti mm 65 7 1 File Menu 7 1 1 Close 7 1 2 New Workspace 7 1 3 Open Workspace 7 1 4 Save Workspace 7 1 5 Close Workspace 7 1 6 Open an S Record 7 1 7 Save 7 1 8 Save As 7 1 9 Exit 7 2 Edit Menu 7 2 1 Undo 7 2 2 Redo 7 2 3 Cut 7 2 4 Copy 7 2 5 Paste
13. 7 4 7 Download Image Downloads the image built by a Rebuild Image If the image is out of date i e source files have changed then FDT will offer to rebuild before the download occurs 7 4 8 Field Programming Publish Create a single fpf file which contains all kernel and data files to send to another FDT user Run Published File Unpackage a fpf file and use it in Simple Interface Mode See Chapter 11 Field Programming for more details 69 75 Tools Menu The Tools menu is used to launch additional FDT features which are not related to either projects or target devices 7 5 1 Administration This displays a dialog with the tools available to the user under different categories 7 5 2 Customise This allows the user to customise FDT and is covered in more detail in section 8 9Customise Toolbars 7 5 3 Options Allows access to additional features some of which are reserved for future enhancements The workspace tab is the most useful tab as it allows the user to specify options such as whether to open the last workspace at start up whether to prompt before saving workspaces and sessions and the default directory for new workspaces 7 5 4 Format Views This allows the user to change the appearance of different windows 7 5 5 Simple Interface Simplifies the appearance of FDT For more details see section Chapter 9 7 5 6 Wait For Script This allows creation editing or running of a Wait For Scri
14. FF FF FF FF FF FF PPP AV ITA VIVA 00000035 FE FE FE FE FE FE FE SUPUVV IV UV V UV UV YY 00000040 FE FE FE FF FE FE FE UFI IV IU V PV Y PV OY 2000005 FF FE FF FF FF FF FF b 44 4 4 4 4 4 4 44 4 4 44l FE FE FE FE FE COPTER FE FE FF FF FF FF FF FF FF FF FE FE FE FE FE FF FF FE FE FE FF FE FE FE FE FE FF SS 55 55 s 55 55 55 55 ss 55 55 55 55 00000114 55 55 55 55 55 00000130 Ss 55 55 SS SS 00000143 5S 5S 5S 6S SS 00000156 55 55 55 55 55 55 55 55 55 SS ss 55 ss ss SS 55 55 55 55 55 A 55 55 55 55 55 Pm KER 55 55 55 SS a 55 55 55 55 55 55 oe 55 55 55 55 55 55 55 Ex Replace 5S ss 55 ss 55 55 SS E 00000201 55 55 55 55 55 55 55 Properties 00000214 55 56 55 55 55 56 55 55 derz Ko XOPAN NO S 00000227 56 55 55 55 SS SS SS SS Babee ARI A 0000023 55 55 55 55 55 55 55 00000244 ss s 55 55 55 SS 55 55 55 55 55 55 55 SS UUUUUUUUUUUUUUUUUUU ERA ET S ES a E 55 55 55 55 55 55 SS UUUUVUUJUVUJUUJUUUJUUUJ 55 55 55 55 55 55 55 55 UUUUUUUJUUUJUUUJUUUJUUUJ Figure 8 17 Hex Editor Window The window will have one or more tabs along the bottom of the view each of which will correspond to a flash area on the target device for the project Each tab will be set to the address range of that flash area and will show the data that corresponds to that area DDI files and uploads via blocks are capable of adding into 91 multiple tabs simultaneously Normal S record and binary files and uploads via address will only have data f
15. Find dialog box allowing the user to enter either hexadecimal or ASCII data The scope of the search is bounded by the area selected for the active file in the Editor window If a match is found the Editor window is updated to display the found data 66 7 2 8 Find In Files This launches a dialog to allow data to be located in files external to the active file 7 2 9 Replace This will launch the Replace dialog box allowing the user to enter either the hexadecimal or ASCII data to be found and the replacement data in the same format The scope of the search is bounded by the area selected for the active file in the Editor window If a match is found the Editor window is updated to display the found data click on the now enabled Replace button to replace the data 7 3 View Menu The View menu is used to display or remove FDT GUI features such as the Workspace and Output Windows 7 3 1 Workspace Displays the Workspacewindow 7 3 2 Output Displays the Output window 7 4 Project Menu The Project menu provides high level control and facilities for projects within the workspace 7 4 1 Set Current Project This option allows the user to select the active project where there are multiple projects in the workspace 7 4 2 Insert Project This option allows the user to create a new project and add it to the workspace 7 4 3 Add Files Launches the Open dialog box allowing the user to add dat
16. Interface 99 9 1 Options Menu 9 1 1 Login This allows changing of which user is logged in to FDT The hotkey Ctrl Shift U also invokes the Login dialog 9 1 2 Batch Erase Mode This will change the dialog to be erase based rather than programming based The Program Flash button will change to Erase the filelimage selection buttons will be disabled and the programming options will also be disabled Clicking Erase will erase the whole device it is not possible to specify the area to erase 9 1 3 AutoDisconnect This forces FDT to automatically disconnect after programming or erase if in Batch Erase Mode so that the user does not need to press the Disconnect button 9 1 4 Readback Verify This option controls whether FDT automatically performs a read and compare operation after programming The default setting is taken from the project setting Readback Verification on the Programmer tab of the Project Properties window but the user can override the default by selecting this menu item 9 1 5 Request Checksum This option controls whether FDT automatically performs a checksum request operation after programming The setting is remembered between sessions 9 1 6 Erase Device Before Program This option controls whether FDT automatically performs an erase operation before programming the device This will erase all blocks in all memory areas prior to programming The setting is remembered between s
17. Lock Bit commands e Support for R8C 2x Blank Check embedded function e BPS synchronous selection support for QZ ROM e Display Clock Frequency CKM CKP in output Window e SH2A Data Mat Support 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 toprogram 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
18. 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 Open UploadO0 MOT Add Files INS Remove Files iv Allow Docking Hide Properties Display Block Usage Exclude Upload MOT User Boot Flash Download File to User Area File Checksum Compare File gt Device Checksum Compare File gt Device Complete Device Compare File gt Device File Data Only 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 EDT 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 10 2 3 Hot Keys There are various hot keys for frequently used operations These are as follows by category Description Hot Key Help Help F1 File Commands Close File Ctrl F4 Open S Record Ctrl R Save All Ctrl Shift H Save Ctrl S Exit Al
19. access see Chapter 5 for details 11 2 3 Download Project image radio button This will be disabled if the user currently logged in to FDT does not have the SimpleInterface Download Project Image access see Chapter 5 for details 11 2 4 Program Flash Erase Clicking on Program Flash allows FDT to download the specified file or image to the FLASH memory Additionally if Readback Verify is switched off the Checksum will also be calculated and output to the screen If in Batch Erase mode this button will switch to Erase and will perform an entire device erase 11 2 5 Disconnect Clicking on Disconnect forces FDT to disconnect 109 110 Chapter 12 E8 Update When connecting to an E8 interface adaptor board FDT will check that the E8 firmware adaptor software is the correct version and correct type for supporting the connection to the selected device If there is a mismatch then FDT will offer to update the E8 firmware in order that the connection can be continued Also if the ES Adaptor checksum is incorrect an update will be required Note that in some cases an update to an earlier version number may be required if the current version does not support the selected device It is very important that the E8 is not unplugged during the update process because this could result in the ES being left in an erased state NOTE The E8 has two firmware areas a Level 0 and a Level 1 the Bootstub and Adaptor Softwar
20. be created or overwritten if necessary If not needed specify none lt start address gt tart address in Hex to start the upload from Number of bytes in Hex to upload noabsolute Don t upload an absolute image pload from the user boot area or the data area if supported Example upload none 0 0x6000 upload c upload uploadtest mot 0x 100 0x200 userboot noabsolute 4 5 7 Checksum Description perform a checksum on a device Arguments Checksum the device Example Checksum device 4 5 8 Disconnect Description disconnect from a device Note that issuing of a disconnect command even if FDT is not connected is allowed This can be useful for ensuring that FDT is disconnected before a connect operation Arguments Tells FDT to perform a reset as part of the disconnect Example Disconnect Disconnect reset 4 5 9 RebuildImage Description rebuild the specified image from the project target files Arguments Rebuild the user image One of Rebuild the user boot image Rebuild the user and user boot image Example RebuildImage user RebuildImage both 4 5 10 Comment Description placed at the start of a line this symbol comments out the rest of the line Arguments NONE WE a Example this is my commented line 52 4 5 11 Alert Description indicate to the user that something has happened Arguments Required FDT will output a warning beep One of
21. be in User Program Mode at the point of programming and erasing and if using the FDM can reset the device into User Mode to execute the programmed code on disconnection 3 2 4 What are Protocol A Protocol B Protocol C and Protocol D Kernels Protocol A For some 0 8m 0 6um and 0 35um flash devices using FDT 1 5 style kernels These are legacy kernels that are not supported and not included in the FDT installer Protocol A kernels are not available in the Japanese versions of FDT Protocol A kernels support use of the UPB but not the FDM The kernel needs to be rebuilt for different crystal frequencies in Boot and User Modes and for changing the PMODE pin if using the UPB Please refer to the documentation supplied with the kernels for additional information Protocol B For 0 35 m devices These support the FDM but not the UPB Boot Mode The kernel made up of the Boot Mode Micro Kernel Boot Mode Main Kernel and the Write and Erase modules is held on the PC and downloaded as required The Boot Mode kernel does not need to be rebuilt for different crystal frequencies this information is stored in the FDT project and downloaded at runtime and initial communication is achieved by the autobaud where FDT sends 0x00 data until the device synchronises with it 14 User Mode The User Mode Test Program and User Mode Micro Kernel need to be already programmed and executing on the device The initial
22. button will remove the new toolbar from the list and from the GUI 95 8 10 Customise Menu Invoked by Tools gt Customise and then select the Menu tab in the Customise dialog box CI 319 Toolbars Menu Application wide tools Name Version Workspace wide tools Name Version Add OK Figure 8 19 Customise Menu Dialog gt To add a new menu option 1 A N W K w 96 Select Tools gt Customise The dialog shown above will be displayed Select the Menu tab The first thing for you to decide is whether you are adding a global application wide tool Application wide tools which will be available to all of your workspaces Or whether you wish to add a workspace wide tool Workspace wide tools which is only valid for the current workspace Once you have made the choice choose the relevant section of the dialog Click the Add button If you would like to add an existing system tool to the menu then select the Select from existing system tools radio button choose the tool from the drop down list and then click OK Alternatively if you would like to add a tool of your own then follow the remaining steps Enter the name of the tool into the Name field Enter the command excluding arguments into the Command field Enter any arguments that you would like to pass to the command into the Arguments field Enter an initi
23. containing the file name at the bottom of the Editor window If the window is not minimised it will be brought to the front of the display If it is minimised the minimised icon will be brought to the front of the display 6 3 Enabling disabling the Toolbar The user has the option to enable or disable the Toolbar By default the Toolbar is displayed at the top of the FDT application window To disable the display of the Toolbar select each of the displayed toolbars and disable their view To display or disable toolbars use the Tools gt Customise menu option or Right Click on the Toolbar area 6 4 Enabling disabling the Workspace Window The user has the option to enable or disable the Workspace By default the Workspace is displayed To disable display of the Workspace select the View gt Workspace menu option Tf the disable option is selected the Workspace will be disabled and removed from the FDT application window display To re enable the Workspace display select the View gt Workspace menu option again The Workspace will be enabled and added to the FDT application window display and the menu option checked 6 5 Enabling disabling the Output Window The user has the option to enable or disable the Output Window By default the Output Window is displayed To disable display of the Output Window select the View gt Output menu option If the disable option is selected the Output Window will be disabled and removed
24. control laws and regulations and procedures required by such laws and regulations 4 All information included in this document such as product data diagrams charts programs algorithms and application circuit examples 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 products listed in this document please confirm the latest product information with a Renesas sales office Also please pay regular and careful attention to additional and different information to be disclosed by Renesas such as that disclosed through our website http www renesas com 5 Renesas has used reasonable care in compiling the information included in this document but Renesas assumes no liability whatsoever for any damages incurred as a result of errors or omissions in the information included in this document 6 When using or otherwise relying on the information in this document you should evaluate the information in light of the total system before deciding about the applicability of such information to the intended application Renesas makes no representations warranties or guaranties regarding the suitability of its products for any particular application and specifically disclaims any liability arising out of the application and use of the information in this document or Renesas products 7 With the exception of products specified by Renesas as sui
25. d Display Hal internal clock y Devic r Image ES Target files Enter the CPU crystal frequency 3 LCD mot for the selected device Keyboard 5 Comms mot Enter the clock mode for the NONE selected device L Device Image P ire Select the multiplier f i hs gt bat plier for the Main 1 y Drive n9 clock frequency CKM 2 Data mot E aaoi Tun m Select the multiplier for the Y Peripheral clock frequency CKP a Figure 3 5 Device Settings Supplementary 1 Clock Setting Allow selection of the device external clock default or one or more of the device internal clock speeds CPU Crystal Frequency Enter the frequency of the CPU clock or the crystal generator This can be specified up to 4 decimal places The target device the kernel and the Clock Mode determine the valid range Clock Mode If enabled select the required value from the drop down list Multiplier for CKM If enabled select the input clock multiplier for the master system clock The available options depend upon the target device the kernel and the Clock Mode Multiplier for CKP If enabled select the input clock multiplier for the peripheral clock The available options depend upon the target device the kernel and the Clock Mode Note To enter the clock mode input clock and multipliers refer to the device hardware manual and or the target board manual to confirm the values required 23 3 4 5 Connection Type Sele
26. erase during connections in User Mode It is not possible to reprogram the FLASH whilst the reprogramming code is executing from the FLASH so all of the kernel modules needed to keep the connection to FDT are copied into the RAM to leave the FLASH ROM available for reprogramming Because of this it is possible to erase the entire flash and reprogram it in user mode but note that if the device is reset after erasure and before it is reprogrammed it will not be possible to reconnect in User Mode until the device has had the User Mode Micro Kernel and User Mode Test Program reprogrammed into it Boot Mode 16 3 2 9 Can I modify the User Mode kernels to work for a different clock frequency It is recommended that the original kernel is copied to another directory and that this copy is edited thus leaving the original kernel unmodified When using the kernel for the first time you will need to browse to the alternate location to find the fcf file The User Mode kernels need to be rebuilt if a different clock frequency is going to be used The initial Bit Rate Register value is held in the gentest h file and is compiled into the User Mode Test Program this allows the kernel initialise the serial communications interface to 9600 baud If the clock frequency changes from the default supplied value the initial Bit Rate Register setting in gentest h normally MA_BRR_SCI or MA_BRR_SCI1 will need to be modified and the kernel recompiled Refer
27. has security protection After protection attempts to start the target MCU for connection can result in an error status i e further reads from or writes to the device are not possible Blank check QZROM has a Blank check command whereas other Protocol D devices don t If Device Protection is set to Automatic or Interactive FDT will use this to check the device write state before programming FDT is aware of QZROM based on the device that is configured for the project 14 1 Reserved Areas QzROM introduces the concept of reserved areas into FDT for example the M37545G4 has an 8 byte reserved area within the ROM A reserved area is a defined area of Flash that FDT will not read write or blank check Within the Hex Editor these reserved areas are shown as a series of characters userarea MOT 0x0000f 0d 0000f Z 02 uuuuuuuuuuu 0000ff418 uuuuuuumuuuu 0000ff23 uuumuuuuuuuu 0000ff2e uuuuuuuuuuu 00001439 uuuuuuuuuuu D000ff44 uuuuuuuuuuu 0U000ff44f quuuuuuuuuu 0000ffSs Mumuuuuuuuu 0000ff 65 uuuuuuuuuu u D000f 70 Muumuuuumuuuu 0000ff7b uquuuuuumuuu 0000ff486 MULA UU Aa DO000ff91 uquuuuuuuuuu 0000f f 9c uquuuuuumuuuu D000f fa guuuuuuuuuu 0000ffb2 Muuuyuuuuuuu 0000f fbad C 7 uuuuuuuuuuu D000f fcs dauuuuuuuuu Muuuuuuuuuu Muuuuuuuuu Figure 14 1 Hex Editor view of Reserved Area Any attempt to type or copy data etc into these areas will be ignored as will attempts to copy data ou
28. information Lock State At Connection E 9 XAMIOOAA A User Flash Q Esa i EB amp EBS Unlecked at ERS Connect Q EBs Di EB3 1 EB2 Locked at Connect U EBI Figure 15 5 State Al Disconnect Locked at disconnect Locked Unlocked Locked Unlocked Leched Unlocked at Unlocked 4 Urfocked disconnect Unlocked Unlocked Does not support locking Lock State Tree View Settings 123 Lock State at Connection The Lock State at Connection column shows the lock state of each erase block as FDT made the initial connection There are two symbols to show this state Q the erase block was found to be locked at the initial connection ii the erase block was found to be unlocked at the initial connection The erase block may have no symbol at all and be greyed This is a sign that the block does not have locking support This is automatically detected by FDT from the project configuration file State at Disconnect The State at Disconnect column shows what the lock state of each erase block will be set to when FDT disconnects from the device assuming that the user does not select the Do Nothing radio option There are two possible values Locked the erase block will be protected at disconnect Unlocked the erase block will be unprotected at disconnect NB if the block was locked at connection FDT will have to erase the block to unlock it This action will be confirmed as necessary
29. is destined for the User Boot Area and select User Boot Area File to mark it as being for the User Boot Area 3 Build the device image for the User Boot Area create a file which is the result of merging all of the included target files by selecting the menu item Project gt Rebuild Image 4 Click the right mouse button on the Device Image file lt ProjectName gt ddi displayed in the workspace window and select Download Image or select the menu item Project gt Download Image 5 Programming is complete when Image successfully written to device is displayed in the output window 3 7 5 Programming some files to the User Area and other files to the User Boot Area 1 Add all the required target files to the project by selecting Project gt Add Files or pressing the INS key Note that multiple files can be added at once from the Add File s dialog 2 Click the right mouse button on each file displayed in the workspace window which is destined for the User Boot Area and select User Boot Area File to mark it as being for the User Boot Area 3 Build the device image for the User Boot Area create a file which is the result of merging all of the included target files by selecting the menu item Project gt Rebuild Image 4 Select the menu item Project gt Download Image 5 Programming is complete when Image successfully written to device is displayed in the output window for both
30. ken GAR KIR nee GK EWA KOKA aA KRA e NO A KNK 71 DELL Conilect t Te Aa 71 p HID R Te 1 E Ai 71 dla Erase LAS E E E E S 71 PAs Blank ehet koesse ti EGOE PE r AREA OEA 12 kks UA Imagen a alan ESAS 72 TAG Download Active Filen arren tri nE en e a a a a a 72 7 1 1 FLASH Checksum 212 17 1 8 Go From Address 72 7 7 9 Block Locking x12 TTITO Cancel Operation neesi y pirita eee Nae 72 LENTA Configure Flash Project Sy a KN A AERAR A C R Y Kay 12 V8 AA ANO 72 USA Help TOPICS iii ASAS AAA 72 TEZ ALECODICAL Supporte erates ia 72 158424 ABOU ieee RN 73 Chapter S Windows issn in prosa 75 S L Workspace WII Wen UNES dde 75 SELL Workspace 0d AA abd E KE DE RE LAIA 75 8 1 1 1 Insert Project 8 1 1 2 Allow Docking 8 1 1 3 Hide AS A A TO 76 A A RA 77 A Add Piles cite cite nt NN 77 CH Remoy Fil 5 E A E A EE E E K ee TI A Add Folder y ya nel e etal e KNK G E E A N eas 771 821224 AN OWDOCKING visitan ias 77 Bob 219k A O SON TI 8 2 8 3 8 4 8 5 8 6 8 7 8 8 IA ST AA E IS E 71 81 27 Set as Current Projecta asee AEAEE R EDETE VENE DENE K KSSE K HETE AAA AATni 78 3 1 2 8 Remove Project AEE E ETES EE EE EE EE 78 81 29 Unload Project Aa 78 8 1 2 10 Add Files From Kernel Dit Al AE el WAA EE an 78 8 1 3 Device Image Folder saniy va nek Ea EWE E WD AAAA 78 8 1 3 1 Remove Folde esserne s iii 78 8 1 3 2 Re
31. lt FDT path gt FDT exe DISCRETESTARTUP osre lt Filename gt eg C Program Files Renesas FDT3 07 FDT exe DISCRETESTARTUP osre C Program Files Renesas files nyfile mot This is the method used when an FDT data file is double clicked in Windows Explorer 3 3 9 2 Opening workspace files from the command line lt FDT path gt FDT exe DISCRETESTARTUP ow lt Long Path Workspacename gt eg C Program Files Renesas FDT3 07 FDT exe DISCRETESTARTUP ow C Program Files Renesas FDT3 07 Workspaces 1234 1234 AWS 18 This is the method used when an FDT workspace is double clicked in Windows Explorer 3 3 9 3 Opening data files from the command line with Access Rights password security enabled lt FDT pathAFDT exe arl lt Username gt lt Password gt DISCRETESTARTUP osre lt Filename s n eg C Program Files Renesas F DT3 07FDT exe ar Administrator password DISCRETESTARTUP osre C Program Files Renesas files myfile mot 3 3 9 4 Opening w4f Script Configuration files from the command line lt FDT path gt FDT exe DISCRETESTARTUP w4fRun lt filename gt eg CNProgram Files Renesas FDT3 07 FDT exe DISCRETESTARTUP w4fRun C Program Files Renesas FDT3 07vnyconfig w4f This is the method used when an FDT Script Configuration file is double clicked in Windows Explorer 3 3 9 5 Opening w4f Script Configuration files from the command line with Access Righ
32. same as the project but with a ddi extension E G Industrial Controller Industrial Controller E 4 Device Image Remove Folder 1 Industrial Controller dd 3 Rename Folder E FDT DDI Files E FDT Image Files allow Docking Ea S Record Files Hide 2 fp1 MOT 4 fp2 MOT E User Mode Project Figure 8 4 Device Image Folder In addition to the Allow Docking and Hidemenu items inherited from the workspace Device Image Sub Folder pop up menu has the following items 8 1 3 1 Remove Folder Allows the user to delete folders 8 1 3 2 Rename Folder Allows the folder to be renamed 78 8 2 Device File The Device File is the item containing the data to Flash into the device 3069 E E 3069 Device Image 3069 ddi 3 8 S Record Files 12 raa MOT Open Upload0 MOT l Upload0 MOT UB Add Files INS Remove Files e Allow Docking Hide Properties Display Block Usage Exclude UploadO MOT iv User Boot Flash Download File to User Boot Flash File Checksum Compare File gt Device Checksum Compare File gt Device Complete Device Compare File gt Device File Data Only Figure 8 5 Device File The pop up menu for Device File has the following items 8 2 1 Open filename This feature opens the selected file 8 2 2 Add Files Allows additional files to be added to the project 8 2 3 Remove Files Removes files from the p
33. should not adversely affect your other FDT version installations The USB drivers may be upgraded by installing FDT3 07 and the Access Rights usernames and passwords will be common but these are the only shared components Each version of FDT installs its own set of kernels and keeps its own settings Installing FDT3 07will also update the support email addresses for some previous versions of FDT The most recently installed version of FDT will be the application registered for use with the FDT file extensions This is so that the most recently installed version will be used when a file is double clicked from Windows Explorer If you are an existing user of FDT and your existing project needs to be migrated to FDT3 07 the recommendations are as follows If the project specifically requires the kernels distributed with an earlier version of FDT or a customised kernel based upon an older version it is possible to choose the Other option to select the User Defined kernel It is recommended however that wherever possible the latest kernels be used Using kernels from previous versions of FDT may lead to a decrease in functionality e g FDT 3 1 and above kernels include the information that FDT requires to calculate the asynchronous serial error rates use of kernels distributed prior to FDT 3 1 will result in this feature being disabled For projects using FDT versions prior to FDT 3 0 a new workspace and project should be created
34. the User Area and the User Boot Area 39 3 8 Erasing Data from the FLASH ROM Select Device gt Erase FLASH blocks to display the Erase Blocks dialog box Select the block s to be erased When the checkbox is ticked the block is selected Click the Erase button to start erasure e E yek Xa When Erase complete is displayed in the output window erasure is completed Erase Tree S E H9 3069F S User Flash OxQ007F FFF Ox00001 FFF 0x00002F FF Ox00003F FF OxO0004F FF OxO0005F FF Ox00006F FF OxQ0007F FF OxO000F FFF UEO F FFF OxO002F FFF OxO003F FFF Ox0004F FFF OxQQ05F FFF presas E gt 222229895 Uptost evt Figure 3 28 Erase Blocks Note To erase all blocks clicking the Select All button will tick every available check box To erase all non blank blocks clicking the Select Written button will tick every associated check box Ticking the box of a parent item will toggle the state of all child items A greyed check box indicates that only some of the child items are ticked 40 3 9 Uploading the FLASH ROM Data 1 Display the Upload Image dialog box from Device gt Upload Image either 2 Select the Address tab 3 Enter the start and end addresses or the start address and length 4 Click the Upload button to start reading 5 Select the Tree tab 6 Select the blocks to be uploaded corresponding to the erase blocks and or the devic
35. the user wants to select e g press ALT F S in sequence to Save the active file File gt 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 d e 2 te ez z e a JA Ae lii 1li BE BIT ARIS gt 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 Edit toolbar NIL elg Save File Cut Copy Paste Openans Record Figure 2 6 Edit Toolbar 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 FDT toolbar IPAGEFRIZO gt Connect Disconnect Erase Blocks Blank Check Upload Dowmload Active File Checksum Go from Address Cancel Configure Flash Project Figure 2 7 FDT Toolbar Connect connects the device to the interface
36. to be board specific rather than device specific FDM Pin Name 14 pin connector 20 pin connector Japan E8 Direct Pin Name only Txd Input from Txd of Target device to Rxd of 2148AF on FDM MD1 MD4 MD1 UVCC Input GND MD2 D2 GND Target Txd Input from Txd of Target device to Rxd0 of 2215UF on E8 GND Connected to GND on E8 Output B UVCC can supply 3 3 or 5V or detect if target is powered BUSY Not used for E8Direct GND Connected to GND on E8 Target Rxd Output to Rxd of Target device from Txd0 of 2215UF on E8 GND Connected to GND on E8 RESET UCONNECT Connect to GND on Target board PVCC Input Rxd Output to Rxd of Target device from Txd0 of 2148AF on FDM RESET CN D w GND MD4 UCONNECT GND an T HA OOOO TXD RXD for the user pa Tr 2 EAN AAN O AA a e 115 The FDM used a H8S 2148AF with an 18 432MHz crystal but the E8 uses an H8S 2215UF with a 16MHz crystal The numbering system above applies to the 14 pin FDM and E8 This numbering system does not apply to the 20 pin FDM connector 116 Chapter 14 QzROM Programming QzROM is a new type of programmable flash memory found in some 4 and 8 bit MCUs It is based most closely around the Protocol D style device but has several important differences e One time programming each byte of QZROM can only be written once e QzROM cannot be erased there is no erase command e Security Protection QZROM
37. 10 FDMRESET Pin Settings 27 28 Figure 3 11 ESDirectRESET Pin Settings 3 5 Configuring a Project for a Generic Boot Device It is also possible to connect to a Generic Boot Renesas Device where you do not need a kernel or configuration file installed instead FDT extracts the required information from the device itself Because of this the device must be connected and set into Boot Mode at the time you create the project If a Generic Boot device is selected then a series of screens appear displaying the results of the inquiry functions you will be required to make selections about the device and clock mode one boot program may be shared for multiple devices 3 5 1 New Project Workspace Enter the workspace name then click the OK button Specify whether or not a directory is to be created and a location x Projects Workspace Name findustl Controler Project Mame industrial Cortroler Directoy j FDT Wo kepaces lndustnal Controler CPU family Tool chain None KI Cone Figure 3 12 New Workspace 29 3 5 2 Generic Boot Choose Device and Kernel Select Generic Boot Device or a device supported by Generic Boot and click Next Choose Device And Kermel A The FLASH Development Tool supports a reanber of Hachi FLASH devices Workspaces Select the device you wish to use with this project from the list Soi oe ACA Select Device Generic BOOT
38. 15usbdirect 2215UsbDirect AWS Ensure that comms is closed in case previous attempt failed and didn t disconnect disconnect connect over the USB to the device with this Product ID Bus ID connect USB 0x000D 0 do an initial blank check blankcheck download the file C 2215uAuto mot and verify that programming was OK script processing will stop if this verify fails download C 2215uAuto mot user verify upload data from address 0 to address 0x1000 and save to file upload mot upload c UPLOADS upload mot 0x0 0x1000 erase all blocks erase device do a blank check and stop if the user area is dirty blankcheck stoponwritten rebuild the user area image RebuildImage user download the user image download image user get the checksum for the user area of the device checksum device pause for 100 milliseconds pause 100 disconnect from the device disconnect 55 Display message in output window alert output This text will be displayed in the output window and the log file delete this script will stop FDT from running through the file again delete script 4 7 Wait For Script Status File Format While FDT is in Wait For Script mode a remote user may wish to find out what state the application is currently in This is achieved by having a status file that FDT writes to as it carries out actions and which an external user can read This has the followi
39. AM Size FLASH Size Flash Start These are for display only and are not editable Connection Boot Mode This connection type specifies that the on board programming BOOT mode sequence is to be initiated This will cause the entire FLASH memory to be erased and a kernel loaded USER Program Mode This connection type specifies that the on board programming USER Program mode sequence is to be initiated by a previously loaded user program that is used to reprogram the FLASH memory 85 Interface If the target is connected directly to the host computer the connection interface should be selected to Direct Connection Alternative options include FDM and for Protocol A legacy kernels the UPB Double clicking invokes the Project Wizard to allow editing of this item Kernel Resident This specifies that a main kernel is already resident and running on the target device before connection by FDT Double clicking invokes the Project Wizard to allow editing of this item Available RAM and Free RAM These are for display only and are not editable Buffer Size This shows a size of programming the flash memory Device ID This is not used in communication protocol B C or D 8 5 4 Programmer Tab This shows the state of the Function Map and allows the user to select the Device Protection Option of Automatic Interactive or None and the message level option of Advanced or Standard Flash Properties Industrial Controller xj Device P
40. Bit Rate Register value is held in the gentest h file and is compiled into the User Mode Test Program this allows the kernel initialise the serial communications interface to 9600 baud If the clock frequency changes from the default supplied value the initial Bit Rate Register setting in gentest h normally MA_BRR_SCI or MA_BRR_SCI1 will need to be modified and the kernel recompiled The User Mode Main Kernel and the Write and Erase modules are held on the PC and downloaded as required Protocol C For devices with embedded kernels Currently 0 18um These support the FDM but not the UPB Boot Mode A configuration file is stored on the PC which provides FDT with details about the device but the kernel including the Write and Erase modules resides internally on the device There is no need to rebuild anything for different clock frequencies in Boot Mode this information is stored in the FDT project and downloaded at runtime and initial communication is achieved by the autobaud where FDT sends 0x00 data until the device synchronises with it User Mode Some boards are supplied with a User Mode kernel Similarly to the Protocol B User Mode kernels User Mode Kernel needs to be already programmed and executing on the device The initial Bit Rate Register value is held in the gentest h file and is compiled into the User Mode Test Program this allows the kernel initialise the serial communications interface to 9600 bau
41. Device Other Sd peep Image ra ll Targa fies S mot NIA Deve Image c dij Target Hes 8 Orive mat EJ Agro m tes Figure 3 13 Generic Boot Device Selection Note Some Protocol C devices which appear in the device list are supported by using Generic Boot This means that when one of these devices is selected in the Project Wizard FDT will behave as if Generic BOOT Device was selected and will connect to the device to obtain the device characteristics instead of using an existing fef file for this information Choose Device And Kernel xj The FLASH Development Toolkit supports a number of Renesas FLASH devices we E Select the device you wish to use with this project from the list SKI konaca nea you wish to use Diay J Device r ES Target fio CO met N Keyboerd n r vana m t Device Image pi Target fies Ed Orie mat ES Cata ro erer Figure 3 14 Device Support via Generic Boot 30 3 5 3 Generic Boot Communications Port Select the port and interface if available from the drop down list then click the Next button Communications Port xi The FLASH Development Toolkit supports connection through the standard PC Serial port and the USB port Use this page to WoL ee select your desired communications port All settings may be a L Senin Industria changed after the project is created gt Device lroege rare Leap Ean i23 LCD mot a Keyboa
42. 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 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 ASCH turns ASCII data ON or OFF Find launches the Find dialog box Find and Replace launches the Replace dialog box Create Select
43. E8Direct Chapter 14 QZROM Programming describes the programming of the new style of Renesas Flash Chapter 15 Locking describes FDT operation with those devices that support erase block locking Chapter 16 describes notes about upgrading to FDT3 07 Assumptions It is assumed that the reader is experienced in using Microsoft Windows applications on PC compatible computers ii Target Device DLL FDT EZTAT QzROM HEW PC USB FDM UPB HMSE FCF DDI Kernel Micro Kernel Main Kernel E8 ESUSB FoUSB iii Abbreviations Refers to the programmable microcontroller or microcomputer that is connected to the PC ready for programming Dynamic Linked Library Flash Development Toolkit Flexible Zero Turn Around Time One time programmable memory Renesas High performance Embedded Workshop Personal Computer Universal Serial Bus 1 1 or above Flash Development Module USB interface board Universal Programming Board Legacy HMSE interface board used with Protocol A Legacy kernels Hitachi Micro Systems Europe Ltd The former name of part of the Renesas Technology Europe Engineering Division Flash Configuration File Used to store information about the device and flash characteristics Device Data Image a hybrid S Record file format used for storing data for a device with multiple flash areas Code which takes control of the device and allows reprogramming functions This code is o
44. FDT Workspace view or the Options gt Field Programming gt Run Published File menu item from the Simple Interface Mode screen Also double clicking on the fpf file from Windows will start FDT in Simple Interface Mode using the selected fpf file FDT will unpack the fpf files into the Published Projects subdirectory of FDT FDT Simple Interface a Options Project industrial Controles Back to Project Exit Device He 3028F Pat COM r Image Selection Download Project Image jetrial Contlrollewlndustnial ControlleWIndustral Controler d Program Flash Figure 11 1 FDT Field Programming Interface 107 11 1 Options Menu 11 1 1 Login This allows changing of which user is logged in to FDT The hotkey Ctrl Shift U also invokes the Login dialog 11 1 2 Batch Erase Mode This will change the dialog to be erase based rather than programming based The Program Flash button will change to Erase the filelimage selection buttons will be disabled and the programming options will also be disabled Clicking Erase will erase the whole device it is not possible to specify the area to erase 11 1 3 AutoDisconnect This forces FDT to automatically disconnect after programming or erase if in Batch Erase Mode so that the user does not need to press the Disconnect button 11 14 Readback Verify This option controls whether FDT automatically performs a read and compare operation a
45. FDT should wait before processing after finding the script file and having access to it 4 2 1 4 Save This saves the FDT Script Configuration file with the default extension w4f FDT will prompt to ask if you want to execute the saved script immediately 4 2 2 Log File Page This is an optional page leave the fields blank if no log file is required It can either append to or overwrite existing files Wait For Script Configuration x Script File Log File Status File Error Handling Log File Directory Browse Log File Name If File Exists Append Overwrite Valid Delimiters ZU User Name D Script Execution Date The sign M Machine Name ZT Script Execution Time Figure 4 2 Log File Page 44 4 2 2 1 Log File Directory Enter the directory that the optional log file should be created in FDT can insert additional details into the directory path such as the user name machine name date or time by using the U M D and T delimiters 4 2 2 2 Log File Name Enter the name of the optional log file FDT can insert additional details into the file name such as the user name machine name date or time by using the U M D and T delimiters 4 2 2 3 Save This saves the FDT Script Configuration file with the default extension w4f FDT will prompt to ask if you want to execute the saved script immediately 4 2 3 Status File Page This is an optional page leave the E
46. REJ10J1131 0900 Everywhere you imagine py 2 E N ESAS Renesas FLASH Development Toolkit 3 07 for Windows 98SE Me Windows NT 4 0 Windows 2000 and Windows XP User s Manual Renesas FLASH Microcomputer Programming System HS6400FDIW3S Rev 9 00 RenesasTechnology Revision Date Oct 31 2006 www renesas com Notes regarding these materials This document is provided for reference purposes only so that Renesas customers may select the appropriate Renesas products for their use Renesas neither makes warranties or representations with respect to the accuracy or completeness of the information contained in this document nor grants any license to any intellectual property rights or any other rights of Renesas or any third party with respect to the information in this document 2 Renesas shall have no liability for damages or infringement of any intellectual property or other rights arising out of the use of any information in this document including but not limited to product data diagrams charts programs algorithms and application circuit examples 3 You should not use the products or the technology described in this document for the purpose of military applications such as the development of weapons of mass destruction or for the purpose of any other military use When exporting the products or technology described herein you should follow the applicable export
47. Saves the details of the currently active Workspace 7 1 5 Close Workspace Closes the currently active Workspace 65 7 1 6 Open an S Record Launches the Open an S Record dialog box allowing the user to open an existing file The file may be an S Record file rec mot a20 a37 s2 a Device Image file fpr ddi or a binary file bin cde 7 1 7 Save Saves the current active file 7 1 8 Save As Launches the Save As dialog box allowing the user to save and name the currently open file 7 1 9 Exit Closes and exits the FDT application 7 2 Edit Menu The Edit menu is used for aspects of the program that access or alter data in the Editor window 7 2 1 Undo Allows the user to reverse the previous editing operation 7 2 2 Redo Allows the user to reverse the previous Undo operation 7 2 3 Cut This will remove the contents of the highlighted block from the window and place it on the clipboard in the standard Windows manner This option is only available if a block is highlighted 7 2 4 Copy This will copy the contents of the highlighted block to the clipboard in the standard Windows manner This option is only available if a block is highlighted 7 2 5 Paste This will copy the contents of the Windows clipboard into the child window at the current cursor position 7 2 6 Select All Selects all the information in the active file in the editor window 7 2 7 Find This will launch the
48. T should security protect QZROM devices as it disconnects Select Automatic to always protect the device at disconnection Select Prompt to query the user what to do and select None to never protect the device at disconnect NB a protected device cannot be reconnected to 10 1 8 New Settings Run the Wizard to allow entry of the new settings 10 1 9 About Shows the About box 104 10 2 Dialog Controls 10 2 1 Exit Clicking this will exit FDT and FDT will start up in the Simple Interface Mode next time it is loaded This will be disabled if the user currently logged in to FDT does not have the SimpleInterface Exit access see Chapter 5 for details 10 2 2 Download File radio button This will be disabled if the user currently logged in to FDT does not have the SimpleInterface Download File access see Chapter 5 for details 10 2 3 Download File Area For devices with a User Boot Area the user can choose whether to download the file to the User Area or the User Boot Area For devices with a Data Area the user can choose whether to download the file to the User Area or the Data Area 10 2 4 Program Flash Erase Clicking on Program Flash allows FDT to download the specified file or image to the FLASH memory Additionally if Readback Verify is switched off the Checksum will also be calculated and output to the screen If in Batch Erase mode this button will switch to Erase and wil
49. The Device menu provides control facilities for interacting with the target device 7 7 1 Connect to Device This connects the GUI to the device if it is not connected Progress messages will appear in the Output window 7 7 2 Disconnect This disconnects the GUI from the device if it is connected Progress messages will appear in the output window 7 7 3 Erase FLASH blocks This launches the Erase Blocks dialog box The Erase Blocks dialog box allows the user to specify which blocks are to be erased The Written column indicates whether data is present in the block To start the operation select the required block names in the list and then click the Erase button 71 7 7 4 Blank check This launches a blank check on the device FLASH and reports back to the Output window 7 7 5 Upload Image This launches the Upload Image dialog box which enables the uploading of a range of data from the target device This is intended for access with FLASH memory The data is placed in the Editor window 7 7 6 Download Active File This downloads the current active file into the target FLASH memory 7 7 7 FLASH Checksum This launches a checksum calculation on the device FLASH and reports back to the Output window This is an EPROM Style checksum which is a 32 bit addition of the byte values within the range of the flash padded with OxFF s to the next EPROM size eg 64Kb 128Kb etc 7 7 8 Go From Address This launch
50. Yes but only once it is installed and configured To install FDT and for various configuration tasks you must have local administrator rights this is because some settings are stored in the HKEY_LOCAL_MACHINE registry area Once FDT is installed and configured you will be able to use it with certain limitations Configuration tasks such as adding new kernel entries to the registry so that they will be available in the Project Wizard in future requires Local Machine Administrator rights This includes adding the Prior Generic Device entry an administrator must first connect to the Generic Device to allow the Prior Generic Device entry to be created Additionally the FDT Advanced Setup utility which is used 15 for changing settings such as fine tuning of timeouts requires the Local Machine Administrator rights to save the settings Password administration also requires Local PC Administrator rights 3 2 7 How do I recompile a kernel It is recommended that the original kernel is copied to another directory and that this copy is edited thus leaving the original kernel unmodified When using the kernel for the first time you will need to browse to the alternate location to find the fef file Tf the kernel has been written using Hew there will be a Hew workspace file in the project subdirectory of the kernel This should be opened from Hew If the kernel has been written based upon compilation from the command line you will need to run the bui
51. a files to the project 7 4 4 Remove Files Removes the selected file from the project 7 4 5 File Extensions This option allows the user to select which file extensions are recognized by FDT and configure how they are handled 67 File Extensions Binary Files FOT Bray Files FOT DDI Files FOT Image Fies IAR 420 Files IAR 437 Files REC Files S Record Files Figure 7 2 File Extensions Dialog 7 4 5 1 File Extensions Add Selecting Add allows FDT to handle files of new extension types f Add File Extension Figure 7 3 Add File Extensions Dialog 68 7 4 5 2 File Extensions Modify Selecting Modify allows selection of how FDT handles files of this extension type aixi Group Associated application Cancel Qpan S Record Files with Hex Editor Figure 7 4 Modify File Extensions Dialog 7 4 6 Rebuild Image Rebuilding the image merges all files in the project that are not excluded The default ROM area is the User Area some devices also have a User Boot Area or a Data Area FDT will warn if the component files overlap Building an image can be advantageous when the data you wish to program is made up of separate component files especially if data from different files will reside in the same erase block area because downloading each component file separately could cause the device to erase the block before the second download if automatic protection is used
52. al directory in which you would like the tool to run into the Initial directory field Click OK to add the menu option to the Tools menu jrewon wa Figure 8 20 Add Tool Dialog New menu options are added to the bottom of the list i e bottom of the tools menu by default The order of menu options in the Tools menu can also be modified gt To modify a menu option 1 Select Tools gt Customise The dialog shown below will be displayed Select the Menu tab 2 Select the menu option that you would like to modify and then click the Modify button 3 Make the desired changes on the Modify Tool dialog and then click OK ModilyT ool raa Figure 8 21 Modify Tool Dialog gt To remove a menu option 1 Select Tools gt Customise The dialog shown in Figure 6 19 will be displayed Select the Menu tab 2 Select the menu option that you would like to remove and then click the Remove button 97 98 Chapter 9 Simple Interface Mode Invoked by Tools gt Simple Interface This is used to simplify the look and feel of FDT once a project is configured See Chapter 5 Access Rights for details about using this in conjunction with user names and passwords This chapter describes the full Simple Interface Mode see Chapter 10 for details of Basic Simple Interface Mode A A FOT Simple Interface Figure 9 1 FDT Simple
53. ame is the same by default then click the OK button If you wish to change or create a directory input a directory name or use Browse button 20 3 4 2 Choose Device and Kernel not Generic Boot Select the device you wish to use from the drop down list It is possible to have more than one kernel option displayed and double clicking on a kernel will open an optional readme txt file that has information about the kernel such as the device version number and the compilers it was created with Select the required kernel from the displayed list or if you have an alternative kernel elsewhere which is not in the list select Other to specify the kernel Flash Configuration File fcf For connection to a Generic Boot Device see the Configuring a Project for a Generic Boot Device section Choose Device And Kernel The FLASH Development Took supports a number of Renesas FLASH devices xl Select the device you wish to use with this project from the list Select Device Hesio2n2F Other B MY anan 7 Do hace tng G74 Disclay huszlal 2 be Ye Image a Ae Z Target Ales 3 1CD mot Renesas 4 04 9 Keyboardiny C Program Files Renesas FDTS 1 Kern Z ren mot 10 00 Deve Image 1 3 Target files Orive mot S Data mot EN Algor khim rm Figure 3 3 Device and Kernel Selection 3 4 3 Communications Port Select the por
54. ck to edit the setting Readback Verification After programming FDT can verify the data was programmed successfully by performing a read back verification Use this option to specify whether you would like to perform read back verification always after confirmation or never Double click to edit the setting Reset on Disconnect When disconnecting from the device when used in combination with a UPB or FDM FDT can be used to reset the target hardware Use this option to specify whether you would like to reset the device always after confirmation or never Double click to edit the setting Connection Reset This option controls whether FDT should set the mode pins and apply a reset when connecting in User Mode with the FDM The options are Default Uses the default settings Set Reset amp Mode Pins This is held in a registry setting Reset amp Mode Apply the Reset and set the Mode Pins Mode Only Suppress applying the Reset but set the Mode pins Note that care must be taken to ensure that this will not damage the device or cause unpredictable behaviour This option is mainly for making the transition between User Mode and User Program Mode None Suppresses applying the Reset and setting the Mode pins Reinterrogate on Disconnect This option forces FDT to reinterrogate Generic Boot devices on connection With this option set to No default the device settings are saved in an automatically generated fcf file a
55. ct D 0000E 08 OXDODOFFFD Full di Prompt on Disconnect No Protection Figure 14 8 Security Protect dialog change 14 2 3 Simple Interface Basic Mode Should the user be in a mode where only the Simple Interface dialog is accessible this setting can instead be changed via a menu option Login Batch Erase tode Aulcconnect AutoDisconnect Readback Very Request Checksum O2PiotectT esi Q2ProtectT es OQ Protect est dai Erase Device Before Program Automatic v Prompt Field Programming gt About A Program Flash Disconnect Figure 14 9 Security Protect Simple Interface The check mark shows the currently selected option Note these menu options will be disabled if the project is not QZROM based 120 Chapter 15 Locking 15 1 Locking Overview Locking of erase blocks against writing or erasing is a feature supported by some of the M16C family devices FDT offers control over these locking settings at connection disconnection and during normal operations The options are available from a toolbar button and a menu entry 2 alg her ws g Figure 15 1 ToolbarButton P Connect to Device Ctrl Alt C Ps Disconnect Erase FLASH Blocks Ctrl Alt E EYA Blank Check Cirl Alt B Upload Image Ctrl Alt U y Download Active File GUrl Alt P gt FLASH Checksum Gb AlES cle Ca Au EX Block Locking Ctrl Alt L
56. ct whether the connection is for Boot Mode or User Mode in the Connection Type dialog Additionally for a connection to a kernel that is still running on the device from a previous session select the Kernel already running check box Next select the communication speed bps if the default value is not correct or not present Speeds where the target error rate is greater than 4 or the FDM E8Direct error rate is greater than 0 are automatically removed from the recommended list When using the FDM E8Direct the User Specified connection speed option is enabled when selected this allows the user to specify a non standard baud rate The error rate will be displayed this takes into account the target peripheral clock rate the target Bit Rate Register calculation formula and the FDM E8Direct characteristics Click the Next button to continue Connection Type x The FLASH Development Toolkit can connect to your device in a number of different ways All the options on this page may be lan WoL changed after the Project has been created hace Indust rvs gt Connection pl Asplay J Device Image E Target files T Kernel already running i LCD mot L Keyboard m 5 Comms mot T USER Program Mode In BOOT Program mode the device erases its FLASH prior to connection The Toolkit downloads programming kernels to the device as required Device Image The Recommended Speed setting is based on th
57. d If the clock frequency changes from the default supplied value the initial Bit Rate Register setting in gentest h normally MA_BRR_SCI or MA_BRR_SCI1 will need to be modified and the kernel recompiled The main difference to the Protocol B User Mode Kernels is that the Write and Erase modules are held internally on the device Protocol D For R8C and former Mitsubishi family devices eg M16C M32 etc The E8 and FoUSB boards can be used with some Protocol D devices The kernels are internal to the device but FDT uses configuration files to store information about the device characteristics 3 2 5 What are the fcf and fdm files can I edit them Stored alongside the other kernel files the fef Flash Configuration File and fdm Flash Development Module files hold details about the device and kernel Each supported device in each kernel directory has its own fef and fdm file Information such as the RAM size Flash size Erase Block Register details default baud rate and default crystal frequency is stored in the fcf file and details about the allowed pin settings for the FDM is stored in the FDM file Each of these files is protected with a checksum so editing will render them invalid and FDT will detect this Upon detection of an invalid checksum an fcf or fdm file FDT will warn the user but will not prevent use of the modified files 3 2 6 Can I use FDT if I do not have Local Machine Administrator rights for my PC
58. d 44 A 21 AS A A OO 44 A A A RN 44 A A 44 4 2 2 Log File Page 44 4 2 2 1 Log File Directory 45 4 2 2 2 Log File Name 45 42 23 SAVE iiai 45 4 2 3 Status File Page 45 4 2 3 1 Status File Directory seke 45 4 2 3 2 Status File Name Ss 45 4 2 3 3 Cris d k 46 4 2 4 Error Handling Page se 46 4241 On Script Pal ici ii in Il e 909 2a s ne so SEK Haaa xas Kene KA den KER 46 ADA PEREYAN ST NRO 47 4 3 Wait For Script Edit Configuration nmr ere rekereke keke keke ke keke kek ek Kek KK 48 447 Wait For Script Run Configuration yEy kul Hesek kek E keke ke k y kek bana ek e r kaka ke Ea oae kake KEK N 48 4 5 Wait For Script Script Command nnnnrererererereke keneke keke Keke Ke KHK K HK HKKR 48 NRO 49 A 1 see ces seas ceressvecveesvoisnnssveashusdvessbusivossnesveasnvssvesswossvessvossunsadedionsnvedsonaawessondiy 49 45 3 Be 1 aT eile aol aici RA et 50 ASIA y TASC ines css RN MM J JJM 50 42929 Blank CHEEK A RAN 51 A TTT 51 A O A OT 51 ASB DISCO Edna rrr A BB Bz axaIZ II MD 52 4 5 9 A Ka KA aA A O CA AT 52 4 510 Comment rd 52 ASIT T 5 1 din ii MEHE NE EN E KAN N r gobo SE Ye K 53 SI A AN e ee K o eeu D KED DO DN 53 ASS 13 Delete s e esa y HE sea xaka E E E 53 4 5 14 MOS CO Aisve in lr eya ea e Ka rayan eke yek eee iol so i 54 ALAS ADOFLS E lt 0 na dr A ARMEN ba eves
59. d place it on the clipboard in the standard Windows manner This is only available if a block is highlighted 8 8 2 Copy This will copy the contents of the highlighted block to the clipboard in the standard Windows manner This is only available if a block is highlighted 8 8 3 Paste This will copy the contents of the Windows clipboard into the child window at the current cursor position 8 8 4 Undo Reverses the last editing operation on the selected data 8 8 5 Redo Reverses the last undo operation 92 8 8 6 Display Unit Invokes the cascaded menu as follows Byte view the data as 8 bit bytes Word view the data as 16 bit words DWord view the data as 32 bit double words 8 8 7 Align 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 8 8 8 Toggle ASCII Column Allows the ASCII column to be removed or displayed 8 8 9 Create Selection Launches the Create Selection dialog box allowing the user to create a selection area by entering its start address end address and length The selected area can be used in conjunction with the Clipboard Fill or Search and Replace 8 8 10 Fill Launches the Fill dialog box for the current active file to write the specified data to the selected area When the ASCII Fill check box is selected the data to be written can be specified with ASCII characters
60. d will invoke the Project Wizard at the appropriate screen Flash Properties Industrial Controller _ 9 Kernel Path C Program Files Renesas FDT3 05 Kernels ProtC 3069 Renesas 1_0 Frequency External 25 0000 MHz Protocol C CKM 1 CKP NIA Clock Mode 0 4 gt Kernel A Communications A Device A Programmer A Modules 7 Figure 8 8 Kernel Properties Kernel Path This shows the kernel path Frequency This shows the input clock and whether that clock is external or internal to the target Protocol This shows the type of communication protocols See also section 3 2 4 Protocol B 0 35 um devices Protocol C 0 18 um devices Protocol D R8C M16C M16C Tiny M32C or 740 devices CKM This shows the multiplier of the system clock master clock for the input clock 83 CKP This shows the multiplier of the peripheral clock for the input clock Clock Mode This shows the clock mode 8 5 2 Communications Tab This shows the default and current baud rates and the current port It also allows the user to change the Port and Baud Rate when disconnected Flash Properties Industrial Controller FDM 57600 57600 No Direction amp State Output 1 Input 0 Input 0 Input 0 Input 0 Output 0 Input 0 Output 1 Reset Direction amp State Output 1 Input 0 Imput 0 Input 0 Input 0 Output 1 Input 0 Figure 8 9 Communications Properties Port This drop
61. des The user should select the correct Clock Mode from the list then click OK Please check with the hardware manual target board manual to ensure that the correct mode is chosen Figure 3 23 Clock Mode 35 3 5 9 Generic Boot Setup Complete Having selected the Clock Mode the Generic wizard completes as below Query Generic Device xi v Booting Device v Sending Supported Devices Inquiry v Selecting Device HDB4F7058 Y Sending Clock Mode Inquiry v Selecting Clock Mode 0 Y Sending Other Inquiries HA asan Figure 3 24 Generic Boot setup complete The Project Wizard will then continue through the remaining pages 3 5 10 Generic Boot Device Settings Please Refer to Section 3 4 4 3 5 11 Generic Boot Connection Type Please Refer to Section 3 4 5 3 5 12 Generic Boot Programming Options Please Refer to Section 3 4 6 3 5 13 Generic Boot Reset Pin Settings FDM connection only Please Refer to Section 3 4 8 3 5 14 Generic Boot Reinterrogate on connect option The Programmer tab of the Flash Properties dialog allows the user to configure whether FDT should reinterrogate the Generic device on each connection The default is set to No so after a connection has been established once FDT re uses the data collected from the initial inquiry functions If this option is changed to Yes FDT will interrogate the device for the device details each time it connects in Boot Mode This
62. device located i Figure 3 20 Select USB Device 33 3 5 6 Generic Boot Confirmation FDT then waits for you to confirm that the device is connected and powered and if not using the FDM or E8Direct in Boot mode FDT will try to connect to the device when you click OK FLASH Development Toolkit Exi FDT will now attempt to connect to your generic device Please ensure the board is connected powered and in Boot mode Figure 3 21 Generic Boot Confirmation After this FDT displays a dialog that displays the boot progress At various points during the Generic Boot process the user is required to select or confirm details of the device see below for details 3 5 7 Generic Boot Select Device Because some devices share a boot program a list is provided of all those supported The user should select the correct device from the list then click OK Communications Port E pa xj Workspad 1 The FLASH Development Toolki supports Connection through BRETT _xj jis page to War may be Fo v Booting Device Sending Supported Devices Inquiry Selecting Device Sending Clock Mode Inquiry ice with blank Selecting Clock Mode Sending Other Inquiries OF Car cel Select a device HDG4F7058 Bd Cano Figure 3 22 Generic Boot Device 34 3 5 8 Generic Boot Select Clock Mode Because some devices have a number of Clock Modes a list is provided of all possible Clock Mo
63. down list provides the user with a list of supported COM ports available for connection to the device This list includes the USB port options Baud Rate Display the currently selected Baud Rate Double clicking invokes the Project Wizard to allow editing of this item Default Baud Rate Display the Default Baud Rate Use default baud 84 Tf this is checked the default Baud Rate will be used This option should be set only when the RenesasEvaluation Board or Evaluation Development Kit is used FDM E8Direct Pins This section displays the direction and state of the controlled mode pins for the Connect and Disconnect with Reset operations 8 5 3 Device Tab This shows the device information It also allows the user to select BOOT Mode or USER Program Mode and the Direct Connection interface In addition it can specify whether or not the kernel is in the target device Flash Properties Industrial Controller x Property lle o O Device H8 3069F RAM Size 16K FLASH Size 512 K User Flash 8 K User Boot Flash FLASH Start 0x00000000 User Flash 0x00000000 User Boot Flash Connection Boot Interface Direct Connection Kernel Resident No Available RAM NIA Free RAM NIA Buffer Size NIA Device ID NIA Communications A Device A Programmer A Modules 7 Figure 8 10 Device Properties Device Displays the name of the active device Double clicking invokes the Project Wizard to allow editing of this item R
64. e respectively Typically FDT will only update the Level 1 area but in some cases a Level 0 update is also required This is usually seen when connecting with E8Direct see Chapter 13 E8Direct for the first time and will result in a slightly different update process shown below for comparison Level 0 and Level 1 update E8 target power has been set to ON at 5 0V Connecting to device R5F21174 on E8 Configuration BOOT Mode connection using emulated interface Opening port E8 Checking for E8 update Adaptor checksum OK Processing Data file c FDT ADPFiles E8 Rel Img mot Mismatched Bootstub Level 0 version number found current E8 version 1 00 01 000 FDT holds version 2 00 00 000 FDT requires version 2 00 XX XXX FLASH Development Toolkit xj FDT will now update the ES firmware to a newer version to allow connection to this device SL current Bootstub Level 0 version 1 00 01 000 new version 2 00 00 000 Chick OK to continue 7 ca Update selected Adaptor update started do not unplug Processing Data file c FDT ADPFiles MonpMain mot Adaptor update program downloaded Processing Data file c FDT ADPFiles AdpErase0 mot Adaptor erased Processing Data file c FDT ADPFiles AdpWrite0 mot Updating Adaptor updated successfully lt Connection continues gt 111 Level 1 only update E8 target power has been set to ON at 5 0V Connecting to device R5F21174 on E8
65. e clicking on a workspace file EDT can be started by double clicking on a workspace file from Windows Explorer This will cause FDT to load the selected workspace upon start up 3 3 4 Starting FDT by double clicking on a data file EDT can be started by double clicking on a registered data file from Windows Explorer if this default option was not unselected during installation This will cause FDT to load the selected data file upon start up 3 3 5 Starting FDT by double clicking on a w4f script configuration file FDT can be started by double clicking on a w4f script configuration file from Windows Explorer This will cause FDT to start in Wait For Script mode and load the selected configuration 3 3 6 Starting FDT with Simple Interface Mode enabled If FDT was exited from Simple Interface Mode see section Chapter 9 FDT will return straight back to that mode 3 3 7 Starting FDT with Access Rights password security enabled If the Access Rights password security has been enabled FDT will display the login dialog before allowing the workspace to be opened See Chapter 5 for further details 3 3 8 Starting FDT by double clicking on a fpf packaged project file EDT can be started by double clicking on a fpf packaged project file from Windows Explorer This will cause FDT to unpackage the project and start in Simple Interface Mode 3 3 9 Starting FDT from the command line 3 3 9 1 Opening data files from the command line
66. e current device Y Target files _ and clock The user may also input their own if this is supported S A bs pia by the kernel and the optional FDM L ata ma E Algorithm T Recommended Speeds sano ES vc Default E User Specified En Figure 3 6 Connection Type Note that Use Default is designed for use with the Renesas Evaluation Board or Evaluation Development Kits Uncheck this to allow manual selection of the bit rate 24 3 4 6 Programming Options Select the protection level for programming the FLASH ROM and the messaging level then click the Finish button or if the FDM E8Direct was selected click Next to continue Programming Options x The FLASH Development Toolkit offers a device protection system plus an advanced messaging level for use with hardware and kernel development What level of device protection would you ike I Workepeces y Orkepac e Indust AC L Display ES T y Device Image e 4 1 got files 3 LOD mot 3 Keyboard m Interactive C None When programming the device any blocks found to have been written previously will automsticaly be erased COMMS Mot Device imag vihat level of messaging would you ike y Target Mes sp E Drive mot Messaging 21 Deka mot ls Standard AE 2 Algonthn C communicating with the Target device This mode is usetul for Interface hardware development and Kernel development
67. e flash areas 7 Click the Upload button to start reading When Upload operation complete is displayed in the output window and the uploaded data is displayed in the hex editor reading is complete If the user specifies an Absolute image the uploaded data will be placed in an image the size of the FLASH memory at the same address it was uploaded from Use an Absolute Image if the uploaded data needs to be added to the project It is not possible to upload a region outside of the FLASH into an Absolute Image Note When FDT is started in boot mode the flash memory data has normally already been erased CU x Tree Address Start Address Uses Boot Flash End Address AS Length Start Address 0x00000000 foxs0000 End Address OxO007FFFF 0x80000 Size 512K Absolute Image Figure 3 29 Upload Image Dialog Address 41 Regi n _____ e E H8 2069F 2 F Unknown Select Written EB 4 k Ein Ox 0x00001FFF 4K Unknown EJ EB2 000002000 0x00002FFF 4K Unknown EB3 Ox00003000 Ox00003FFF 4K Unknown EBA Ox00004000 OxQQ004FFF 4K Unknown EEB5 Ox00005000 0x00005FFF 4K Unknown EB6 Ox00006000 OxQQ006FFF 4K Unknown EB 0x00007000 0x00007FFF 4K Unknown EJ EBS 00008000 0x0000FFFF 32K Unknown EB9 0000 0 64K Unknown EB 0x00020000 64K Unknown Meet Ox00030000 OxQQ03FFFF 64K Unknown EB12 Ox00040000 OXDOD4FFFF 64K Unknown EBIS Ox00050000 0x0005FFFF 64K Unk
68. e system menu the system menu can be opened by clicking the icon in the upper left are of the title bar 42 Chapter 4 Wait For Script 4 1 Wait For Script Overview This mode allows FDT to be automated and controlled by a text file containing a script of commands Once in this mode FDT acts as a server which polls for the existence of a file in a predetermined location Once this file is found FDT executes each command in order and can then optionally delete or move the script file upon completion so that FDT is ready to look for the next script file This allows FDT to connect program erase blank check etc under the control of an external application via the use of a simple text file The messages in the output window can optionally be echoed to a log file for later analysis and traceability Additionally a status file can be created which holds information about the state of the current and previous script processes This status file can be used by the external application to determine whether the script has been processed successfully To set up FDT Wait For Script a configuration file needs to be created to specify the search path for the script file and other parameters such as the settings for the log and status files and how to handle errors 4 2 Wait For Script New Configuration This is invoked from the Tools Wait For Script New Configuration menu 4 2 1 Script File Page Wait For Script Configuration x Scrip
69. ed at once from the Add File s dialog 2 Build the device image for the User Area create a file which is the result of merging all of the included target files by selecting the menu item Project gt Rebuild Image 3 Click the right mouse button on the Device Image file lt ProjectName gt ddi displayed in the workspace window and select Download Image or select the menu item Project gt Download Image 4 Programming is complete when Image successfully written to device is displayed in the output window 3 7 3 Programming an individual file to the User Boot Area 1 Select Project gt Add Files or press the INS key to add the file to be downloaded to the Project 2 Click the right mouse button on the file displayed in the workspace window and select User Boot Area File to mark this file as being for the User Boot Area 3 Click the right mouse button on the file displayed in the workspace window and select Download File to User Boot Area Programming will be completed when Image successfully written to device is displayed in the output window 38 3 7 4 Programming multiple files to the User Boot Area 1 Add all the required target files to the project by selecting Project gt Add Files or pressing the INS key Note that multiple files can be added at once from the Add File s dialog 2 Click the right mouse button on each file displayed in the workspace window which
70. elected then FDT will display the image filename that will be downloaded If the Download File radio button is selected for devices with a User Boot Area the user can choose whether to download the file to the User Area or the User Boot Area 9 2 5 Program Flash Erase Clicking on Program Flash allows FDT to download the specified file or image to the FLASH memory Additionally if Readback Verify is switched off the Checksum will also be calculated and output to the screen If in Batch Erase mode this button will switch to Erase and will perform an entire device erase 9 2 6 Disconnect Clicking on Disconnect forces FDT to disconnect 9 2 7 File Selection The filename can be specified in the File Selection section by typing or browsing for each area enabled by the Download File Area checkboxes 101 102 Chapter 10 Basic Simple Interface Mode Invoked from the start menu Flash Development Toolkit3 07 Basic This is used to simplify the look and feel of FDT and does not need a Workspace and Project See Chapter 5 Access Rights for details about using this in conjunction with user names and passwords This chapter describes the Basic Simple Interface Mode see Chapter 9 for details of the full Simple Interface Mode Basic Simple Interface Mode will restore any previous settings on start up To change the device kernel or port settings the Options gt New Settings menu will invoke the Wizard to collect the new detai
71. es a dialog that allows the user to select an address to execute code from There is an option to select an indirect address mode so that the address referenced is itself an address of where the code needs to run from 7 7 9 Block Locking This launches a dialog that allows the user to setup the locking settings for the project should the configured device support this feature 7 710 Cancel Operation Cancels the current FLASH operation 7 7 11 Configure Flash Project Displays the Flash Properties dialog or launches the Project Wizard if the device is not yet configured 7 8 Help Menu The Help menu is used to access additional information on how to use the functionality provided by FDT 7 8 1 Help Topics Launches the Help system for FDT The Help Topics dialog box for FDT is displayed enabling help to be accessed on required FDT subjects through several methods 7 8 2 Technical Support This allows the user to report a problem with FDT or to check the website for the latest updates 72 7 8 3 About Launches the About Flash Development Toolkit dialog box through which additional information regarding FDT can be accessed e FDT version e Copyright information 73 74 Chapter 8 Windows This chapter describes each child window type the features each supports and the options available through their associated pop up menus There are three main windows Workspace window Editor window and O
72. es will have a fsf extension The syntax for a script line is the command followed by a space followed by required arguments separated by the operator Optional extra arguments follow these and can be placed in any order Normally a script file should end with the delete script command This causes FDT to delete the script once processing is finished thus preventing the same script file being processed more than once FDT will then start looking for the next script file Alternatively the move command could be used to move the script file to an alternative directory once completed Each script command should be written on a separate line of the text file FDT will cope with DOS and UNIX style line breaks CR or CR LF File paths within the script file can include drive letters or network paths including IP addresses 48 4 5 1 Workspace Description loads a specified workspace into FDT Note a valid workspace and configured project must be opened to use any of the device related commands Arguments lt Workspace Path gt Required The path to the workspace Example Workspace C Workspaces 3069serial 3069serial AWS NB FDT will use the active project from this workspace there is currently no facility for changing which is the active project from the script 4 5 2 Connect Description connect to a device Arguments lt PORT gt Optional T
73. essions 9 1 7 Security Protection This option controls whether FDT should security protect QZROM devices as it disconnects Select Automatic to always protect the device at disconnection Select Prompt to query the user what to do and select None to never protect the device at disconnect NB a protected device cannot be reconnected to 9 1 8 Field Programming gt Run Published File Unpackage an fpf file and use it in Simple Interface Mode 9 1 9 About Shows the About box 100 9 2 Dialog Controls 9 2 1 Back to Project This returns to the full FDT view This will be disabled if the user currently logged in to FDT does not have the FDT Project Edit access see Chapter 5 for details 9 2 2 Exit Clicking this will exit FDT and FDT will start up in the Simple Interface Mode next time it is loaded This will be disabled if the user currently logged in to FDT does not have the SimpleInterface Exit access see Chapter 5 for details 9 2 3 Download Project image Download File radio buttons These are mutually exclusive and allow the user to specify whether to download the Project Image or another file These will be disabled if the user currently logged in to FDT does not have the Simplelnterface Download File or SimpleInterface Download Project Image access see Chapter 5 for details 9 2 4 Project Image Download File Area If the Download Project Image radio button is s
74. f the port specified does not match the project port settings the command will fail For USB Direct FDM ES and E8Direct connections this must be set to USB USB lt USB When using USB Direct it is possible to pre empt PID gt lt USB BID gt the Select Device connection dialog normally seen with these settings USB FDM SN lt S If using an FDM the PID should be set to FDM ERIAL NUM gt and the BID should be set to SN followed by the When FDM s serial number l lt PORT gt is USB ES lt USB Optional If using E8 or E8Direct the BID of the device the USB BID gt lt CONNECT One of initial connection voltage and the voltage to be VOLTAGE gt lt DISCON applied at disconnect time can be specified NB NECT VOLTAGE gt currently supported voltage values are 5 0 3 3 USB E8Direct lt US or 0 B BID gt lt CONNECT VOLTAGE gt lt DISCON NECT VOLTAGE gt Note that the connection will only be attempted with the project port setting and not to change the port used to connect Specification of the port in this command is only to force a failure 1f the project does not match this setting and to suppress the Select Device connection dialog for USB devices by allowing the PID BID or FDM and Serial number to be preselected Examples Connect Connect COM1 49 Connect USB 0x000D 0 Connect USB FDM SN 93506 Connect USB E8 0001 5 0 0 0 4 5 3 Dow
75. from the FDT application window display To re enable the Output Window display select the View gt Output menu option again The Output Window will be enabled and added to the FDT application window display and the menu option checked 62 6 6 Customising the Toolbar The selection and arrangement of buttons displayed on the Toolbar can be customised to suit a user s requirements To change the display invoke the Tools gt Customise menu option The defaults are to display the Editor Search FDT QzROM and S Record toolbars Note that the S Record Toolbar option is only available when there is a data file open The Customise dialog box will be displayed Toolbars Menu Toolbars M Show Tooltips New Reset 5 Record Toolbar name Editor Figure 6 1 Customise FDT The Customise dialog box has a number of tabs which are further described in Chapter 8 Windows 6 6 1 Toolbars Tab The Toolbars tab allows the user to select which toolbars are displayed The default is to display only the Editor Search and FDT toolbars The New button launches the Toolbar Name dialog box which allows the user to name and generate a new toolbar After entering the new name and clicking on OK the new name will be added to the Toolbars list and an empty toolbar is displayed on the interface Selecting the Commands tab allows the user to select and add buttons to the new toolbar The user can
76. ften downloaded to the device The part of the kernel which gets executed first and allows initial configuration and downloading of the main kernel The part of the kernel which gets downloaded by the micro kernel and handles downloading of additional modules if required to perform the read write blank check erase functions etc This is a USB interface board It supports programming over the single wire interface and clock synchronous programming using the four wire interface This is a USB interface board developed by RTA It is used for Flash Programming and in circuit debugging This is currently not supported by FDT in the Asia region Field Programming The ability to package all kernel and data files into a single file for simplified sending Publishing E8Direct to another FDT user A firmware update to the E8 using the existing E8 hardware designed to be as similar as possible to the FDM 111 1v Document Conventions This manual uses the following typographic conventions CONVENTION Menu gt Menu Option dialog name Filename ext enter this string Key Key gt The how to symbol Table 1 Typographic Conventions MEANING Bold text with gt is used to indicate menu options for example File gt Save As The is used to indicate the name of a dialog box or menu Bold Courier Font is used to indicate filenames 6 Used to indicate text t
77. fter programming The setting is remembered between sessions 11 1 5 Request Checksum This option controls whether FDT automatically performs a checksum request operation after programming The setting is remembered between sessions 11 1 6 Erase Device Before Program This option controls whether FDT automatically performs an erase operation before programming the device This will erase all blocks in all memory areas prior to programming The setting is remembered between sessions 11 1 7 Security Protection This option controls whether FDT should security protect QZROM devices as it disconnects Select Automatic to always protect the device at disconnection Select Prompt to query the user what to do and select None to never protect the device at disconnect NB a protected device cannot be reconnected to 11 1 8 Field Programming gt Run Published File Unpackage another fpf file and use it in Simple Interface Mode 11 1 9 About Shows the About box 108 11 2 Dialog Controls 11 2 1 Back to Project This returns to the full FDT Workspace view This will be disabled if the user currently logged in to FDT does not have the FDT Project Edit access see Chapter 5 for details 11 2 2 Exit Clicking this will exit FDT and FDT will start up in the Simple Interface Mode next time it is loaded This will be disabled if the user currently logged in to FDT does not have the SimpleInterface Exit
78. g North Road Taipei Taiwan Tel lt 886 gt 2 2715 2888 Fax lt 886 gt 2 2713 2999 Renesas Technology Singapore Pte Ltd 1 Harbour Front Avenue 06 10 Keppel Bay Tower Singapore 098632 Tel lt 65 gt 6213 0200 Fax lt 65 gt 6278 8001 Renesas Technology Korea Co Ltd Kukje Center Bldg 18th FI 191 2 ka Hangang ro Yongsan ku Seoul 140 702 Korea Tel lt 82 gt 2 796 3115 Fax lt 82 gt 2 796 2145 Renesas Technology Malaysia Sdn Bhd Unit 906 Block B Menara Amcorp Amcorp Trade Centre No 18 Jalan Persiaran Barat 46050 Petaling Jaya Selangor Darul Ehsan Malaysia Tel lt 603 gt 7955 9390 Fax lt 603 gt 7955 9510 Colophon 6 0 Renesas FLASH Development Toolkit 3 07 for Windows 98SE Me Windows NT 4 0 Windows 2000 and Windows XP User s Manual ENESAS Renesas Technology Corp 2 6 2 Ote machi Chiyoda ku Tokyo 100 0004 Japan
79. h Access Rights password security enabled 19 3 3 9 6 Starting FDT Basic Simple Interface Mode from the command line 19 Creating a New Workspace and Project sese 20 3 411 New Project Workspacez mein iine W y KURAN N Re R NAE Eka AN n Dan a cey n 20 3 4 2 Choose Device and Kernel not Generic BOOt E keke 21 3 4 3 A AA E TN 22 3AA Deyice A E N ee an con can ne WA KEREKER HEE eV ERKAN 23 3 4 5 Connection Type n 24 3 4 6 Programming Options 25 3 4 7 FDM E8Direct Pin Settings 129 JAS Reset Pin HT 27 Configuring a Project for a Generic Boot Device sse esse eee 29 3 521 New Project Workspace unid ii dia aida 29 3 5 2 Generic Boot Choose Device and Kernel sss 30 3 5 3 Generic Boot Communications Port 31 3 5 4 Generic Boot FDM Pin Settings FDM connection only 31 3 5 5 Generic Boot E8Direct Pin Settings E8Direct connection only 32 3 5 6 Generic Boot Confirmation ccc ee ee eee 34 3 5 7 Generic Boot Select RT 34 3 5 8 Generic Boot Select Clock Mode sese esse 35 3 5 9 Generic Boot Setup Complete srne arr eaei eshe 36 3 5 10 Generic Boot Device SettidgS oonooncnnononicnnnnoncnnnononanananonccncanononnnoncnncn conc nncnnone 36 3 5 11 Generic Boot Connection Type 36 3 5 12 Generic Boot Programming Optiones 36 3 5 13 Generic B
80. hat must be entered excluding the quotes Used to indicate required key presses For example Ctrl N 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 Windows is a registered trademark of Microsoft Corporation F ZTAT is a trademark of Renesas Ltd iv Chapter 1 Introduction The RenesasFlash 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 GUD 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 e Standard window operation based on the 32 bit Windows GUI e Various online help functions e Selectable messaging levels e Simple programming environment optionally controls an adapter board e Serial communication e USB communications supported via USB Interface Boards e USB communications directly to selected target devices e Wait for Script File facility e Multiple flash areas in a single image DDI e QzROM programming 1 2 New Features FDT3 07 has the following new features e Support for
81. he Query user option is selected then FDT will display a limited view of the Locking Dialog This shows the lock state of the device at connection and the lock state of the device as it will be set at disconnection This state can still be edited at this point by checking the Enable Editing checkbox Two other options are given set the locks or do nothing the default Block Locking x On Disconnect Ej N xxxxxxxxx 1 Data Flash Lock State At Connection _ State At Disconnect disconnecting from a User Flash device with locking ability A EBs Locked C EB Unlocked A EB6 Locked C Set Locks Unlocks S Zen Pere Query User cks Un i EBS Unlocked E Ci EB2 Unlocked Do Nothing C EBI Unlocked C EBO Unlocked What should FDT do by default Figure 15 7 Query on Disconnect Dialog 125 Selecting to set the locks will cause FDT to lock and unlock the blocks as appropriate and also set the master lock enable as in 1 above Selecting to do nothing will cause FDT to ignore any locking settings and skip straight to the disconnection process as in 3 below Clicking Cancel at this point will cancel both the dialog and the disconnect operation as a whole 3 Do Nothing FDT will issue no lock or unlock commands and the device will be left in its current locking state The disconnection process will happen as normal 126 Chapter 16 Upgrading to FDT3 07 Installing FDT3 07
82. his is achieved by using the Tools Access Rights Administration menu item The first time this is run you will be prompted to enter a password for the Administrator account 5 3 Access Rights Administration This is reached via the Tools Access Rights Administration menu item x Disable All User Account Names Figure 5 1 User Admin 57 5 3 1 Disable All This button allows disables all user accounts and switches off Access Rights password security 5 3 2 Modify User This button allows modification of the settings for the selected user by invoking the Modify User dialog x r Account Access Rights SIM User L JAccessRights Admin CIFDT Project Edit Simplelnterface E xit Simplelnterface Dowr load File j S implelr terf ace Download Project Image Disable All Set Default Figure 5 2 User Admin The available access options are AccessRights Admin Allows administration of user accounts and passwords FDT Project Edit Allows editing of FDT Projects enables the Back to Project button in Simple Interface Mode SimpleInterface Exit Allows exiting of FDT enables the Exit button in Simple Interface Mode SimpleInterface Download File Allows user selection of the file to download enables the Download File section of the Simple Interface Mode SimpleInterface Download Project Image Allows the user to down
83. hown below File Checksum Ox07F5A651 EPROM style Raw Checksum Ox07F5A651 over address range 0x00000000 0x0007FFFF 8 2 12 Compare File gt Device Checksum This command allows the user to compare the selected file checksum to the device checksum The output window will show the sum check for both the file and the device The user may then confirm that they are the same An example is shown below Calculating device checksum Flash Checksum 0x07F5A651 User Area File Checksum 0x07F5A651 EPROM style Raw Checksum 0x07F5A651 over address range 0x00000000 0x0007FFFF 80 8 2 13 Compare File gt Device Complete Device This mode would compare the data in the device flash starting at the device start address to the corresponding data in the file The process would only stop once the entire device had been checked or differences were found Areas that are not covered by the file would be assumed to be OxFF and would therefore require a corresponding blank area on the device to be verified correctly 8 2 14 Compare File gt Device File Data Only This mode would compare the data in the file to the corresponding data on the device This is identical in behaviour to the after write readback verify process Areas not covered by the file would not be checked Typically this will be a faster operation as the entire flash does not have to be uploaded however it is therefore a less thorough process 8 3 Workspace P
84. ia the E8 see also section 3 6 1 Target Power from ES x Please select whether the ES should power the target this setting wil be retained until the project is closed Figure 3 18 E8 Target Power Supply Selection WARNING Damage to the target device may occur if the incorrect voltage setting is chosen This will be followed by the mode pin settings dialog required to place the device into Boot Mode Click OK to continue 32 Pin Settings x Please set the pin values for connection C D A BOOT Mode x RI als T 0400 BOOT Mode 2 Setting fai E JE F 0x00 WARNING Incorrect settings could damage your hardware Lox _ Coca Figure 3 19 E8DirectGeneric Device Pin Settings Note Setting the mode pins using the E8Direct requires caution Please confirm the pin settings with the hardware manual even if a default setting is available Note that in some devices changing the mode pin setting changes the maximum supply voltage If the E8 has not yet been restarted as an E8Direct device then the following messages will appear in the FDT output window Preparing for re enumeration of E8 to E8Direct Sending re enumeration command Request sent successfully closing E8 Comms At the same time Windows will re enumerate the device see also Chapter 13 E8Direct When the Select USB Device Dialog is displayed you must select which E8Directunit is to be used to set up the connection xl 1 USB
85. ii ii 101 0 Za SIS to Project OIEA 101 9 2 2 NN 101 9 2 3 Download Project image Download File radio buttona 101 9 2 4 Project Image Download File Area sese 101 9 23 Program Flash Y Erase T 101 SD AA NN 101 ODT ile Sole CON T 101 Chapter 10 Basic Simple Interface Mode sss sss 103 10 1 Options M r en iS 104 DN ti rg _ a mm 104 10 1 2 Batch Erase Mode 104 10 1 3 AutoDisconnect 104 10 1 4 Readback Verify 104 10 1 5 Request Checksum 104 10 1 6 Erase Device Before Program 104 10 1 7 Security Protection 104 10 1 8 New Settings 104 10 1 9 About 10 2 Dialog Controls ni A NINE e tol ns 105 IA A O e K REY 105 10 2 2 Download File radio DUttON concncncononncnncnononnnnnanananononanacanononnnn elen keke rae 105 10 23 Download File Arca iia aa 105 10 2 4 Program Flash Erase e A E E ds do 105 10 29 DISCO ita A A I AA aa nee ARIS 105 10 236 File elec ii cia 105 Chapter 11 Field Programming sss sees eee eee eee eee 107 11 1 Options Menu 108 11 1 1 ULogin 108 11 1 2 Batch Erase Mode 108 11 1 3 AutoDisconnect 108 11 1 4 Readback Verify seke 108 11 1 5 Request Checksum 108 11 1 6 Erase Device Before Program 108 11 1 7 Security Protection
86. ion 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 QzROM toolbar oe a Automatic Protection es ji Query Protection No Frotection Figure 2 9 QzROM Toolbar Automatic Protection Set QzROM security protection automatically on disconnect if more than one option is available a dialog will appear to select which type to automatically apply 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 may stop any further connections to that particular target device Search toolbar jon TJ amp Find in Files o Data Find Find Next Find Previus 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
87. l perform an entire device erase 10 2 5 Disconnect Clicking on Disconnect forces FDT to disconnect 10 2 6 File Selection The filename can be specified in the File Selection section by typing or browsing for each area enabled by the Download File Area checkboxes 105 106 Chapter 11 Field Programming This is a feature designed to assist FDT users to send their FDT projects to other FDT users Once a project is configured correctly and the project images are built FDT can package all required files Kernel and data files into a single fpf file This can be sent to another FDT user using the same version of FDT who can simply double click on the fpf file to start FDT and unpack the project files FDT will unpack the files and update the references to the file paths for the new location and allow programming of the Project Images using FDT Simple Interface Mode subject to the user having the correct access rights To publish create a fpf packages file Select the Project gt Field Programming gt Publish menu item when in the full FDT Workspace view Because a project image is a prerequisite for publishing a project if the project does not have a Project Image built already FDT will ask you if you want to build one now FDT will then prompt you to select an output directory for the published fpf file To run a published file select the Project gt Field Programming gt Run Published File menu item from the full
88. ldall bat file from a Dos shell session after setting up the environment variables for the compiler so that it can be run from the command line Please refer to the compiler manual for full details of how to do this An example environment batch file used to set the environment settings for the Renesas H8 compiler version 4 0a is shown below Setenv bat SET CH38 C hew tools Renesas h8 4 0 A INCLUDE PATH PATH C hew tools Renesas h8 4 0 A bin set DOS16M 1M 31M SET CH38TMP c TEMP Notes From some operating systems eg Windows 2000 cmd exe should be used rather than command com The above batch file should be modified to reflect the path of your compiler Ensure that the specified temporary directory exists and is writeable 3 2 8 How do I use the supplied demonstration User Mode Kernels To use the demonstration User Mode kernels you must first add the User Mode Micro Kernel and User Mode Test Program from the kernel directory uGenU mot and xxxxtest mot to a Boot Mode Project and build the User Area Device Image Next connect in Boot Mode and program the image to the device disconnect and reset the device into User Mode Create another project in the workspace but this time set it as a User Mode Connection Type and connect in User Mode FDT will start communications with the User Mode Test Program at 9600bps and then change to the baud rate set in the project Note that the device does not automatically
89. load the project image s enables the Download Project Image section of the Simple Interface Mode 5 3 3 Add User This button allows creation of new user accounts FDT will prompt for a user name and password then invokes the Modify User dialog 58 5 3 4 Delete User This button allows deletion of user accounts 5 3 5 Reset Pwd This button allows setting of the password for the selected user 5 3 6 Close This button closes the User Admin Dialog 59 60 Chapter 6 Configuring the User Interface When the user interface for FDT was designed an attempt was made to make frequently used operations quickly accessible and have related operations grouped in a logical order However when the user is in the middle of a long session he may find it more useful to have a different arrangement of the user interface items FDT facilitates this user customisation This chapter describes how the user interface can be arranged and how various aspects of the display can be customised 6 1 Arranging Windows 6 1 1 Minimising windows When an operation is finished on an open Editor window but it may be necessary to look at it in its current state later it can be reduced to an icon this is called minimizing the window To minimize a window click on the minimize button of the window The window is minimised to an icon at the bottom of the Editor window Note The icon may not be visible if there is another window open over the botto
90. ls T Simple Interface Hogan Hast f Figure 10 1 FDT Basic File Programming 103 10 1 Options Menu 10 1 1 Login This allows changing of which user is logged in to FDT The hotkey Ctrl Shift U also invokes the Login dialog 10 1 2 Batch Erase Mode This will change the dialog to be erase based rather than programming based The Program Flash button will change to Erase the filelimage selection buttons will be disabled and the programming options will also be disabled Clicking Erase will erase the whole device it is not possible to specify the area to erase 10 1 3 AutoDisconnect This forces FDT to automatically disconnect after programming or erase if in Batch Erase Mode so that the user does not need to press the Disconnect button 10 1 4 Readback Verify This option controls whether FDT automatically performs a read and compare operation after programming The setting is remembered between sessions 10 1 5 Request Checksum This option controls whether FDT automatically performs a checksum request operation after programming The setting is remembered between sessions 10 1 6 Erase Device Before Program This option controls whether FDT automatically performs an erase operation before programming the device This will erase all blocks in all memory areas prior to programming The setting is remembered between sessions 10 1 7 Security Protection This option controls whether FD
91. m of the screen To restore the icon back to a window either double click on the icon or click once to pop up the icon menu and select Restore or select required window from the Menu bar Window drop down menu 6 1 2 Tiling windows After some time there may be many windows open on the screen All the windows can be arranged in a tile format with none of them overlapping each other using the Tile Windows option To invoke this select the Window gt Tile Horizontally or Window gt Tile Vertically menu option All currently open windows are arranged in a tile format Windows that are minimised to icons are not affected 6 1 3 Cascading windows The open windows can be arranged in a cascaded format by using the Tile Windows option To invoke this select the Window gt Cascade menu option 6 2 Locating Currently Open Windows When many windows are open in the FDT application window it is quite easy to lose one of them behind the others 6 2 1 Locating a specific window There are two methods to find the lost window 1 To select a specific window invoke the Window menu Click on the required window from the list of open windows at the bottom of the menu The currently selected window will have a check mark next to it in the window list The window selected will be brought to the front of the display If it is minimised the icon is restored to a window 61 2 A specific window can also be selected by clicking on the tab
92. maller than the User Area and is typically used for storing an alternative boot stub for setting up communication via some other communications medium protocol Normally the User Area and the User Boot Area both start at the same address this is possible because only one is ever mapped into the memory map at one time It is only possible to program the User Boot Area from Boot Mode not from User Mode On some devices there is an additional area of flash known as the Data Area This area normally resides at the other end of the memory map to the User Area and unlike the case of the User Boot Area the Data Area is not contiguous with the User Area and always exists in the memory map 13 3 2 2 What is the difference between Boot Mode and User Mode The Renesas Flash devices have different modes of operation which are controlled by the state of the mode pins when the device is brought out of reset Most devices have an asynchronous serial Boot Mode and a User User Program Mode Generally asynchronous serial Boot Mode connections start with an autobaud sending synchronisation data packets to setup initial communications at a given baud rate Additionally for most devices the entire flash will be erased as part of the connection process thus preventing any Intellectual Property held on the device from being read from Boot Mode For a User Mode connection the device must already be programmed with some code which talks to FDT a
93. means that one Generic Boot project will work with any Generic Boot Device 3 5 15 Prior Generic Device Selection of the Prior Generic Device device allows a connection to the last device configured using Generic Boot Device It uses the fcf file which was generated when first connecting using Generic Boot Device 36 3 6 Connecting to the device This is achieved by selecting the Device gt Connect to Device menu item using the Ctrl Alt C hotkey or clicking the Connect toolbar button If a flash operation Upload Download Blank Check Checksum etc is selected before a connection is established FDT will automatically perform a connect operation first 3 6 1 ES USB Connection When connecting for the first time since opening the workspace and using the E8 USB interface board a dialog will be displayed to allow selection of whether the E8 should supply power to the target and at which voltage level The selected power level will be supplied to the target device when connecting and switched off when disconnecting The power level selection will be remembered until the workspace is closed WARNING Damage to the target device may occur if the incorrect voltage setting is chosen Target Power from ES xj Please select whether the ES should power the target this setting wil be retained until the project is closed IV Power Supply 50V Cancel Figure 3 25 E8 Target Power Supply Selection 3 6 2 ID Check Dial
94. med kernel command Go From Address 8 9 Customise Toolbars Invoked by Tools gt Customise in the Customise dialog box CI 2x Toolbars Menu Show Tooltips News Reset Figure 8 18 Customise Toolbars Dialog 8 9 1 Show Tooltips A check mark in the Show Tooltips box indicates that the action of the button will be displayed when the mouse arrow is pointing to the button If the box is unchecked no action is displayed 8 9 2 New The New button launches the Toolbar Name dialog box which allows the user to name and generate a new toolbar After entering the new name and clicking on OK the new name will be added to the Toolbars list and an empty toolbar is displayed on the interface 94 Selecting the Commands tab allows the user to select and add buttons to the new toolbar The user can place the new toolbar anywhere on the GUI by dragging it with the mouse 8 9 3 Reset The Reset button resets the toolbar to the default 8 9 4 Toolbar name Reflects the toolbar selected in the list 8 9 5 OK Clicking on OK in the Toolbar Name dialog box adds the new name to the Toolbars list on the Toolbars window and invokes a blank toolbar on the GUI Clicking on OK in the Customise dialog box saves any changes made and closes the dialog box 8 9 6 Delete If a new toolbar has been added to the Toolbars list and it is selected the Reset button is renamed to Delete Clicking on this
95. nable status output to file checkbox unchecked if no status file is required See section 4 7 for details of the contents of the status file Wait For Script Configuration xi Script File Log File Status File Eror Handling Status File Directory Ir EREN Status File Name Juste SS DE Delimiters ZU User Name M Machine Name Cancel Figure 4 3 Status File Page 4 2 3 1 Status File Directory Enter the directory that the optional status file should be created in FDT can insert additional details into the directory path such as the user name and machine name by using the U and M 4 2 3 2 Status File Name Enter the name of the optional status file FDT can insert additional details into the file name such as the user name and machine name date or time by using the U and M delimiters 45 4 2 3 3 Save This saves the FDT Script Configuration file with the default extension w4f FDT will prompt to ask if you want to execute the saved script immediately 4 2 4 Error Handling Page This is an optional page Wait For Script Configuration x Script File Log File Status File Error Handing On Script Fait Abort C Continue C Run Script qc Cancel Figure 4 4 Error Handling Page 4 2 4 1 On Script Fail Abort leave the On Script Fail radio button set to the default Abort to cause FDT to abort processing of further scripts upon encountering an error Contin
96. name Foldet eisoes ai riders cesar rise iii 78 Device lA a Ge iia 79 8 2 1 Open filename TO TERR 79 8 2 2 Add Files Td 8 2 3 Remove Files sa l9 8 2 4 Allow Docking 2519 8 2 5 Hide dD 8 2 6 Properties 80 8 2 7 Display Block usage 8 2 8 Exclude filename 80 822 9 USER BOO ATC y 5 63105 159501y x55 555r e waa ee KI s nan a era kara E ide 80 8 2 10 Download File to User Area User Boot Area keke 80 E NN AL O AA ES RAN 80 8 2 12 Compare File gt Device ChecksuM cooconcnonncnnnnnncnnnaninnnonanninanicunononicnnonanicnncnn n 80 8 2 13 Compare File gt Device Complete Device sss 81 8 2 14 Compare File gt Device File Data Only eke 81 Workspace kulin SN MN aire AEAEE EE E EEE E ERNE ARREA REENE sl Project PP a Ei 82 Configure Flash Project Flash Properties sss esse esse eee eee 83 8 5 1 A OA 83 8 5 2 Communications T abi ce s 5 soy siyay snr y xaka k ke Ne n ke ne N W N ka K KE HA We nd Ne W We MAe Weke 84 8 5 3 Dei Dn N E N ite aie SN 85 8 54 Programmer Tad d aeeoea a E Eene EE EATE EEEE Kek n pede keya kd Ki E ERENER 86 8 5 5 Module Tab E E PE N EO E T ia 88 S Record Properties Window ocooccococnnccncccnonanicanonanicnnanannononncnnononnnnnonn S A NEA 89 3 01 Block Usage Tabi Sey n n io iaa 89 6 27 QUESO Valli iii 89 8 63 A NON 90 DUAL ia 90 SAA COPY A Er e eee ates Raion digg Ke
97. nches the Open dialog box allowing the user to add S Record files to the project 8 1 2 2 Remove Files Launches a dialog to select the files to remove 8 1 2 3 Add Folder Adds a folder to the Project 8 1 2 4 Allow Docking See Section 8 1 1 2 8 1 2 5 Hide See Section 8 1 1 3 8 1 2 6 Properties Displays the project properties dialog Note that this is not the same as the Flash Properties dialog which can be reached by selecting Configure Flash Project from the FDT toolbar or device menu TI 8 1 2 7 Set as current Project Sets the highlighted project as the current active project This option is not available if the highlighted project is already the active project 8 1 2 8 Remove Project Remove the highlighted project from the Workspace This option is not available if the highlighted project is the active project 8 1 2 9 Unload Project Unloads the highlighted project from the Workspace This option is not available if the highlighted project is the active project Note that any changes to the project made since the last save will be lost when the project is unloaded FDT will not prompt to save changes before unloading 8 1 2 10 Add Files From Kernel Dir This allows the user to select files from the current kernel directory and add those files to the current project 8 1 3 Device Image Folder This contains the Device Image file s for the project The device image will be called the
98. nd allows programming Most kernels are supplied with a User Mode micro kernel and test program usually called uGenU mot and xxxxtest mot These files provide a demonstration of User Mode programming and must be programmed into the device and be executing before FDT tries to connect in User Mode User Mode does not normally force an erase of the flash during the connection process and does not autobaud to setup initial communications The demonstration User Mode test programs have the required Bit Rate Register value compiled into them for setting up initial communications at 9600 baud hence User Mode kernels need to be rebuilt for different clock frequencies Note that where the files are to be used as part of an embedded monitor the User Mode kernel files may be also output as binary files cde without the reset vector populated Some kernels use only a single file for the User Mode test program e g Protocol C kernels 3 2 3 What is the difference between User Mode and User Program Mode Some devices use an additional mode pin to protect the flash from being written or erased by mistake this pin is normally known as the Flash Write Enable pin FWE if it has to be logic high to allow programming or the Flash Write Protect pin FWP if it has to be logic low to allow programming For these devices this pin distinguishes User Mode from User Program Mode An FDT User Mode connection expects the device to
99. nd re used With this option set to Yes FDT will always reinterrogate the device for its details upon connection this allows one 87 project to work with many Generic Boot devices If this option is set to Query FDT will ask you to select whether to reinterrogate the device Double click to edit the setting Security Protection This option controls whether FDT should security protect QZROM devices as it disconnects It echoes the setting on the QzROM toolbar see 2 1 2 Select Automatic to always protect the device at disconnection Select Prompt to query the user what to do and select None to never protect the device at disconnect NB It might not be possible to reconnect to a protected device Function Map This section is for Protocol A Legacy kernels only 8 5 5 Modules Tab This shows each Kernel file name Some entries may be blank because most kernels do not use all of the modules Flash Properties gt Figure 8 12 Module Properties 88 8 6 S Record Properties Window This dialog is invoked by clicking the Properties toolbar button or from the Right Click Properties Menu when the file is open and selected in the Hex Editor window 8 6 1 Block Usage Tab This tab shows the starting finishing address and sizes of the data blocks contained in the active file tab If the file is open in the editor window double clicking on a range highlights the selected data S Record Properties 2282Test mo
100. ne as below 3 Do Nothing FDT will not change any of the current lock settings on the device Subsequently FDT will abort the operation if an attempt is made to write or erase to a locked block 122 15 3 Locking Dialog The Locking Dialog accessible from either the toolbar or the Device gt Block Locking menu controls how FDT behaves with those devices that support protected erase blocks The dialog with example device is shown below RI x borat pron Bid A r lez head Zen comectne to isconnecti 2 device with ela device with locking ability ability EBB Locked le Di Unlocked R oer crono A ses Locked C Set Locke Unlocke Leary User Unlocked Query User To Set 6e Ry E84 Locked al 2 Found S tar j Locks Uniocks f Do Nothing Ui E82 Unlocked C Do Nothing 3 ERI Unlocked TJ EBO Unlocked C Date Flash Editire CE E Figure 15 4 1 On Connect Block Lock Configuration Dialog The left hand side of the dialog controls how FDT behaves as it connects to a device with locking ability See more on this in the Connection section 2 On Disconnect The right hand side of the dialog controls how FDT behaves as it disconnects from a device with locking ability See more on this in the Disconnection section 3 Lock State Tree View The central part of the dialog shows the lock status of the device as a tree view similar to the Erase Blocks Dialog The view highlights several important pieces of
101. ng options By default status file writing will be disabled Ticking the Enable checkbox will open the Directory and Name fields for editing allowing the user to specify where the status file will be created FDTScript Status v1 0 lt The configuration file version CurrentScript lt The location of the current script being executed or the search path being used whilst waiting UserID lt The user name of the person running the copy of FDT writing to this file Machine lt The machine name the copy of FDT is executing on LastUpdate lt The time and date this file was last changed CurrentStatus lt The current state of FDT This will be either waiting if FDT is looking for a script processing if FDT has found a script and is using it error processing if something has gone wrong with the script or waiting for user input if a dialog is waiting for user intervention If FDT exits wait for file mode correctly this entry will be blanked PreviousScript lt The location of the previously run script PreviousState lt The outcome of the previously run script This will either be COMPLETED or FAILED JobNo lt An incrementing number of successfully completed runs This number will wrap back to 0 when it reaches 32 768 When FDT begins a Wait For File session with status writing enabled it will first check for the existence of the specified file If it is not found then it will be crea
102. ng will now be aborted Alert output To retry use Tools Wait for Script ak Alert output Run configuration and select the configuration Alert QUEUE III E E AE I III ICICI ICICI E AE AE ICICI AKA Stop script processing Abort 4 2 4 2 Save This saves the FDT Script Configuration file with the default extension w4f FDT will prompt to ask if you want to execute the saved script immediately 47 4 3 Wait For Script Edit Configuration This is invoked from the Tools Wait For Script Edit Configuration menu and allows you to edit the configuration settings for a given configuration file 4 4 Wait For Script Run Configuration This is invoked from the Tools Wait For Script Run Configuration menu and allows the user to browse to select the desired Wait For Script Configuration file w4f FDT then enters Wait For Script mode la Fle Edt Vew Project Tous Widow Device HR 8 jj gt 4 mv oz zwe 5 EE aieeaa Status Path L apid abel b viano Opened EV_FDT sriptsltest fsf Last Modified 13 Apr 06 16 11 58 Reedy p kane F m Figure 4 5 Wait For Script execution 4 5 Wait For Script Script Commands A script file is nothing more than a text file containing a series of commands that FDT will recognise one per line Each command may also have a series of arguments associated with it on the same line By default these script fil
103. nload Description download the selected project image to the device Arguments Required Download the device image One of Download the named file Download the user image Download to the user area userboot Download the user boot image Download to the user boot area This can also be used to download to the User Area both Download the user and user boot image only valid when specifying image norebuild Optional Don t rebuild the image s before downloading even if they are out of date only valid when specifying image Perform a readback verify when the download completes Example Download imagel user norebuild verify Download C files MySrecord mot userboot 4 5 4 Erase Description erase specified flash blocks on the device Arguments lt block num s gt A list of block numbers to erase written Erase all blocks currently marked as written device Erase the entire device Example Erase 0 1 4 7 Erase device 50 4 5 5 BlankCheck Description check if the device is blank Arguments Tells FDT to check the user boot area of flash if supported Stop processing the script if the device is not blank stoponblank ssing the script if the device is blank Example BlankCheck BlankCheck userboot stoponwritten 4 5 6 Upload Description upload data from the device Arguments lt filename gt Required File to write the upload out to will
104. nown zi Figure 3 30 Upload Image Dialog Tree The Upload via erase block has the same selection functionality as the Erase block dialog itself i e Select All will check every block a complete device upload and Select Written will check the non blank blocks an upload of programmed areas 3 10 Performing a Blank Check For kernels which support it a blank check can be performed by selecting the Device gt Blank Check menu item This will perform a blank check on all available device areas e g User and User Boot 3 11 Disconnecting from the device This is achieved by selecting the Device gt Disconnect menu item or clicking the Disconnect toolbar button 3 12 Saving a Workspace When the File gt Save Workspace menu option is selected the FDT workspace can be saved 3 13 Closing a Workspace Select File gt Close Workspace to close the FDT workspace If the workspace or its project has changed a dialog box asks if the user wishes to save the project Select Yes if the workspace is to be saved No if the workspace is not to be saved and Cancel to return to the workspace If you are prompted to save the session then select Yes These prompts can be switched on and off by changing the setting in the Workspace tab of the Tools gt Options dialog 3 14 Exiting FDT To exit FDT select File gt Exit press the Alt F4 key or select the Close option from th
105. og For devices which support the ID Check for unlocking the device the ID check dialog will be displayed if the devices are not unlocked with automatic unlocking The Browse button allows selection of a mot or an ID file to collect the ID codes from LT lt o for jz js i fs je jr sewe Figure 3 26 ID Check Dialog 37 3 6 3 Locking For devices which support locking of erase blocks FDT may also check with the user whether to unlock the device This is dependent on the current locking settings see more on this in the Locking Connection section Flash Development Toolkit 3 xj 9 The device reports one or more erase blocks are currently locked L Should FDT temporarily disable this locking to allow erase and program Dad Figure 3 27 Locking Query Dialog 3 7 Programming the Data to the FLASH ROM 3 7 1 Programming an individual file to the User Area normal flash area 1 Select Project gt Add Files or press the INS key to add the file to be downloaded to the project 2 Click the right mouse button on the file displayed in the workspace window and select Download File Programming will be completed when Image successfully written to device is displayed in the output window 3 7 2 Programming multiple files to the User Area normal flash area 1 Add all the required target files to the project by selecting Project gt Add Files or pressing the INS key Note that multiple files can be add
106. oot Reset Pin Settings FDM connection only 36 3 5 14 Generic Boot Reinterrogate on connect option eseeene eee teeeeees 36 LS Prior Genero DEVICES a Wer ITA E O A ber 36 Connecting tothe device nvidia 37 95641 ES USB Connechonis tend iiend tien Galion di i die SEE SEH A Key ents 37 30 2 Ghe RHO A tears tes A aa 37 BGS E a aT 38 Programming the Data to the FLASH ROM 38 3 7 1 Programming an individual file to the User Area normal flash area 38 3 7 2 Programming multiple files to the User Area normal flash area 38 3 7 3 Programming an individual file to the User Boot Area 38 3 7 4 Programming multiple files to the User Boot Area 3 7 5 Programming some files to the User Area and other files to the User Boot Atea 39 Erasing Data from the FLASH ROM 40 Uploading the FLASH ROM Data sese 41 Performing a Blank Checkers tacita dad iii r Ke y 42 Disconnecting from the device sss eee 42 Savinga Work pace dee pesa ath ia 42 Closing a Workspace hetee ina AA K ei aia A AAA AR 42 Exts PO Daria iia 42 Chapter 4 Wait For Script 2 4 4 hte i 43 Al Walt Bor Script OVervie We essa iveco W Et E Va Ke ven Ena SAA He E EE KE EB KA 43 4 2 Wait For Script New Configuration EE rrr ekekekeke yekeke keke keke kek k ee 43 E Script Pile Rage 255 se sages ski EYE EEE SE E EEG Kake K 43 ADAL DECO td d
107. or one flash area at a time which will leave the other tabs empty although they can still be edited manually To close an open file click the cross in the top right corner of that file If the file is unsaved FDT will prompt to ask if you want to save the open file unless the shift key is held down whilst the cross is clicked After closing and saving FDT will ask if you wish to add the file to the current project if it is not included already When saving a ddi file as a different file type e g S Record then FDT is not able to output the data from each of the DDI tabs into a single file In this case it will issue a warning that only the data from the active tab will be saved into the file The active tab is the currently viewable tab NOTE This may result in data loss when compared to the original DDI file Also note that FDT will default to saving text based file formats e g S Record or DDI as uppercase even if the original file was lowercase This is to improve compatibility with other Renesas tools This behaviour 1s new from 3 06 and can be modified by adding an entry into the FDT ini file found in the root install directory ECXSRecordView LowerCaseSRecordSave 1 This will make FDT case aware and ensure it saves lowercase files in their original format The above window has a right click pop up menu that contains the following items 8 8 1 Cut This will remove the contents of the highlighted block from the window an
108. place the new toolbar anywhere on the GUI by dragging it with the mouse When a user created toolbar is selected in the Toolbars list the Reset button is renamed to Delete Clicking on this button will remove the new toolbar from the list and from the GUI The Reset button resets the selected toolbar to its default settings 63 64 Chapter 7 Menus Mem Mem Bar Ir dustrial Controller Flash Development Toolkit File Edit View Project Tools Window Device Help a s Bes SP A P Connect to Device Ctri lt C Ps Disconnect Hot Key GG Industiial Controles CO Erase FLASH Blocks COARSE E Industrial Controller BY Blank Check Ctrl Alt B E E Device Image Upload Image CoRR i a j Ats w E Doniad Re Fil GrisAkeP Y FDT Image Files Z FLASH Checksum Cirl Alt S GY S Record Files 2 Go From Address GITR G Ipsis Chris Bres lt SI Z ConfigurelFlash Project AR ShIFt4R Mem Option Figure 7 1 FDT Menus 7 1 File Menu The File menu is used for aspects of the program that access data files 7 1 1 Close This will close the current active file in the editor window 7 1 2 New Workspace Launches the New Workspace dialog box allowing the user to specify the name and location of a new workspace and creates a new workspace directory 7 1 3 Open Workspace Launches the Open dialog box allowing the user to open an existing FDT Workspace file aws 7 1 4 Save Workspace
109. 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 witho
110. pt configuration See Chapter 4 for further details 7 5 7 Access Rights 7 5 7 1 Access Rights Login This allows changing of which user is logged in to FDT The hotkey Ctrl Shift U also invokes the Login dialog See Chapter 5 for further details 7 5 7 2 Access Rights Change Password This allows the currently logged in user to change their password See Chapter 5 for further details 7 5 7 3 Access Rights Administration This allows configuration of user names and passwords for restricting access to FDT See Chapter 5 for further details 70 7 6 Window Menu The Window menu is used to alter the display of currently open windows within the FDT GUI Files displayed in the Editor window are appended to the following list these files are identified by their filename and the currently active file is denoted by check mark 7 6 1 Cascade This option allows multiple windows to be staggered so that each file is visible 7 6 2 Tile Horizontally This option allows the windows to be displayed with maximum possible horizontal width 7 6 3 Tile Vertically This option allows the windows to be displayed with maximum possible vertical height 7 6 4 Arrange Icons This option arranges the file icons in rows at the bottom of the screen 7 6 5 Close All This option closes any files open in the editor window 7 6 6 file name This option becomes active when a file name is selected and checked 7 7 Device Menu
111. rd tm ISI Corra mot Select an Intertace type to connect to the target device with J Deve 4 voa Normalty th s will be Direct Connection or simply left blank 1 3 Target Mes Orive mol E Data ok E Algora hm Select interface Direct Connection Y Bsk Corcel _ Figure 3 15 Communications Port 3 5 4 Generic Boot FDM Pin Settings FDM connection only If the FDM is selected the following screen will be shown Set the mode pin settings required to place the device into Boot Mode Click OK to continue i x Please set the pan values for connection Fwx S K MD4 MD3 MD2 MD1 MDO PoOupas TT rrr r f 000 E E EE SIT WARNING Incorect setings could damage your hardware Figure 3 16 FDM Generic Device Pin Settings 31 Note Setting the mode pins using the FDM requires caution Please confirm the pin settings with the hardware manual even if a default setting is available Note that in some devices changing the mode pin setting changes the maximum supply voltage When the Select USB Device Dialog is displayed you must select which FDM unit is to be used to set up the connection x 2USB devices located HMSE FDM anced HMSE FDM SN 93516 Closed ema Figure 3 17 Select USB Device 3 5 5 Generic Boot E8Direct Pin Settings E8Direct connection only If E8Direct is selected the following two screens will be shown The first allows optional power to be supplied to the target board v
112. roject 8 2 4 Allow Docking Allows the Workspace window to dock or be floating 8 2 5 Hide Hides the Workspace window 79 8 2 6 Properties Launches the device file properties dialog box 8 2 7 Display Block usage Launches the S Record Properties dialog box and displays the Block usage tab 8 2 8 Exclude filename If a file is excluded it will not be used to form the built image if Rebuild Image is selected Once selected 555 as excluded using the right mouse click it is possible to Include filename 8 2 9 User Boot Area User Boot Area When this option is selected ticked the selected file is tagged as being destined for the User Boot Area If not ticked it will default to the User Area This option is only available if the target device supports a User Boot Area 8 2 10 Download File to User Area User Boot Area Downloads the selected file to the device FLASH memory Note that the Flash Area used is determined by whether the file is tagged as a User Boot Area file 8 2 11 File Checksum The file checksum returns the checksum for the file using the algorithm in the kernel EPROM style and also a raw checksum The raw checksum is a simple 32 bit addition of the byte values within the range of the flash The EPROM style checksum pads the data with OxFF s to the next EPROM size eg 64Kb 128Kb etc before calculating the checksum The result is shown in the output window An example is s
113. roperties Invoked from the Workspace pop up menu item Properties See also section 8 1 1 4 The Workspace Properties dialog box shows details of e The Workspace Name e The filename and path e The time and date when the workspace was last saved Workspace Properties 21x Name Industrial Controller R Location F FDT Workspaces Industrial Controller Industrial Co Last modified 13 48 38 Tuesday March 11 2003 Cancel CPU family All Flash Devices Tool chain Information No workspace information available T Show workspace information on workspace open Figure 8 6 Workspace Properties 81 8 4 Project Properties Invoked from the Project pop up menu item Properties The Properties dialog box shows details of e The name of the project e The location and the filename of the project file e The last modification date and time Properties Figure 8 7 Project Properties 82 8 5 Configure Flash Project Flash Properties The Configure Flash Project dialog box can be invoked from the Configure Flash Project toolbar button or Device Menu item It defaults to being docked at the bottom of the FDT window but can be dragged to dock in other locations or to float To prevent unintentional docking hold the Ctrl key whilst dragging 8 5 1 KernelTab This shows the kernel path frequency protocol clock multipliers and clock mode Double clicking on these entries when disconnecte
114. rotection Automatic Message Level High Readback Verification No Reset on Disconnect No Connection Reset Default Reinterrogate on Connect NIA Security Protection NIA Function Map Write NIA Read NIA Erase NIA Blank Check NIA Data Buffer Unknown Bytes Available Unknown 4 gt Af PIi Kernel A Communications A Device A Programmer A Modules Figure 8 11 Programmer Properties 86 Device Protection This allows the user to select either automatic protection Automatic or interactive protection Interactive to protect the FLASH device from accidental over erasure and over programming Automatic protection will erase blocks from the device prior to programming as necessary Interactive protection will ask the user before an erase occurs In addition None can be selected to disable device protection Double click to edit the setting Whilst connected to a device FDT keeps track of the state of the FLASH blocks and is able to determine when a programming operation will over program a region of FLASH memory Note If device protection is disabled the user is responsible for erasing the device prior to programming Message level The user can select either Standard or Advanced message levels A Standard message level generates general FDT target device status messages regarding high level communications details An Advanced message level generates more detailed information regarding lower level communications details Double cli
115. s arising out of such detachment 12 This document may not be reproduced or duplicated in any form in whole or in part without prior written approval from Renesas 13 Please contact a Renesas sales office if you have any questions regarding the information contained in this document Renesas semiconductor products or if you have any other inquiries Table of Contents L Catt OMS vaio add 1 ii TT ii 111 Abbreviations aga ro o gt JrJrJJ J JJJi 111 1v Document Conventions 55 54 sax yyad aniy ewana x keyey yebi reyan ke d iv Chapterl Introduction smertane niia ir 1 RH A A O OS ep O O 1 1 2 7 SING W SA TAN 1 Chapter 2 System OvervieW ieoi ne n aA seek eno non eda kak Ya 3 2 1 User Interface 2 1 1 Menu bar A A O A A E 6 LUIS ria 9 DRA A TSE ORTA 10 22 ad 10 SS A O OS NANO 11 Chapter 3 Using EDT 0d choca eatin 13 LA QUICK tcs 13 3 2 Background TOO urea 13 3 2 1 What are the User Area User Boot Area and Data Areas 13 3 2 2 What is the difference between Boot Mode and User Mode 14 3 2 3 What is the difference between User Mode and User Program Mode 14 3 2 4 What are Protocol A Protocol B Protocol C and Protocol D Kernels 14 3 2 5 What are the fcf and fdm files can I edit hem sss 15 3 2 6 Can I use FDT if I do not have Local Machine Administrator rights for UU H SEN E A 15 3 2 7 How do I tecompile a Kernel siyi Te bexi eee a al
116. sages 113 Preparing for re enumeration of E8 to E8Direct Sending re enumeration command Request sent successfully closing E8 Comms At this point the E8 will re identify itself to Windows as an E8Direct device NOTE it will remain as an E8Direct device until next unplugged or the machine is powered down 114 File Acton ew Help de B m 59 18 a PC C 2 Computer Y ze Disk drives E B Display adapters Z DVOJCD ROM drives 2 Floppy disk controllers Sh Floppy disk drives Gy IDE ATAJATAP controllers 6 5 Keyboards E Mice and other pointing devices e Monitors EBY Network adapters 2 4 Ports COM amp LPT Figure 13 2 ESDirect enumeration 13 2 Hardware Differences The FDM had no capability of supplying the target power whereas the E8Direct can supply 3 3V or 5V and the FDM E8Direct pin usage is different This means that it is not possible to simply swap an FDM for an E8 The general purpose I O pins on the FDM were labelled as MDO to MD4 and FWE and they had a direct mapping with the mode pins with matching names on the target devices Because the number of available general purpose I O pins is reduced on the E8 and the locations on the 14 pin header are different we can no longer have a direct mapping between device mode pin names and E8 I O pins so we have chosen to label them as A B C and D The pin settings required for E8Direct will have
117. see the Disconnection section If the erase block does not support locking this entry will read N A By default the disconnect state will mirror the lock state found at connection To change this default check the Enable Editing box next to the tree view This will enable the view and allow the disconnect settings to be changed Double clicking the setting will toggle it s current state Note if FDT is not yet connected to the device then this tree will be blank In addition the Enable Editing checkbox will be unavailable 124 15 4 Disconnection Depending on the current disconnection setting selectable from the Locking Dialog see section 15 3 FDT will do one of three things when a user chooses Disconnect from the toolbar or menu 1 Automatically Set As part of the disconnection process FDT will automatically lock and unlock those blocks specified in the locking dialog NB should locked blocks need unlocking FDT will prompt to confirm the action as it would require those blocks to be erased FLASH Development Toolkit i ES 9 FDT will unlock the Following blocks but this will require them to be erased EB4 OXODOF8000 OXODOFIFFF Continue Yes No Erase Confirmation Message Figure 15 6 If the user selects Yes FDT will lock and unlock as appropriate If the user selects No then no erase will occur no locks will be set however the disconnection operation will continue 2 Query User If t
118. select if the window is docked or if it can float around the main window 8 1 1 3 Hide Invoking Hide conceals the Workspace window It is restored by View gt Workspace 8 1 1 4 Properties This option displays information about the Workspace including the file path Workspace Properties 215 Name industnal Controler ES T FAFDT Workspaces Industial ControlleN IndustialCo Last modified 13 48 38 Tuesday March 11 2003 Cancel CPU family All Flash Devices Tool chain Infomation No workspace information available T Show workspace information on workspace open Figure 8 2 Workspace Properties 76 8 1 2 Project The Project is the next item in the hierarchy below the Workspace In the following example the Workspace is called Industrial Controller and there are two projects the first is also called Industrial Controller and the second is called User Mode Reprogramming E Industrial Controller El E Industrial Contro Add Files a S Record Files i E 2282Test mo B N le uGenU mot Add Folder is User Mode Reprograr e Allow Docking Hide Properties Set as Gurrent Project Remove Project Unload Project Add Files From Kernel Dir Figure 8 3 Workspace Project In addition to the Allow Docking and Hidemenu items inherited from the workspace the pop up menu for Projects has the following items 8 1 2 1 Add Files Lau
119. stem User s Manual Renesas FLASH Development Toolkit 3 07 for Windows 98SE Me Windows NT 4 0 Windows 2000 and Windows XP Publication Date Rev 8 00 October 31 2006 Published by Sales Strategic Planning Div Renesas Technology Corp Edited by Customer Support Department Global Strategic Communication Div Renesas Solutions Corp O 2006 Renesas Technology Corp All rights reserved Printed in Japan RenesasTechnology Corp Sales Strategic Planning Div Nippon Bldg 2 6 2 Ohte machi Chiyoda ku Tokyo 100 0004 Japan ENESAS RENESAS SALES OFFICES http www renesas com Refer to http www renesas com en network for the latest and detailed information Renesas Technology America Inc 450 Holger Way San Jose CA 95134 1368 U S A Tel lt 1 gt 408 382 7500 Fax lt 1 gt 408 382 7501 Renesas Technology Europe Limited Dukes Meadow Millboard Road Bourne End Buckinghamshire SL8 5FH U K Tel lt 44 gt 1628 585 100 Fax lt 44 gt 1628 585 900 Renesas Technology Shanghai Co Ltd Unit 204 205 AZIACenter No 1233 Lujiazui Ring Rd Pudong District Shanghai China 200120 Tel lt 86 gt 21 5877 1818 Fax lt 86 gt 21 6887 7898 Renesas Technology Hong Kong Ltd 7th Floor North Tower World Finance Centre Harbour City 1 Canton Road Tsimshatsui Kowloon Hong Kong Tel lt 852 gt 2265 6688 Fax lt 852 gt 2730 6071 Renesas Technology Taiwan Co Ltd 10th Floor No 99 Fushin
120. t Files saved from this view will have no data for these areas internally FDT treats this data as OxFF despite what may be read in 117 142 Security Protection QzROM also introduces the concept of Security Protection into FDT which is optionally set as FDT disconnects Note once set this cannot be undone The majority of devices have two levels of protection Full which prevents any later reconnection to the device or None which allows reconnection normally Newer devices have more levels allowing a partial protection of the device and yet still allowing a later connection but with the protected data region masked There are three options for the setting of security protection 1 Automatic FDT will protect the device as it disconnects The level of protection will be determined when Automatic is initially selected typically Full If the device offers multiple levels of protection then a dialog will appear to allow the user to select the level that should automatically be applied Q2ROM Protection Type Protect on Disconnect oxo000 080 OXDODOFFFD Full 0000090 OXDOO0FFFD Ful 000 080 Ox0000 060 Pexlisl Figure 14 2 Automatic Protect choice 2 Prompt FDT will ask what to do during the disconnect i e whether to protect or not The choice is between full protection or other levels if supported by the device or no protection at all The default is No Protec
121. t and interface if available from the drop down list then click the Next button Note that in addition to the serial ports there is also an option to use the FDM USB interface board For some kernels there are also other port options such as USB Direct eg for the 2215UF E8 E8Direct and FoUSB For Protocol A legacy kernels the HMSE UPB interface is available in addition to Direct Connection Communications Port xj y Device lrmage A Target files iS LCD mot LN Keyboard m 5 Comms mot Device Image EY Target files Fa Drive mol E Data mot rithm mg The FLASH Development Toolkit supports connection through the standard PC Serial port and the USB port Use this page to select your desired communications port All settings may be changed after the project is created Select port TIN Select an Interface type to connect to the target device with Normally this will be Direct Connection or simply left blank Select Interface Direct Connection v lt Back Cancel Figure 3 4 Communications Port 22 3 4 4 Device Settings Enter values for the device settings enter the input clock then select the main and peripheral clock multipliers from the drop down lists and click the Next button Device Settings 3 x Please enter the specific device options based on H8S 2282F using Protocol B ace Indy ista j Select the extemal clock or the External Clock
122. t xi Block Usage Cursor Value H 00000000 H 00000003 H 00000004 H 00001000 H 0000111D H 0000011E Figure 8 13 S Record Properties Block Usage 8 6 2 Cursor Value This tab shows various representations of the data at the cursor position The display depends upon whether the display unit is set to Byte Word or DWord Note that it assumes data alignment of the display unit size so for example the same value is displayed wherever the cursor is positioned within a DWord S Record Properties 2282Test mot Block Usage Cursor Value OOOO Big Indian Cursor Position 0x00000000 Value 0x00001000 0x00100000 Decimal value signed 000040965 01048576 Decimal value unsigned 00004096 01048576 5 7397185e 042 1 4693679e 039 Float value Figure 8 14 S Record Properties Cursor Value 89 8 6 3 Selection Value This tab shows various representations of the data that is currently selected The display depends upon whether the selection is a Byte Word or DWord S Record Properties 2282Testmot Block Usage Selection Value OIE aia Little Endian Selection size DWORD DUORD Value 0x00001000 0x00100000 Decinal value signed 00004036 01048576 Decinal value unsigned 00004095 01048576 Float value 7397185e 042 1 46935792 039 Figure 8 15 S Record Properties Selection Value 8 7 Output Window The Output window is one of the main windows contained in the FDT GUI
123. t F4 Edit Commands Undo Ctrl Z Redo Ctrl Y Cut Ctrl X Copy Ctrl C Paste Ctrl V Select All Ctrl A Find Ctrl F Find In Files F4 Replace Ctrl H Tools Commands Login Ctrl Shift U Simple Interface Commands Login Ctrl Shift U View Workspace Alt K Output Alt U 11 12 Window Device Description View as ASCII View as Bytes View as Word View as Dword Align to 8 Bytes Connect Erase Flash Blocks Blank Check Upload Image Download Active File Flash Checksum Go From Address Block Locking Cancel Operation Configure Flash Project Data File Suppress request to save changes to a data file when closing it do not save changes Hot Key Alt A Alt 1 Alt 2 Alt 4 Alt 8 Ctrl Alt C Ctrl Alt E Ctrl Alt B Ctrl Alt U Ctrl Alt P Ctrl Alt S Ctrl Alt G Ctrl Alt L Ctrl Break Alt Shift R Hold Shift key when closing data file Chapter 3 Using FDT 3 1 Quickstart The stages required in order to program a device are as follows 1 Start FDT by selecting Start gt Programs gt Renesas gt Flash Development Toolkit3 07 then the Flash Development Toolkit3 07 shortcut see section 3 3 2 Create a Workspace and Project see section 3 4 1 3 Configure the Project using the Flash Project Wizard select device kernel port mode etc see sections 3 4 2 to 3 4 8 or section 3 5 for Generic Boot 4 Add the file or files that you want to download to the project see sec
124. t File Log File Status File Error Handling Description j can type a description for this configuration here Script file Settings File Script Path Wildcard Poll for file every 1000 milliseconds When found wait 100 d milliseconds before executing file Cancel Figure 4 1 Script File Page This is the only essential page in the wait for script configuration 43 4 2 1 1 Description This is an optional text description that may be used to describe e g who created the file why it was created what it does etc It is not used in any way other than for display 4 2 1 2 Script Path This is the only mandatory field This edit box allows the user to set up where to find the script file to run This can either be a specific file e g c Scripts MyScript fsf or a directory and wildcard combination e g c Scripts fsf The File button to the right of the edit field invokes browse dialog to allow the user to navigate to the file they want to use The Wildcard button to the right of the Wildcard edit field invokes a standard Windows directory selection dialog If a directory is chosen from this dialog then a trailing fsf fsf is the default script extension will also be appended to the path as a convenience to the user This field can also be edited manually 4 2 1 3 Timings This allows user control over how often FDT polls for the script file and how long
125. t on Disconnect Gxf1000E 080 Sx0000FFFD Full Cancel No Protection Figure 14 3 Disconnect Protect choice 3 None FDTwill not protect the device on disconnect As the disconnect actually happens the result of the operation will be echoed to the Output window There are several ways of changing this setting depending on the current mode of operation 118 14 2 1 Toolbar In full FDT mode and with a QZROM based project the QZROM toolbar will be enabled This shows the currently chosen option which can be changed by simply clicking on an adjoining icon 0 ROM zi nas Figure 14 4 Automatic 0 ROM zi a e Figure 14 5 Prompt ozROM ES y Figure 14 6 None Note clicking on the icons will not immediately protect the device This is still merely the current disconnect setting 14 2 2 Project It is also possible to change this option from the project properties dialog as well as viewing the current setting This is done from the Programmer tab Flash Properties E Device Protection Message Level Readback verification Reset on Disconnect Connection Reset Reinterrogate on Connect Security Protection Function Map Write Read Erase Blank Check Data Buffer Bytes Available Figure 14 7 Security Protect property Double clicking on the Security Protection field will bring up a new dialog allowing the entry to be changed 119 Q2ROM Protection Type Protect on Disconne
126. table for automobile applications Renesas products are not designed manufactured or tested for applications or otherwise in systems the failure or malfunction of which may cause a direct threat to human life or create a risk of human injury or which require especially high quality and reliability such as safety systems or equipment or systems for transportation and traffic healthcare combustion control aerospace and aeronautics nuclear power or undersea communication transmission lf you are considering the use of our products for such purposes please contact a Renesas sales office beforehand Renesas shall have no liability for damages arising out of the uses set forth above 8 Notwithstanding the preceding paragraph you should not use Renesas products for the purposes listed below 1 artificial life support devices or systems 2 surgical implantations 3 healthcare intervention e g excision administration of medication etc 4 any other purposes that pose a direct threat to human life Renesas shall have no liability for damages arising out of the uses set forth in the above and purchasers who elect to use Renesas products in any of the foregoing applications shall indemnify and hold harmless Renesas Technology Corp its affiliated companies and their officers directors and employees against any and all damages arising out of such applications 9 You should use the products described herein within the range specified by Renesas
127. ted and FDT will continue If it is found the file will be opened and checked If CurrentStatus is blank implying that a previous session exited correctly and that no one else is using the file FDT will continue If an entry is found in CurrentStatus e g Processing then FDT will alert the user via a message box that a previous session may have crashed or that another copy is running and using this file also The option will then be given to continue and overwrite the values or abort 56 Chapter 5 Access Rights 5 1 Access RightsO verview To prevent accidental changing of settings when using FDT to program devices especially in a multi user environment the Access Rights feature allows creation of usernames and passwords to give different levels of access to different users Typically there would be three levels of access rights Administrator level which allows the user to create and modify user accounts Supervisor level which allows project creation and editing SIM User level which allows a Simple Interface Mode user the right only to program the device image from Simple Interface Mode A supervisor would need to configure the project before a SIM User could use FDT 5 2 Enabling Access Rights FDT is supplied by default with the user accounts specified above but without passwords set You will not need to log in to FDT until the Access Rights feature is enabled by setting the password for the built in Administrator account T
128. tions 8 1 2 1 8 2 2 3 7 You can now download individual files by right clicking on them in the Workspace Window or merge multiple files into a device image using the Project gt Rebuild Image menu item and download that using the Project gt Download Image menu item Alternatively to start in FDT Basic Simple Interface Mode 1 Select Start gt Programs gt Renesas gt Flash Development Toolkit3 07 then the Flash Development Toolkit3 07 Basic shortcut see section 3 3 2 Configure the settings using the Wizard select device kernel port mode etc see sections 3 4 2 to 3 4 8 or section 3 5 for Generic Boot 3 Select the flash area that you want to program User Area or User Boot Area 4 Select the file to program for each enabled area 5 Select the Program Flash Button 6 Disconnect when programming is completed 3 2 Background Information 3 2 1 What are the User Area User Boot Area and Data Areas The normal area of internal flash for Renesas devices for user programs is known as the User Area This is where the code is stored which gets executed when the device is reset into User Mode The User area can normally be programmed from a Boot Mode or User Mode connection On some devices there is an additional area of flash known as the User Boot Area This is where the code is stored which gets executed when the device is reset into User Boot Mode The User Boot Area tends to be much s
129. to the device hardware manual for details of how to calculate the Bit Rate Register value 3 3 Starting FDT 3 3 1 Starting FDT without Security or Simple Interface Mode enabled To start FDT open the Start menu of Windows and select Programs gt Renesas gt Flash Development Toolkit3 07 then the Flash Development Toolkit3 07 shortcut The Welcome dialog box will open by default axl arly a Open a recent project workspace Administration e ES C Browse to another project workspace Figure 3 1 Welcome Dialog To create a new workspace select Create a new Project Workspace and click the OK button see section 3 4 1 for details To open a recent workspace select Open a recent project workspace and the workspace to be opened from the list box To open an existing workspace which is not in the list of recently used workspaces select Browse to another project Workspace Finally click the OK button 3 3 2 Starting FDT in Basic Simple Interface Mode To start EDT in Basic Simple Interface Mode open the Start menu of Windows and select Programs gt Renesas gt FLASH Development Toolkit 3 07 then the Flash Development Toolkit3 07Basic shortcut The previous FDT Basic settings will be restored and new settings can be entered by selecting the Options gt New Settings menu item 17 3 3 3 Starting FDT by doubl
130. ts password security enabled lt FDT path AFDT exe arl lt Username gt lt Password gt DISCRETESTARTUP w4fRun lt filename gt eg C Program Files Renesas FDT3 07 FDT exe arl Administrator password DISCRETESTARTUP w4fRun C Program Files Renesas FDT3 07vnyconfig w4f 3 3 9 6 Starting FDT Basic Simple Interface Mode from the command line lt FDT pathAFDT exe DISCRETESTARTUP SimpleInterfaceMode u lt User Area Filename gt b lt User Boot Area or Data Area Filename gt eg CWProgram FileNRenesaAFDT3 0NFDT exe DISCRETESTARTUP SimplelnterfaceMode u c upload1 mot b c upload0 mot Note that the u lt User Area Filename gt and the b lt User Boot Area gt are optional Additionally adding r causes the last settings to be restored and the configuration Wizard will not be displayed 19 3 4 Creating a New Workspace and Project When FDT is started in full mode not FDT Basic Simple Interface Mode a workspace and project must be opened or created See Chapter 10 Basic Simple Interface Mode for details on programming without setting up a workspace and project 3 4 1 New Project Workspace x Projects Workspace Name findustl Controler Project Name industrial Cortrofer Directoy CFDT Workspaces Industrial Controler CPU family ZTRETTETE TEEN gt Tool chain None zj Figure 3 2 New Workspace Enter the workspace name the project n
131. ttings OFS Please select the pn settings BOOT Mode using Clock Mode custom Operating Mode END A BOOT Mode m p r T 0400 1423 Target files D 37 Oriye mol BOOT Mode S ls ee a file et F 0x00 lt Back Cancel Figure 3 9 E8Direct Pin Settings 3 4 8 Reset Pin Settings Only if the FDM or E8Direct is selected Select the Operating Mode and Clock Mode and if User Defined set the Reset pin settings Set the Reset Outputs and the Reset Setting for the mode required immediately after disconnection Click the Finish button Mode Outputs sets which pins are driven by the FDM Mode Setting sets whether output pins are driven High checked or Low Unchecked Notes Setting the mode pins using the FDM or E8Direct requires caution Please confirm the pin settings with the hardware manual even if a default setting is available Note that in some devices changing the mode pin setting changes the maximum supply voltage RESET Pin Settings xi Please select the pin settings tor a device RESET RESET Mode using Cock Mode TREN Cree n GH Display Tana Z J bek y Operating Mode fu User Defined Sa Target files u2 LCD mot E Keyboard a EA PAX SCK MD4 MD3 MD2 MDI MDO rer RSET CF F FI PTT enen ie ag Target Hes Outputs Gire RESET eo rr PP r roo Setting coloured pins are clock mode pins lt Back sa Figure 3
132. ue allows FDT to ignore the fact that the error occurred and continue processing further scripts Run Script forces FDT to process an error handling script upon encountering an error The script file to execute on script fail can be entered in the input box manually or by using the browse button Typically a fail script may contain the disconnect command an alert command and the abort command Script processing failure handling script example 1 Disconnect to allow reconnection Disconnect Display a message to the user Alert OUT DUE CII E E AE E ICICI ROI RRA RA Alert output THE CURRENT SCRIPT PROCESSING HAS FAILED kkkkkkkkkkkkkx Alert OUE pU t II II E AE E E E E E FE E E AE E AE AE E AE E E FE KE E AE AE E RAR Alert output The script which was being processed will now be deleted 46 Alert output Please reset the board and regenerate the script to retry Alert QUEUE RIOR OOOO Delete the script file which failed so that FDT will wait for it to be regenerated before retrying delete script Script processing failure handling script example 2 Disconnect to allow reconnection Disconnect Display a message to the user Alert QUEUE II CII E AE III ICICI ICICI E AE FE ICICI ICICI ICICI ICICI ICICI III I ICI I I Ir Alert output THE CURRENT SCRIPT PROCESSING HAS FAILED kkkkkkkkkkkkkxk E EEI E ee eas Alert output Wait For Script Processi
133. using the wizard This will ensure that the new settings are generated as required by FDT and is a very quick process using the Project Wizard The workspace files used by FDT versions prior to version 3 0 are not compatible with FDT3 07 due to the enhancements since then Workspaces from previous versions of FDT from version 3 0 can be opened with FDT3 07but should not be opened with the original version again after they have been upgraded Any errors related to SyntaxHighlightingFile dbs can be ignored in this case Toolbar positions and states may also be affected by opening old format workspaces File associations may need setting up once the project has been upgraded to allow double clicking to open the selected file and downloading The new style of device image ddi based rather than fpr based will mean that FDT will attempt to rebuild any project image from a previous version The old image will not be removed or deleted but a new one will be added and used henceforth If the old image must be used for download then simple right click on the entry in the Workspace view and choose Download File from the context menu FDT3 07 has the following new features e Support for Lock Bit commands e Support for R8C 2x Blank Check embedded function e BPS synchronous selection support for QZ ROM e Display Clock Frequency CKM CKP in output Window e SH2A Data Mat Support 127 128 Renesas FLASH Microcomputer Programming Sy
134. ut written approval from Renesas Contact Renesas sales office for any questions regarding this document or Renesas semiconductor products ii 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 FDT Graphical 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
135. utput window Most 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 within the window or pressing SHIFT F10 and then selecting the required menu option Windows may also be launched from a number of the main menu items 8 1 Workspace window The Workspace window contains details of the items in the workspace including the workspace name projects contained in the workspace and for each project their Device Image files and Target files 8 1 1 Workspace The Workspace is the first item in the window in the following example this is Workspace Industrial Controller Ii n E Industrial Controller Insert Project 5 6 Device Image L Industrial Controller fpr v Allow Docking 3 FDT Image Files Hide E 3 S Record Files E 4 2282Test mot roperties uGenU mot E User Mode Reprogramming E 3 Device Image E User Mode Reprogramming fpr 3 FDT Image Files 63 S Record Files 4 2282Test mot L uGenU mot H Figure 8 1 Workspace Window Invoking certain menu items from a pop up menu in the Workspace windowwill launch additional windows The Workspace window pop up menu has the following items 8 1 1 1 Insert Project Invoking this option allows the user to add a project to the Workspace 75 8 1 1 2 Allow Docking Invoking this option allows the user to
136. without the E8 having knowledge of the device protocol From FDT 3 05 onwards a new E8 firmware is supported that offers E8Direct a low level interface using the existing E8 hardware designed to be as similar as possible to the FDM Because of some hardware differences the command protocol is not identical but it has been designed to be backwardly compatible WARNING E8Direct is intended for use with Renesas Starter Kits Use of E8Direct with other boards is not supported and is untested damage may occur to the E8 and or the target board if incorrect settings are used It is important to always ensure that the target board power is switched off when plugging the ES connector into the target board 13 1 Firmware and Device ID When plugged in initially the E8 will report itself as a Renesas E Series Device lolx Fie Acton View Help mesage a 5 Computer Ea Disk dives Display adapters E DVD CD ROM drives 3 Floppy disk controllers J Floppy disk drives pH IDE ATA ATAPI controllers gt Keyboards y Mice and other painting devices S Monitors BB Network adapters E Y Ports COM LPT C j System devices E Uriversal Serial Bus controllers Figure 13 1 Initial E8 enumeration To use the E8Direct functionality it must be restarted a task done automatically by FDT during a connection operation which may involve a firmware upgrade see Chapter 12 E8 Update The Output window will contain the following mes
137. x 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 Project Tools Window Device Set Current Project E Insert Project Add Files Remove Files File Extensions Rebuild Image Download Image Field Programming E 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 Y will be displayed next to its text when it is ON Window Device Help Cascade Tile Horizontally Tile Vertically Arrange Icons Close All 1 2262Test mot 2 uGenU mot 0x000002a7 Y 3 Industrial Controller fpr 0x00000292 Figure 2 3 Checked Menu Items If a menu item has the symbol next to it then a cascading or hierarchical menu is available Clicking on the menu item will reveal the cascading menu Help Topics Create Bug Report Check website For updates 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
138. y Sa K Ke ebe r 16 3 2 8 How do I use the supplied demonstration User Mode Kernels 16 3 2 9 Can I modify the User Mode kernels to work for a different clock frequency 17 33 Statie EDT dadas 17 3 3 1 Starting FDT without Security or Simple Interface Mode enabled 17 3 3 2 Starting FDT in Basic Simple Interface Mode sese 17 3 3 3 Starting FDT by double clicking on a workspace file 18 3 3 4 Starting FDT by double clicking on a data file E E 18 3 3 5 Starting FDT by double clicking on a w4f script configuration file 18 3 3 6 Starting FDT with Simple Interface Mode enabled 18 3 3 7 Starting FDT with Access Rights password security enabled 18 3 3 8 Starting FDT by double clicking on a fpf packaged project file 18 3 3 9 Starting FDT from the command lne 18 3 3 9 1 Opening data files from the command lne sss 18 3 3 9 2 Opening workspace files from the command line 18 3 4 3 5 3 6 3 7 3 8 3 9 3 10 3 11 3 12 3 13 3 14 3 3 9 3 Opening data files from the command line with Access Rights password SECU y CADIS DHT 19 3 3 9 4 Opening w4f Script Configuration files from the command line 19 3 3 9 5 Opening w4f Script Configuration files from the command line wit
Download Pdf Manuals
Related Search
Related Contents
Fiche 2 (Observation) Premiers soins - Réglementation Instrucciones de Mantenimiento ダウンロード IT EN - Rossi Motoriduttori Copyright © All rights reserved.
Failed to retrieve file