Home
for Windows® XP, Windows Vista® and Windows® 7
Contents
1. 103 7 44 Set Current Projectin E E ines 103 7 4 2 Insert 103 74 3 Add Filesi ihre th et I Ie bog E eni 103 7 4 4 R moye W M 104 R20UT0508EJ1200 Rev 12 00 RENESAS Page vi of xxii Feb 13 2013 TAS File 29 47 104 74 9 1 File Extensions die aii assis ean 105 74 52 File Extensions Modify isos isseparati tesoro denos t cop eh 106 7 4 6 Rebuild Image iae E E E 106 7 4 7 Download Image tr tete tit 106 74 8 Field Programming 106 729 107 1 5 107 7 5 2 CUSTOMISE 107 7 5 3 GI I M 107 7 5 4 Format m 107 7 5 5 unice 107 7 5 6 Wait Por SCrpl eiie ehe te ER IERI 107 7 5 7 ACCESS 107 75 72 Access Rights Login cete eee e ERR ERO IRR CHEER ies 107 7 5 7 2 Access Rights Change 108 7 5 7 3 Access Rights Administration essere ene 108 7 5 8 Unique Code 108 7 6 Window Menu M 108
2. 172 13 6 Pins no AER PU RAI EI EEUU es ea wie 174 Chapter 14 QZROM 177 14 1 Reserved oes Hg a epe etsi chere 178 14 2 Security Protection ere eire tet kd EEE 178 Chapter 15 Locking iio osi pet Einem 179 15 1 Locking Overview TC 179 15 2 Connecti iross ee E d t DR CERE Ee Era Re Era eeu 180 15 3 Locking Dialog naines ene RR DRE EHE i ee EET ERE 181 15 4 DISCOMMECHON 184 Chapter 16 Unique Code 187 16 1 Configuration Dialog eee e ees LARA ee eas acs heed ae ea 188 16 1 1 Enable Y Disables nine e eor itor ee eie itte rar be crue EE NE eo 188 16 1 2 File OCA On EE 188 16 1 3 File St rt Point ee o ee tesi ei 189 16 1 3 1 Restart on Session nter Pp repr riter a Ee ert ERE 189 16 1 3 2 Continue From Previous User Specified sse 189 16 1 4 189 16 2 Fil Pm 190 16 2 1 Header 190 16 2 2 REED HR EIER 191 16 2 3 191 Chapter 17 ROM Code Protection 193 R20UT0508EJ1200 Rev 12 00 RENESAS Page xii of xxii Feb 13 2013 17 1 Devices
3. eire b 98 6 6 1 M 99 7 ro c 100 ESI um dvies 100 7 1 1 Y 100 7 1 2 New Workspace eee tette ree Da RR E eR Ete tula 100 7 1 3 Open Workspace e 100 7 1 4 Saye Workspace i scende didi Basan se asin 101 7 1 5 Close WORKS aCe 101 7 1 6 Opena Data File eee dee eet eet 101 7 1 7 SAV MERE 101 7 1 8 DAVE AS 101 7 1 9 mus enne M 101 7 1 10 Recent Data Files ete tet tert restet rap 101 7 1 11 los CEDE 101 7 2 Edit MGI E aS 102 7 2 1 102 7 2 2 102 7 2 3 Arm 102 7 2 4 M 102 7 2 5 Paste iau inae ERU NIHU EE REIR ERR TERR MAR 102 7 2 6 M 102 7 27 Findeen se er rere emer 102 7 2 8 Find Iy 102 7 2 9 Replacers orreen eee ieir e 103 T3 TEE E S 103 7 3 1 WorkSpace C S 103 7 3 2 Ep 103 PROJECT Meni
4. ae ea Nae 4 2 1 2 6 2 1 3 51205 Cc 11 2 1 4 Pop Up MENUS E 12 2 2 12 Bids E P c EE 13 Usmg 15 3 1 Quickstart eet te bte E ERR EE ERE D iter Ort eta Te RENS 15 3 2 Background Information 16 32 1 What are the User Area User Boot Area and Data 16 3 2 2 What is the difference between Boot Mode and User Mode 16 3 2 3 What is the difference between User Mode and User Program 17 3 2 4 What are Protocol B Protocol Protocol D and Protocol E Kernels 17 3 2 5 What is the fcf file and can 0 nennen 18 32 6 Can I use FDT if I do not have Local Machine Administrator rights for my PC 19 32 7 How do I recompile a 2 19 32 8 How do I use the supplied demonstration User Mode Kernels 20 3 2 9 Can I modify the User Mode kernels to work for a different clock frequency 20 esci 21 3 3 1 Starting FDT without Security or Simple Interface Mode enabled 21 3 3 2 Starting in Basic Simple Interface Mode sess 21 3 3 3 Starting FDT by double clickin
5. 66 5 10 Performing a Blank CHECK amp 68 3 11 Disconnecting from the device 68 3 12 Saving Workspace sentes eee OPERE ca 68 3 13 Closing WOorksp ce erret Poeta E pei 68 314 Exiting 68 Chapter4 Wait For ie 69 41 Wait 2 69 4 2 Wait For Script New Configuration enne nennen nenne 70 4 2 1 70 ADA As Ape 70 4 2 12 PU esses em ERO d 70 42 1 3 ies BETREUER IE ORO IEEE eae 71 42 1 8 71 4 2 2 Log E 71 4 2 2 1 L g eels 71 42 23 Log File iier 71 42223 Et 72 4 2 3 Stats Pile Page 72 4 2 3 1 Status File Directory esee aestas espe erp agus 72 42322 Stats Ele e ettet he ER RD RORIS BEER 72 4 2 3 3 DAVEK UG BO
6. Figure 10 1 FDT Basic File Programming R20UT0508EJ1200 Rev 12 00 RENESAS Page 152 of 214 Feb 13 2013 Chapter 10 Basic Simple Interface Mode 10 4 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 box so that the operation is erasure rather than programming The Program Flash button will change to Erase the file image 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 Compare Mode This will change the dialog box so that the operation is comparison rather than programming The Program Flash button will be replaced by a button labeled Compare Clicking on Compare will start comparison of data in the file with data in the flash memory 10 1 4 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 5 Readback Verify This option controls whether FDT automatically performs a read and compare operation after programming The setting is remembered between sessions 10 1 6 Request Checksum This option controls whether FDT automatically performs a checksum request operation after p
7. 112 8 1 1 112 8 1 1 1 Insert Pro ER MPa aa ehh 113 8 1 1 2 Allow Docking oleis tre stesse 113 812139 Ade LER 113 SE EU UOUI IET 113 8 1 2 114 81 21 Eesti 114 8 1 22 WREMOVE File8 114 84 2 3 Add Folder eee ERE hei hee 114 8 124 SI Ebvexsupc BB 115 81 25 ee 115 8 1 2 0 Properties ea Pedo 115 8 1 2 7 Setas current Project sette uan 115 8 1 2 8 Remove etin ele vae e 115 8 1 2 0 Unload Project economie 115 8 1 2 10 Add Files From Kernel 115 8 1 3 Device Image Folder tete tete eee m eee Red 116 8 1 3 Remove Folder RR hee 116 8 1 3 2 Rename Folder cse tent ient 116 8 2 Device c oe eine ashame patie 117 8 2 1 Open filename 117 8 2 2 Add Elles tesa ition here iam eee E 117 8 2 3 REMOVE 118 8 2 4 Allow Docking 118 8 2 5 118 8 2 6 118 8 2
8. 3 4 5 Connection Type Select whether the connection is for Boot Mode or User Mode in the Connection 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 E8Direct E8aDirect E 1 Direct E20Direct error rate is greater than 0 are automatically removed from the recommended list When using the E8Direct E8aDirect E1 Direct E20Direct 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 E8Direct E8aDirect E1 Direct E20Direct characteristics Click the Next button to continue Connection Type The FLASH Development Toolkit can connect to your device number of different ways Allthe options on this page may be changed after the Project has been created SPACE Induce y Connection 1 Display USER Program Mode 2 Device Image Target files Kernel already running 134 lt mot 24 Keyboard m S Comms m t In BOOT Program mode the device erases its FLASH prior to connection The Toolkit downloa
9. 27 28 2 29 30 31 33 34 35 2 36 37 The pin which FDT does not use R20UT0508EJ1200 Rev 12 00 RENESAS Page 176 of 214 Feb 13 2013 Chapter 14 QzZROM Programming Chapter 14 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 One time programming each byte of QZROM can only be written once QzROM cannot be erased there is no erase command Security Protection QZROM 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 is aware of QZROM based on the device that is configured for the project R20UT0508EJ1200 Rev 12 00 RENESAS Page 177 of 214 Feb 13 2013 Chapter 14 QzZROM Programming 14 1 Reserved Areas QzROM introduces the concept of reserved areas into FDT for example the M37545G4 has an
10. Communications Port _ P xj The FLASH Development Toolkit supports connection through xj is pageto may be Booting Device gt Sending Supported Devices Inquiry Selecting Device Sending Clock Mode Inquiry ice with blank Selecting Clock Mode Sending Other Inquines Cancel Select Device 0 Select a device HD amp 4F7058 z o Figure 3 33 Generic Boot Device R20UT0508EJ1200 Rev 12 00 RENESAS Page 55 of 214 Feb 13 2013 Chapter 3 Using 3 5 10 Generic Boot Select Clock Mode Because some devices have a number of Clock Modes a list is provided of all possible Clock Modes 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 Communications Port EEX 1 The FLASH Development Toolkit supports conne Query Generic Device xj v Booting Device v Sending Supported Devices Inquiry Selecting Device HD64F7058 Sending Clock Mode Inquiry with blank Selecting Clock Mode Sending Other Inquiries Seectacoeckmode n 1 Lok J Figure 3 34 Clock Mode R20UT0508EJ1200 12 00 RENESAS Page 56 of 214 Feb 13 2013 Chapter 3 Using 3 5 11 Generic Boot Setup Complete Having selected the Clock Mode the Generic wizard comple
11. Compare File gt Device Compare 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 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 10 2 4 Program Flash V Erase Compare Clicking on Program Flash allows FDT to download the specified file or image to the FLASH memory If in Batch Erase mode this button will switch to Erase and will perform an entire R20UT0508EJ1200 Rev 12 00 ENESAS Page 155 of 214 Feb 13 2013 Chapter 10 Basic Simple Interface Mode device erase In the comparison mode the label on this button will be replaced by Compare and pressing this will initiate comparison of data in the file and data in the flash memory 10 2 5 Disconnect Clicking on Disconnect forces FDT to disconnect 10 2 6 File Selection
12. R20UT0508EJ1200 12 00 RENESAS Page 133 of 214 Feb 13 2013 Chapter 8 Windows 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 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 R20UT0508EJ1200 Rev 12 00 RENESAS Page 134 of 214 Feb 13 2013 Chapter 8 Windows 8 8 Hex Editor Window The Hex Editor window is one of the main windows contained in the FDT GUI 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 FDT file type from Windows Explorer drag and drop a file from Windows Explorer onto the editor space e Open a Data File from the File menu or toolbar icon e upload data from a target device IndustrialController DDI 0 0000 C182 Little Endian 0000 000 0000 010 yy 0000 020 0000C030 0000C040 UUUUUUUUUUUUUUUU
13. B g Endian Cursor Position 0 00000000 Value 0 00001000 0 00100000 Decinal value signed 00004096 01048576 Decinal value unsigned 00004095 01048576 Float value 5 7397185 042 1 4693679e 039 Figure 8 14 Data File Properties Cursor Value 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 Data File Properties 2282Test mot Block Usage Selection Vaive Checksum Endian Little Endian Selection size DUORD DWUORD Value 0 00001000 0x00100000 Decinal value signed 00004095 01048576 Decinal value unsigned 00004095 01048576 Float value 5 7397185 042 1 4693679 039 Figure 8 15 Data File Properties Selection Value R20UT0508EJ1200 12 00 RENESAS Page 132 of 214 Feb 13 2013 Chapter 8 Windows 8 6 4 Checksum Tab This tab shows the Raw style checksum for the selected data range Data File Properties 2282Test mot Block Usage Selection Value Checksum 000 Figure 8 16 Data File Properties Checksum Tab 8 7 Output Window The Output window is one of the main windows contained in the FDT GUI Figure 8 17 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
14. 2 When using a device that supports FINE communications Select xxxxxFINEx Generic and click Next Choose Device And Kernel The FLASH Development Toolkit supports a number of Renesas FLASH devices Select the device you wish to use with this project from the list below Filter FINE Figure 3 19 Generic Boot Device Selection FINE R20UT0508EJ1200 12 00 RENESAS Page 45 of 214 Feb 13 2013 Chapter 3 Using 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 x Use this page to select your desired communications port interface All settings may be changed after the project is created Select port COM1 Select Interface type to connect to the target device with Normally this will be Direct Connection or simply left blank Select Interface Direct Connection Y lt Back Cancel Figure 3 20 Communications Port R20UT0508EJ1200 12 00 RENESAS Page 46 of 214 Feb 13 2013 Chapter 3 Using 3 5 4 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 via the E8 see also section 3 6 1 Target Power Settings Supply power from E8 E8a E1 to user target board Power supply
15. 3 3 2 Starting FDT in Basic Simple Interface Mode To start FDT in Basic Simple Interface Mode open the Start menu of Windows and select Programs gt Renesas gt FLASH Development Toolkit 4 09 then the Flash Development Toolkit 4 09 Basic shortcut The previous FDT Basic settings will be restored and new settings can be entered by selecting the Options gt New Settings amp menu item 3 3 3 Starting FDT by double clicking on a workspace file FDT 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 R20UT0508EJ1200 Rev 12 00 RENESAS Page 21 of 214 Feb 13 2013 Chapter 3 Using 3 3 4 Starting FDT by double clicking on a data file FDT 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 passwor
16. F This value is in hexadecimal notation Note If the value entered takes up less than 8 bytes the FDT will automatically pad the value with OxFF from the left Low 8 Bytes Enter the lower order 8 bytes of the ID code default all digits F This value is in hexadecimal notation Note If the value entered takes up less than 8 bytes the FDT will automatically pad the value with OxFF from the left Save ID Code Selecting this item opens the Save ID Code dialog box The ID code will be saved in the specified fid file Load ID Code Selecting this item opens the Load ID Code dialog box The ID code will be loaded from the specified fid file Set ID Code The ID code is automatically written or erased in accord with the settings when the FDT is disconnected from the device Query User To Set ID Code The ID Code Settings dialog box appears again when the FDT is disconnected from the device Do Nothing The ID code is not written or erased when the FDT is disconnected from the device Note The FDT erases the ID code currently stored in the device before writing a new ID code R20UT0508EJ1200 Rev 12 00 RENESAS Page 205 of 214 Feb 13 2013 Chapter 19 Intelligent Flash Security IFS 19 3 Action in Case of an Error The dialog box shown below appears when writing or erasing of the ID code has failed Clicking on Yes disconnects the FDT from the device Clicking on
17. R20UT0508EJ1200 12 00 RENESAS Page 203 of 214 Feb 13 2013 Chapter 19 Intelligent Flash Security IFS 192 ID Code Settings Dialog Box To open the ID Code Settings dialog box click on the Configure ID Code toolbar button and select Device gt Set ID Code or select the corresponding menu options in Simple Interface Mode or Basic Simple Interface Mode This dialog box allows you to make detailed settings for programming or erasing of the ID code ID Code Settings On Disconnect Write ID Code C Erase ID Code What should FDT do by default when disconnecting from a ID Code device with ID Code Security Level 1 High 8 Bytes 01 23456 788abCDEF Low 8 Bytes fi 2344BCDEF 000000 Save ID Code Load ID Code Do Nothing Query User To Set ID Code Figure 19 3 ID Code Settings Dialog Box R20UT0508EJ1200 12 00 RENESAS Page 204 of 214 Feb 13 2013 Chapter 19 Intelligent Flash Security IFS Item Description Write ID Code Select this item to write an ID code This button activates the ID Code group box in which the ID code can be entered default selected Erase ID Code Select this item to erase the ID code default non selected Security Level Specify the security level default 1 This value must be a 1 digit decimal number 0 9 High 8 Bytes Enter the higher order 8 bytes of the ID code default all digits
18. The Reset button resets the selected toolbar to its default settings R20UT0508EJ1200 Rev 12 00 RENESAS Page 99 of 214 Feb 13 2013 Chapter 7 Menus Chapter 7 Menus Mem Mem Bar tr dustrial Controller Flash Development Toolkit File Edit View Project Tools Window Devie Help pr elg e Ctr Altec Wosconnect Hot Key Industtial Controler c Erase FLASH Blocks Ctr AR E Industrial Controller BYP Blank Check 1 9 Device Image Upload Image induite Contr E Adve ril Gris Alte J ODI Files 7 Image Fies FLASH Checksum Ctr Ake 1 69 S Record Files 92 ao From Address 1 2 ipsi E ul MOT Gtrisbres lt mis User Mode Project 2 Configure Flash Project AR SHFt R 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 R20UT0508EJ1200 12 00 RENESAS Page 100 of 214 Feb 13 2013 Chapter 7 Menus 7 1 4 Save Workspace Saves the details of the cur
19. or pressing the INS key Note that multiple files can be added at once from the Add File s dialog 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 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 Download Image 4 Programming is complete when Image 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 Flash 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 Flash Programming will be completed when Image written to device is displayed in the output window R20UT0508EJ1200 Rev 12 00 RENESAS Page 63 of 214 Feb 13 2013 Chapter 3 Using 3 7 4 Programming multiple files to the User Boot Area 1 Add all the required target files to the project by selecting gt Files or pressing the INS key Note that multiple files can be adde
20. MS Download Project Image 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 download the project image s enables the Download Project Image section of the Simple Interface Mode R20UT0508EJ1200 12 00 RENESAS Page 94 of 214 Feb 13 2013 Chapter 5 Access Rights 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 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 R20UT0508EJ1200 Rev 12 00 RENESAS Page 95 of 214 Feb 13 2013 Chapter 6 Configuring the User Interface Chapter 6 Configuring the User Interface When the user interface for FDT was designed an attempt was made to make frequently used operations quickly
21. 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 R20UT0508EJ1200 Rev 12 00 RENESAS Page 115 of 214 Feb 13 2013 Chapter 8 Windows 8 1 3 Device Image Folder This contains the Device Image file s for the project The device image will be called the same as the project but with a ddi extension ead Industrial Controller 521 0 Industrial Controller a Remove Folder Industrial Controller ddi E FDT DDI Files J FDT Image Files v Allow Docking Rename Folder Be S Record Files Hide 8 fpt MOT fp2 MOT User Mode Project Figure 8 4 Device Image Folder In addition to the Allow Docking Hide menu 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 R20UT0508EJ1200 Rev 12 00 RENESA
22. cccccecessccceessececsesceeecsececsesaececsesaececeeceeceesaeeecsesaeeecseeeeeseaeeeeseaaeeeeseeaeens 193 17 1 1 Tool Dat e E es AGE ee ES neal 194 17 1 2 PHO OC 195 17 1 3 Simple Interface V Basic Mode 196 17 2 2 DO VICES Pm 197 17 2 1 MM 198 17 2 2 lon 199 17 2 3 Simple Interface Basic Mode sese 200 Chapter 18 Windows Vista and 877 2 40404 4 000001000 11112 201 18 1 p 201 18 2 FDT 201 18 2 1 ACCESS Righls im ei aie ED ag eee ES 201 Chapter 19 Intelligent Flash Security 1 8 203 M 203 19 2 ID Code Settings Dialog 204 19 3 Action 1n Case of an TEE 206 Chapter 20 Upgrading to FDT 409 sscsssesesosecsaasensstastosetsancontetaasosamadtenbtesaces 207 Appendix Error C 209 R20UT0508EJ1200 12 00 RENESAS Page xiii of xxii Feb 13 2013 R20UT0508EJ1200 Rev 12 00 RENESAS Page xiv of xxii Feb 13 2013 i Cautions 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
23. read time out COMx is a selected COM port such as COMI or COM4 A problem has arisen during communications between the device and the FDT host computer for some reason and the timeout period has elapsed Communications are not possible if the baud rate set for the FDT does not match that for the actual device on the target board Check the following points Baud rate Check the operating frequency of the device and make sure that it is within the allowed range for the transfer rate and that the baud rate is appropriate Clock frequency Check that the operating frequency of the device selected for the FDT matches the clock frequency of the actual device on the target board Connection between the device on the target board and host computer Communications may fail if a USB RS232C converter self produced cable or self produced extension cable for connection to the 8 etc is in use This error may appear along with error 15019 Download failed 15024 Boot failed or 16162 The connection timed out Note Correct operation of the E8a is only guaranteed with the cable included in the E8a package 15016 Error No 15016 Changing baud rate to xxxxx bps bps is the baud rate value that has been set and might for example be 38400 bps or 57600 bps There are no problems with the FDT settings but settings including clock settings for the actu
24. will re enumerate the device see also Chapter 13 E8Direct When the Select USB Device Dialog is displayed you must select which E8Direct unit is to be used to set up the connection R20UT0508EJ1200 Rev 12 00 RENESAS Page 48 of 214 Feb 13 2013 Chapter 3 Using Select USB Device 1 USB device located di Figure 3 23 Select USB Device 3 5 5 Generic Boot E8aDirect Pin Settings E8aDirect connection only If E8aDirect is selected the following two screens will be shown The first allows optional power to be supplied to the target board via the E8 see also section 3 6 1 Target Power Settings Supply power from 1 to user target board Power supply from 1 C 50 Vv Information on the user pawer supply 18V eck box if user to be provided Memorize the settings in this dialog box until the workspace closed Figure 3 24 Select Target Power 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 R20UT0508EJ1200 Rev 12 00 RENESAS Page 49 of 214 Feb 13 2013 Chapter 3 Using Pin Settings Please set the pin values for connection C D B Pin Outputs E 081 Pin Setting o 0x01 WARNING In
25. 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 data files to the project R20UT0508EJ1200 Rev 12 00 ENESAS Page 103 of 214 Feb 13 2013 7 4 4 Remove Files Removes the selected file from the project 7 4 5 File Extensions Chapter 7 Menus This option allows the user to select which file extensions are recognized by FDT and configure how they are handled ax Extension Group B bn Binary Files H ede Binary Fies ddi FOT DDI Files Image Files 8 a20 A20 Fies H a37 IAR A37 Files REC Files S Record Files Figure 7 2 File Extensions Dialog R20UT0508EJ1200 Rev 12 00 ENESAS Feb 13 2013 Page 104 of 214 Chapter 7 Menus 7 4 5 1 File Extensions Add Selecting Add allows FDT to handle files of new extension types File Extension Figure 7 3 Add File Extensions Dialog R20UT0508EJ1200 12 00 4 NESAS Page 105 of 214 Feb 13 2013 Chapter 7 Menus 7 4 5 2 File Extensions Modify Selecting Modify allows selection of how FDT handles files of this extension type Modify File Extensio
26. 7 6 1 8 108 7 6 2 Te Horizontally etr o E LEE EH ENR 108 7 6 3 Tile 2 25 CE 108 7 6 4 Arrange ICONS E 108 7 6 5 Close All E E E BE 108 7 6 6 MANNS E A 109 RI Device eie tree 109 7 7 1 COMMECE LO DEVIC D 109 7 7 2 Cm 109 7 7 3 Erase FLASH DIOCKS 109 7 7 4 Blank check qm 109 7 7 5 Upload Image reete E alan EE EEE 109 7 7 6 Download Active 109 7 7 7 FLASH 110 7 7 8 Go From Address reti 110 7 7 9 a mM DE 110 7 7 10 Block Cocking oe orea 110 7 7 11 Set ID Codez scuto aes EORR RU ERE REI S 110 7 1 12 Cancel Operation M M 110 7 7 13 Configure Flash 110 78 ACN 111 R20UT0508EJ1200 Rev 12 00 RENESAS Page vii of xxii Feb 13 2013 7 8 1 Help TOPICS 111 7 8 2 Technical Support 111 7 8 3 111 Chaptet 8 112 8 1 Workspace
27. 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 0x0000fT0d 4 User Flash Figure 14 1 Hex Editor view of Reserved Area uuuuuuuuuuu uuuuuuuuuuu uauuuuuuuuuu uuuuuuauuuuu uuuuuuuuuuu uuuuuuuuuuu uuuuuuuuuuu uuuuuuuuuuu uuuuuuuuuuu uauuuuuuuuuu auuuuuuuuuu auuuuuuuutu uuuuuuuuuuu uauuuuuuuuuu uuuuuuuuuuu auuuuuuuuuu auuuuuuuuuuu uuuuuuuuu uu Tauuuuuuuuu auuuuuuuuuu uuuuuuuuuu Any attempt to type or copy data etc into these areas will be ignored as will attempts to copy data out 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 14 2 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 For more information please see the section on ROM Code Protection R20UT0508EJ1200 Rev 12 00 Feb 13 2013 34 N ESAS Page 178 of 214 Chapter 15 Locking Chapter 15 Locking 151 Locking Overview Locking of erase blocks against writing or erasing is a feature supported by some of the M16C family devices and some of the Generic Boot devices FDT offers control over these locking settings at connection disconnection and during
28. Chapter 9 Simple Interface Mode 9 1 8 File Over Warning The FDT opens a dialog box to confirm whether downloading should continue or be aborted when the file being downloaded is larger than the size of the ROM 9 1 9 Erasure of User Boot Area Select the checkbox to enable erasure of the User Boot Area Otherwise deselect the checkbox This option is only available for devices that support erasure of the User Boot Area 9 1 10 Security Protection This option controls whether FDT should security protect some QzROM devices or parallel mode protect some R32C 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 QzROM protected device cannot be reconnected to 9 1 11 Set ID Code This option allows programming and erasing of ID codes key codes for generic boot devices with intelligent flash security IFS For details refer to section 19 Intelligent Flash Security IFS 9 1 12 Block Locking This option allows the user to lock or unlock blocks for some M16C family and generic boot devices 9 1 13 Other Properties Settings Target Power Target Power Settings dialog box where the setting can be changed is launched Auto Send ID ID check dialog box where the setting can be changed is launched 9 1 14 Field Programming gt
29. If you are using the E20 turn off the power for the emulator Then turn on the power again and click on the OK button Figure 12 3 Updated Message R20UT0508EJ1200 Rev 12 00 RENESAS Page 167 of 214 Feb 13 2013 Chapter 13 Interface Boards Chapter 13 Interface Boards FDT supports a number of interface boards for allowing FDT to communicate with and control the mode pins of target devices 13 1 E8 incorporating E8Direct The E8 is a USB debugging and flash programming interface board It converts the data from USB to serial and allows control of up to four I O pins and the reset signal It can supply 3 3 or 5 0 volts to the target but the I O and serial voltage levels must be the same The E8 has two modes of operation E8 Mode This is the default mode when the E8 is plugged in In this mode the pin settings for controlling the I O pins are predefined E8Direct Mode This is a general purpose mode of operation where the user specifies the pin settings for controlling the target I O pins To enter this mode FDT sends a special command which causes the E8 to re enumerate as E8Direct Once in E8Direct mode to return to E8 mode the E8 must be unplugged and replugged WARNING Since E8Direct is intended for use with Renesas Starter Kits RSK use of E8Direct with other boards is not supported E8aDirect also supports use with Renesas Starter Kits RSK Generic Boot devices and some 0 35um devices Damage may occur to the
30. Mismatched Adaptor Software Level 1 version number found current version 0 02 00 000 FDT holds version 2 00 00 000 FDT requires version 2 00 FLASH Development Toolkit 9 will now update the E8 E8a firmware to newer version to allow connection to this device 4 current Adaptor Software Level 1 version 0 02 00 000 new version 2 00 00 000 Click OK to continue Figure 12 2 Update Confirmation Message R20UT0508EJ1200 12 00 RENESAS Page 166 of 214 Feb 13 2013 Chapter 12 Updating the Adapter Software 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 Connection continues 122 Eland E20 The and E20 have firmware in two areas common emulator area Level 0 and an FDT area Level 1 Typically FDT will only update the Level 1 area but in some cases a Level 0 update is also required The dialog box shown below appears when the Level 0 area has successfully been updated Follow the instruction given in the dialog box FLASH Development Toolkit Updating of firmware has been completed If you are using the E1 re connect the USB interface cable and dick on the OK button
31. No cancels disconnection of the FDT so that you can start the process of setting an ID code again FLASH Development Toolkit E A ID Code setting Failed Do you wish to disconnect from the device Figure 19 4 Error Message R20UT0508EJ1200 Rev 12 00 RENESAS Page 206 of 214 Feb 13 2013 Chapter 20 Updating to FDT 4 09 Chapter 20 Upgrading to FDT 4 09 Installing FDT 4 09 should not adversely affect your other FDT version installations The USB drivers may be upgraded by installing FDT 4 09 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 FDT 4 09 will 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 FDT 4 09 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
32. Note To erase all blocks clicking the Select 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 R20UT0508EJ1200 12 00 RENESAS Page 65 of 214 Feb 13 2013 Chapter 3 Using 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 or 5 Select the Tree tab 6 Select the blocks to be uploaded corresponding to the erase blocks and or the device flash areas 7 Click the Upload button to start reading Note When FDT is started in boot mode the flash memory data has normally already been erased depending on the kind of device i x Tree Address Start Address User Boot Flash End Address Length Start Address 000000000 ox 80000 End Address Ox0007FFFF Size 512 Absolute Image Erase Cancel Figure 3 41 Upload Image Dialog Address R20UT0508EJ1200 Rev 12 00 RENESAS Page 66 of 214 Feb 13 2013 Chapter 3 Using HD64F3069 E v User Flash 00
33. To exit FDT select File gt Exit press the Alt F4 key or select the Close option from the system menu the system menu can be opened by clicking the icon in the upper left are of the title bar R20UT0508EJ1200 Rev 12 00 RENESAS Page 68 of 214 Feb 13 2013 Chapter 4 Wait For Script 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 han
34. You may not use any Renesas Electronics product for any application for which it is not intended Renesas Electronics shall not be in any way liable for any damages or losses incurred by you or third parties arising from the use of any Renesas Electronics product for which the product is not intended by Renesas Electronics You should use the Renesas Electronics products described in this document within the range specified by Renesas Electronics especially with respect to the maximum rating operating supply voltage range movement power voltage range heat radiation characteristics installation and other product characteristics Renesas Electronics shall have no liability for malfunctions or damages arising out of the use of Renesas Electronics products beyond such specified ranges Although Renesas Electronics endeavors to improve the quality and reliability of its products semiconductor products have specific characteristics such as the occurrence of failure at a certain rate and malfunctions under certain use conditions Further Renesas Electronics products are not subject to radiation resistance design Please be sure to implement safety measures to guard them against the possibility of physical injury and injury or damage caused by fire in the event of the failure of a Renesas Electronics product such as safety design for hardware and software including but not limited to redundancy fire control and malfunction prevention appropriate treat
35. cu STOM Operating Mode User Defined Output io5 io4 io3 io2 iol io0 m mm mmus BOOT Mode es Setting High fal fa M 00 Figure 3 11 E20Direct Pin Settings R20UT0508EJ1200 12 00 RENESAS Page 37 of 214 Feb 13 2013 Chapter 3 Using 3 4 8 Reset Pin Settings Only if the E8Direct or E8aDirect 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 High for the mode required immediately after disconnection Click the Finish button RESET Outputs sets which pins are driven RESET Setting High sets whether output pins are driven High checked or Low Unchecked Notes Setting the mode pins 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 X Select the pin settings required after a Disconnect RESET RESET Mode using Clock Mode NONE gt Mode Ju User Defined WARNING Incorrect settings may damage the hardware 1 Output D 2 GND 3 Output C 4 Output A 5 Txd 6 GND 7 Output B Dutput RESET Dutputs RESET Setting High 0x00 Hom mure 0 00 13 RESET 14 UCONNECT lt Cancel
36. i e a simple 32 bit addition of the byte values within the upload If more than one flash area is uploaded then separate checksum results will be given for each area For other checksum options see the main FLASH Checksum operation the file checksum operations or the Checksum Tab on the Data File Properties window R20UT0508EJ1200 Rev 12 00 RENESAS Page 67 of 214 Feb 13 2013 Chapter 3 Using 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
37. 0000C050 UUUUUUUUUUUUUUUU 0000C060 UUUUUUUUUUUUUUU 0000C070 UUUUUUUUUUUUUUU 0000C080 5 UUUUUUUUUUUUUUU 0000C090 Copy UUUUUUUUUUUUUUU 0000 0 0 Paste UUUUUUUUUUUUUUU 0000COBO UUUUUUUUUUUUUUU 0000COCO Unde CEN UUUUUUUUUUUUUUU 0000CODO UUUUUUUUUUUUUUU 0000 0 0 Redo UUUUUUUUUUUUUUU 0000 0 0 UUUUUUUUUUUUUUU 0000C100 Display Unit UUUUUUUUUUUUUUU 0000C110 z 0000C120 E v Little Endian 0000 130 5 Align to 8 Bytes Alt 8 Big Endian 0000C140 F 80806150 abe Toggle ASCII column Alt 4 0 5 0 d 13 Create Selection Alt M 0000C180 FS Filis 0000C190 F 0000 1 0 End BF 0000 1 80 Replace CtrleH 0000 1 0 0000 1 0 Properties Alt Shift P 0 0 Md Add to Active Project AlE ShiFEH A 0000 200 1 fh User Flash Data Flash an en cn cn ean an oan on Figure 8 18 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 multiple tabs simultaneously Normal S record and binary R20UT0508EJ1200 Rev 12 00 RENESAS Page 135 of 214 Feb 13 2013 Chapter 8 Windows files and uploads via address will only ha
38. 149 9 2 Controls e 149 9 2 1 Back t Project 149 9 2 2 149 9 2 3 Download Project Image Download File radio buttons 149 9 2 4 Compare File gt Device Compare Device Compare File gt Device File Data Only radio buttons sess 150 9 2 5 Program Flash Erase V Compare sese 150 9 2 6 sss E 150 9 2 7 1 tertie alesis agent ps 150 Chapter 10 Basic Simple Interface 2 22 teritur eeu ehh trt 152 10 1 Options Ment tette 153 10 1 1 Pun mL 153 10 1 2 Batch Brase UM 153 10 1 3 Compare Mode TREE HO IRA PERS 153 10 1 4 Publ V 153 R20UT0508EJ1200 Rev 12 00 RENESAS Page x of xxii Feb 13 2013 10 1 5 senes 153 10 1 6 Request Checksum ERES eer 153 10 1 7 Erase Device Before Program eese 153 10 1 8 Bile Over Warning enter dee re Pre Ee Hun 154 10 1 9 Erasure of User Boot 0212 22 2
39. 16 Unique Code Programming 16 1 Configuration Dialog x Enabled Disabled File Location CodeFile cwokwodetlet Browse File Start Point Restart on Session Continue From Previous User Specified Next Index blank for file start End Index blank for file end io Sample Serial Value Sample Serial Value Data Overwrite Continue C Abort Figure 16 2 Unique Code Configuration Dialog 16 1 4 Enable Disable These radio buttons control whether FDT will use the Unique Code feature The remainder of the settings will be inactive until this feature is enabled 16 1 2 File Location The unique codes are read from a list within the file specified in this edit field The Browse button can be used to manually look for the file or the file can be directly dropped onto the dialog FDT does not assume any file extension but the file must be text based See section 16 2 for more details on the file structure R20UT0508EJ1200 Rev 12 00 RENESAS Page 188 of 214 Feb 13 2013 Chapter 16 Unique Code Programming 16 1 3 File Start Point These options determine how FDT reads the data out of the specified code file 16 1 3 1 Restart on Session FDT will start at the beginning of the list in the code file and continue iterating through each value in the list until it reaches the end Every time FDT is restarted it will begin again at the start of the list 16 1 3 2 Cont
40. 2215usbdirect 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 image RebuildImage 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 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 R20UT0508EJ1200 Rev 12 00 RENESAS Page 89 of 214 Feb 13 2013 Chapter 4 Wait For 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 externa
41. 3 30 E20Direct Generic Device Pin Settings Note Setting the mode pins using the E20Direct 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 E20Direct unit is to be used to set up the connection Select USB Device x 1 USB device located Gancel Figure 3 31 Select USB Device R20UTO508EJ1200 Rev 12 00 RENESAS Page 53 of 214 Feb 13 2013 Chapter 3 Using 3 5 8 Generic Boot Confirmation FDT then waits for you to confirm that the device is connected and powered FDT will try to connect to the device when you click OK FDT will now attempt to connect to your generic device Please ensure the board is connected powered and in Boot mode Figure 3 32 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 R20UT0508EJ1200 12 00 RENESAS Page 54 of 214 Feb 13 2013 Chapter 3 Using 3 5 9 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
42. 7 Display Block 8 118 8 2 6 Exclude filename steer reptile tee tre OE p Poe epa e LES 118 8 2 9 User Boot Fl sh deese 118 8 2 10 Download File to User Area User Boot 1 118 82 11 File Checksum RR ORE EUH 119 8 2 12 Compare File gt Device 1 119 8 2 13 Compare File gt Device Complete 119 82 14 Compare File gt Device File Data 119 R20UT0508EJ1200 Rev 12 00 RENESAS Page viii of xxii Feb 13 2013 8 3 Workspace Properties 120 84 Project Properties nren ene OE tes es eee es 121 8 5 Configure Flash Project Flash 122 8 5 1 qon 122 8 5 2 Communications 124 8 5 3 Device lr 125 8 5 4 Programmer LAD 128 8 5 5 130 8 6 Data File Properties 131 8 6 1 Block Usage Tab rrr tette eb en eter RR epe ora RE 131 8 6 2 Cursor n 132 8 6 3 NM euoRC D EE 132 8 6 4 Checksum Tab
43. For Script Example Script 89 4 7 Wait For Script Status File 90 Chapter 5 Access Rights Lio eiit qe ii 92 5 1 Access Rights QVGrview EET 92 23 2 Enabling Access Rights ace ieee 92 5 3 Access Rights 93 5 3 1 Dis ble All 93 5 3 2 M dify E ERE V E EE 94 5 3 3 Ad DE E Mn 95 5 3 4 Iba IUE LE 95 5 3 5 Reset 95 5 3 6 95 Chapter 6 Configuring User InterfaGe 96 6 1 nd C 96 6 1 1 Minimising 96 6 1 2 Tiling C M 96 R20UT0508EJ1200 12 00 RENESAS Page v of xxii Feb 13 2013 6 1 3 Cascading 96 6 2 Locating Currently Open 190 5 ee ceecesecesecenecaeeceeeeeeeeeeeeeeeseeeeeeseeeseessaeeaaeeneeeas 97 6 2 1 Locating a specific 97 6 3 Enabling disabling the Toolbar esee eene 97 6 4 Enabling disabling the Workspace Window esee 97 6 5 Enabling disabling the Output Window eese nennen 98 6 6 Customising the Foolb r uie reset etie
44. 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 be in User Program Mode at the point of programming and erasing and if using the E8Direct E8aDirect El Direct or E20Direct can reset the device into User Mode to execute the programmed code on disconnection 3 2 4 What are Protocol B Protocol C Protocol D and Protocol E Kernels Protocol For 0 35 devices 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 User Mode The User Mode Test Program and User Mode Micro Kernel need to be already programmed and executing on th
45. Run Published File Unpackage an fpf4 file and use it in Simple Interface Mode R20UT0508EJ1200 Rev 12 00 RENESAS Page 148 of 214 Feb 13 2013 Chapter 9 Simple Interface Mode 9 1 15 Unique Code Programming Allows setup and control of the Unique Code Programming feature within FDT See Chapter 16 for further details 9 1 16 About Shows the About box 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 will be disabled if the user currently logged in to the FDT does not have permission for access to SimpleInterface Download File or SimpleInterface Download Project Image see Chapter 5 for details Download Project Image When this button is selected the FDT shows the names of image files for downloading Download File When this button is selected the user can select downloading to the User Data Area or the User Boot Not selectable if the device in use does not have a User Bo
46. Tel 44 1628 651 700 Fax 44 1628 651 804 Renesas Electronics Europe GmbH Arcadiastrasse 10 40472 D sseldorf Germany Tel 49 211 65030 Fax 49 211 6503 1327 Renesas Electronics China Co Ltd 7th Floor Quantum Plaza No 27 ZhiChunLu Haidian District Beijing 100083 P R China Tel 86 10 8235 1155 Fax 86 10 8235 7679 Renesas Electronics Shanghai Co Ltd Unit 204 205 AZIA Center No 1233 Lujiazui Ring Rd Pudong District Shanghai 200120 China Tel 86 21 5877 1818 Fax 86 21 6887 7858 7898 Renesas Electronics Hong Kong Limited Unit 1601 1613 16 F Tower 2 Grand Century Place 193 Prince Edward Road West Mongkok Kowloon Hong Kong Tel 852 2886 9318 Fax 852 2886 9022 9044 Renesas Electronics Taiwan Co Ltd 13F 363 Fu Shing North Road Taipei Taiwan Tel 886 2 8175 9600 Fax 886 2 8175 9670 Renesas Electronics Singapore Pte Ltd 80 Bendemeer Road Unit 06 02 Hyflux Innovation Centre Singapore 339949 Tel 65 6213 0200 Fax 65 6213 0300 Renesas Electronics Malaysia Sdn Bhd Unit 906 Block B Menara Amcorp Amcorp Trade Centre No 18 Jin Persiaran Barat 46050 Petaling Jaya Selangor Darul Ehsan Malaysia Tel 60 3 7955 9390 Fax 60 3 7955 9510 Renesas Electronics Korea Co Ltd 11F Samik Lavied or Bldg 720 2 Yeoksam Dong Kangnam Ku Seoul 135 080 Korea Tel 82 2 558 3737 Fax 82 2 558 5141 2013 Renesas Electronics Corporation All rights reserv
47. The filename can be specified in the File Selection section by typing directly into the field or clicking on the arrowed button and then either browsing or selecting from the recently used list which can hold up to four entries R20UT0508EJ1200 Rev 12 00 RENESAS Page 156 of 214 Feb 13 2013 Chapter 10 Basic Simple Interface Mode R20UT0508EJ1200 12 00 RENESAS Page 157 of 214 Feb 13 2013 Chapter 11 Field Programming 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 file with an fpf4 extension This can be sent to another FDT user using the same version of FDT who can simply double click on the package 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 package 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
48. Toolkit 4 09 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 sections 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 Download Image menu item Alternatively to start in FDT Basic Simple Interface Mode 1 Select Start gt Programs gt Renesas gt Flash Development Toolkit 4 09 then the Flash Development Toolkit 4 09 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 4 5 6 Select the flash area that you want to program User Area or User Boot Area Select the file to program for each enabled area Select the Program Flash Button Disconnect when programming is completed R20UT0508EJ1200 Rev 12 00 RENESAS Page 15 of 214 Feb 13 2013 Chapter 3 Using 3 2 Background Information 3 2 1 What are the User Area User Boot Area and Data Areas The normal area of interna
49. 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 Updating the Adapter Software describes how FDT updates the adapter software Chapter 13 Interface Boards describes the supported interface boards 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 Unique Code Programming describes how to implement serial numbering into an FDT project R20UT0508EJ1200 Rev 12 00 RENESAS Page xvii of xxii Feb 13 2013 ii Preface Chapter 17 ROM Code Protection describes support for ROM protection with some Renesas devices Chapter 18 Windows Vista and Windows 7 describes the changes FDT structure to support execution on Windows Vista and Windows 7 Chapter 19 Intelligent Flash Security IFS describes support for setting the ID codes of certain Renesas devices Chapter 20 describes notes about upgrading to FDT 4 09 Assumptions It is assumed that the reader is experienced in using Microsoft Windows applications on PC compatible computers R20UT0508EJ1200 Rev 12 00 RENESAS Page xviii of xxii Feb 13 2013 iii Abbreviations Target Device DLL FDT QzROM HEW PC USB FCF DD
50. Yes Erasure of User Boot Area No Function Map Write Read Erase Blank Check Data Buffer Unknown Bytes Available Unknown 4 4 gt Kernel Communications Device A Programmer Modules Figure 17 6 Security Protect property Double clicking on the Security Protection field will bring up a new dialog allowing the entry to be changed Protection Type Protect on Disconnect 8000 ORFFFF Full 71 Cancel Prompt on Disconnect Do Nothing Figure 17 7 Security Protect dialog change R20UT0508EJ1200 Rev 12 00 RENESAS Page 195 of 214 Feb 13 2013 Chapter 17 ROM Code Protection 17 1 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 FDT Simple Interface Supported Version Options Login M38D58D8 Exit Port E8a Disconnected Batch Erase Compare Mode AutoDisconnect Readback Verify Request Checksum Erase Device Before Program File Over Warning jesas FDT4 08 Workspaces QzROM M38D58D8 M38D58 D8 ddi Erasure of User Boot Area DS Security Protection Automatic Set ID Gode v Prompt Block Locking None m Flash E Other Properties Settings Field Programming Unique Code Programming About
51. a dialog with information about the active file R20UT0508EJ1200 Rev 12 00 RENESAS Page 9 of 214 Feb 13 2013 Chapter 2 System Overview Protection toolbar la e Automatic Prompt None Figure 2 9 Protection Toolbar Automatic Set protection automatically on disconnect if more than one option is available a dialog will appear to select which type to automatically apply Prompt Ask the user whether to set protection on disconnect None Never set protection on disconnect NB setting the protection may stop any further connections to that particular target device Search toolbar 1e amp amp Find in Files Data Find Find Hert Find Previous Figure 2 10 Search Toolbar R20UT0508EJ1200 Rev 12 00 RENESAS Page 10 of 214 Feb 13 2013 Chapter 2 System Overview 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 When an action is being perfo
52. converts the data from USB to serial and allows control of up to six I O pins and the reset signal It can supply 3 3 or 5 0 volts to the target but the I O and serial voltage levels must be the same The E1 board utilises a clock synthesiser to allow higher baud rates and improved baud rate matching between the interface board and the target board The E1 has two modes of operation but switching between them is automatic E1 Mode This is the default mode when the E1 is plugged in In this mode the pin settings for controlling the mode pins are predefined but the FDT does not support this E1Direct Mode This is a general purpose mode of operation where the user specifies the pin settings for controlling the target I O pins Note that when actively connected to an E1 FDT will display details of the active E1 serial number in the status bar R20UT0508EJ1200 Rev 12 00 RENESAS Page 170 of 214 Feb 13 2013 Chapter 13 Interface Boards 13 4 E20 incorporating E20Direct The E20 is a USB debugging and flash programming interface board It converts the data from USB to serial and allows control of up to six I O pins and the reset signal when the 38 pin to 14 pin conversion adapter is in use The E20 board utilises a clock synthesiser to allow higher baud rates and improved baud rate matching between the interface board and the target board The E20 has two modes of operation but switching between them is automatic E20 Mode This
53. device into user mode and if necessary supplies power so that programmed device code can be tested Block Locking configure the block locking options if the device supports block locking Set ID Code sets an ID code if the device supports this 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 R20UT0508EJ1200 Rev 12 00 RENESAS Page 8 of 214 Feb 13 2013 Chapter 2 System Overview S Record Data File toolbar View as Bytes View as Words View as D Words Endian Align view to 8 byte Toggle ASCII Find Find and Replace Create Selection Fill selection Properties D Figure 2 8 S Record Data File 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 Endian toggles between little and big endian viewing Align view to 8 bytes data is displayed on each line as 8 bytes The number of bytes that can be accommodated on each line is dependent upon the size of the window Toggle ASCII turns ASCII data ON or OFF Find launches the Find dialog box Find and Replace launches the Replace dialog box Create Selection selects a block of the specified size in the active file Fill selection launches the dialog box Properties launches
54. encountered cannot be solved despite the information given above save the log information and attach it to the e mail to be sent for inquiry To save the log information 1 Select Help gt Technical Support gt Create Bug Report 2 Select Save to disk from the pull down menu for How would you like to submit the report 3 Click on the Submit button 4 Select the location where the file should be saved and click on the Save button R20UT0508EJ1200 Rev 12 00 Feb 13 2013 3 NESAS Page 213 of 214 Appendix Error Messages R20UT0508EJ1200 Rev 12 00 RENESAS Page 214 of 214 Feb 13 2013 Renesas FLASH Microcomputer Programming System Renesas FLASH Development Toolkit 4 09 for Windows XP Windows Vista and Windows 7 User s Manual Publication Date Rev 1 00 June 12 2007 Rev 12 00 February 13 2013 Published by Renesas Electronics Corporation RENESAS SALES OFFICES Renesas Electronics Corporation http www renesas com Refer to http www renesas com for the latest and detailed information Renesas Electronics America Inc 2880 Scott Boulevard Santa Clara CA 95050 2554 U S A Tel 1 408 588 6000 Fax 1 408 588 6130 Renesas Electronics Canada Limited 1101 Nicholson Road Newmarket Ontario L3Y 9C3 Canada Tel 1 905 898 5441 Fax 1 905 898 3220 Renesas Electronics Europe Limited Dukes Meadow Millboard Road Bourne End Buckinghamshire SL8 5FH U K
55. from a3 y C 33V C BI V Cancel r Information on the user power supply 18 Be sure to select this check box if user power supply at 18 Vis to be provided Memorize the settings in this dialog box until the workspace closed Figure 3 21 ES 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 R20UT0508EJ1200 12 00 RENESAS Page 47 of 214 Feb 13 2013 Chapter 3 Using I x Please set the pin values for connection C D B A BOOT Mode Dutputs IEEE NM 0x00 BOOT Mode z Setting 0x00 WARNING Incorrect settings could damage your hardware ce Figure 3 22 E8Direct Generic 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
56. given device 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 If you have an alternative kernel elsewhere which is not in the list select Other to specify the kernel Flash Configuration File fcf Note Registering a new kernel requires Administrator privileges On Windows Vista or Windows 7 this may require the user to provide extra confirmation or credentials For connection to a Generic Boot Device see the Configuring a Project for a Generic Boot Device section Choose Device And Kernel x The FLASH Development Toolkit supports a number of Renesas FLASH devices Select the device you wish to use with this project from the list below Filter 48 302 Full Name Info H8 300H H8 3022F 1 0 00 H8 300H 8 3024 1 2 00 H8 300H H8 3026F 1 2 00 H8 300H H8 3028F 1 1 00 Generic BOOT Device Generic BOOT Device Figure 3 3 Device and Kernel Selection R20UT0508EJ1200 Rev 12 00 RENESAS Page 26 of 214 Feb 13 2013 Chapter 3 Using Supplementary 1 Type Names of Devices Intended for x Line Connection Only The suffix _xLine for type names indicates that the devices are intended for x line connection only 2 Type Names of Devices That Vary According to Whether or Not ECC Data is Included If you wish to program a device that ha
57. 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 WU M 96D T delimiters R20UT0508EJ1200 Rev 12 00 RENESAS Page 71 of 214 Feb 13 2013 Chapter 4 Wait For Script 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 Enable 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 E Script File LogFile Status File Error Handing rook Status File Directory Status File Name pase User Name Machine Name Delimiters 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 nam
58. iret EIE ERE OE see ees 140 8 9 2 a H M 140 R20UT0508EJ1200 Rev 12 00 RENESAS Page ix of xxii Feb 13 2013 8 9 3 Dau MM 141 8 9 4 Toolbar Mame 141 8 9 5 141 8 9 6 Delete eed a ek dae Asi See EE 141 8 10 Customise 142 Chapter 9 Simple Interface 146 g1 Op ons E O 147 9 1 1 147 9 1 2 Batch Erase E E 147 9 1 3 Compare Modes Hc 147 9 1 4 AULODISCONMECE Q 147 9 1 5 R adback Very aee eere th ORO Eee e lento ees 147 9 1 6 Request CHECKSUM ss e 147 9 1 7 Erase Device Before Program 147 9 1 8 luis gun M 148 9 1 9 Erasure of User Boot Area 148 9 1 10 SECULILY Protection ere deret leto hous 148 9 1 11 Set ID Codes E 148 9 1 12 Block LO CKD m 148 9 1 13 Other Properties Settings ssri oreson eee Veri EE EEr 148 9 1 14 Field Programming gt Run Published File esee 148 9 1 15 Unique Code Programming esee eene 149 9 1 16 select FA Heese ei as ee ni a e ni EE
59. is selected the Reset button is renamed to Delete Clicking on this button will remove the new toolbar from the list and from the GUI R20UT0508EJ1200 Rev 12 00 RENESAS Page 141 of 214 Feb 13 2013 Chapter 8 Windows 8 10 Customise Menu Invoked by Tools gt Customise and then select the Menu tab in the Customise dialog box customise NETT Toolbars Meru Applicaton wide tools Name i me enove Workspace wide tools Name Add Maodily Figure 8 21 Customise Menu Dialog 2 To add a new menu option 1 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 2 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 3 Enter the name of the tool into the Name field 4 Enter the command e
60. lt Filename gt 8 C Program 4 09 arl Administrator V passwordN DISCRETESTARTUP osre V CAProgram Files Renesas files myfile moi 3 3 9 4 Opening w4f Script Configuration files from the command line FDT path gt FDT exe DISCRETESTARTUP w4fRun V filename V eg C Program Files Renesas F DT4 09 FDT exe DISCRETESTARTUP w4fRun C Program Files Renesas F DT4 0 myconfig 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 Rights password security enabled lt FDT path gt FDT exe arl lt Username gt lt Password gt DISCRETESTARTUP w4fRun lt filename gt 8 C Program File Renesa FDT4 0NFDT exe arl Administrator V passwordN DISCRETESTARTUP w4fRun C Program Files Renesas F DT4 09 myconfig w4f R20UT0508EJ1200 Rev 12 00 RENESAS Page 23 of 214 Feb 13 2013 Chapter 3 Using 3 3 9 6 Starting FDT Basic Simple Interface Mode from the command line lt FDT path gt FDT exe DISCRETESTARTUP SimpleInterfaceMode u lt User Area Filename gt b lt User Boot Area or Data Area Filename V 8 C Program 09 DISCRETESTARTUP SimpleInterfaceMode u c upload1 mot b c upload0 mot Note that the u lt User Area File
61. normal operations The options are available from a toolbar button and a menu entry o gt y y ot Q Figure 15 1 Toolbar Button Connect to Device Ctrl Alt C Disconnect c Erase FLASH Blocks Ctrl Alt E Blank Check Upload Image Ctrl Alt U Download Active File gt FLASH Checksum Gtr 4lr 5 GO Do Block Locking cance operation Gtrl Break 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 R20UT0508EJ1200 Rev 12 00 ENESAS Page 179 of 214 Feb 13 2013 Chapter 15 Locking 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 b
62. of Renesas Electronics or others You should not alter modify copy or otherwise misappropriate any Renesas Electronics product whether in whole or in part Renesas Electronics assumes no responsibility for any losses incurred by you or third parties arising from such alteration modification copy or otherwise misappropriation of Renesas Electronics product Renesas Electronics products are classified according to the following two quality grades Standard and High Quality The recommended applications for each Renesas Electronics product depends on the product s quality grade as indicated below Standard Computers office equipment communications equipment test and measurement equipment audio and visual equipment home electronic appliances machine tools personal electronic equipment and industrial robots etc High Quality Transportation equipment automobiles trains ships etc traffic control systems anti disaster systems anti crime systems and safety equipment etc Renesas Electronics products are neither intended nor authorized for use in products or systems that may pose a direct threat to human life or bodily injury artificial life support devices or systems surgical implantations etc or may cause serious property damages nuclear reactor control systems military equipment etc You must check the quality grade of each Renesas Electronics product before using it in a particular application
63. select an output directory for the published package file To run a published file select the Project gt Field Programming Run Published File menu item from the full 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 a fpf4 file from Windows will start in Simple Interface Mode using the selected package file On open FDT checks the creating version of the package file and will warn the user if the file cannot be unpacked and run by the currently installed version A message box will highlight the required version to run the package FDT will unpack the fpf4 files into the Published Projects subdirectory of FDT R20UT0508EJ1200 Rev 12 00 RENESAS Page 158 of 214 Feb 13 2013 Chapter 11 Field Programming or simple interface Options Project Industrial Coriroler Device 8 3028 Pot COMI r Image Selection Downoad Project Image 22 Controlle Industrial Controlle Industnial Program Flash Figure 11 1 FDT Field Programming Interface R20UT0508EJ1200 12 00 RENESAS Page 159 of 214 Feb 13 2013 Chapter 11 Field Programming 111 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 er
64. that may arise with third party s rights including intellectual property rights in connection with use of the information contained in this document Products and product specifications may be subject to change without notice Confirm that you have received the latest product standards or specifications before final design purchase or use Renesas makes every attempt to ensure that its products are of high quality and reliability However contact Renesas sales office before using the product in an application that demands especially high quality and reliability or where its failure or malfunction may directly threaten human life or cause risk of bodily injury such as aerospace aeronautics nuclear power combustion control transportation traffic safety equipment or medical equipment for life support Design your application so that the product is used within the ranges guaranteed by Renesas particularly for maximum rating operating supply voltage range heat radiation characteristics installation conditions and other characteristics Renesas bears no responsibility for failure or damage when used beyond the guaranteed ranges Even within the guaranteed ranges consider normally foreseeable failure rates or failure modes in semiconductor devices and employ systemic measures such as fail safes so that the equipment incorporating Renesas product does not cause bodily injury fire or other consequential damage due to operation of the Renesa
65. 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 R20UT0508EJ1200 Rev 12 00 RENESAS Page 119 of 214 Feb 13 2013 Chapter 8 Windows 8 3 Workspace Properties 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 aix Name Industrial Controller Location F FDT Workspaces Industrial Controllerslndustrial Co Last modified 13 48 38 Tuesday March 11 2003 CPU family All Flash Devices Tool chain Information No workspace information available Show workspace information on workspace open Figure 8 6 Workspace Properties R20UT0508EJ1200 12 00 RENESAS Page 120 of 214 Feb 13
66. use with this project from the list below Filter generic Full Name Info Prior Generic Device R5F61654 Genernc BOOT Device BOOT Device N A Figure 3 17 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 fcf file for this information R20UT0508EJ1200 Rev 12 00 RENESAS Page 43 of 214 Feb 13 2013 Chapter 3 Using Choose Device And Kernel The FLASH Development Toolkit supports number of Renesas FLASH devices Select the device you wish to use with this project from the list below Filter generic Full Name Info 85 201 3 Generic Generic BOOT Devic H85 202x3F Generic Generic BOOT Devici SH 7U83F Generic Generic BOOT Devic SH 7084F Generic N Generic BOOT Devic SH 085F Generic N A Generic BOOT Devic SH 7O86F Generic Generic BOOT Devici 5H 7124F Generic N Generic BOOT 5H 7125F Generic N Generic BOOT Devici Prior Generic Device R5FB1554 N Generic BOOT Device Generic BOOT Device Figure 3 18 Device Support via Generic Boot R20UT0508EJ1200 Rev 12 00 RENESAS Page 44 of 214 Feb 13 2013 Chapter 3 Using
67. 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 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 2 are not compatible with FDT 4 09 due to the enhancements since then Workspaces from previous versions of FDT from version 3 2 can be opened with FDT 4 09 but 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 R20UT0508EJ1200 12 00 RENESAS Page 207 of 214 Feb 13 2013 Chapter 20 Updating to FDT 4 09 R20UT0508EJ1200 Rev 12 00 RENESAS Page 208 of 214 Feb 13 2013 Appendix Error Messages Appendix Error Messages Error No Error Message Description 15005 Error No 15005
68. would like to remove and then click the Remove button R20UT0508EJ1200 Rev 12 00 RENESAS Page 144 of 214 Feb 13 2013 Chapter 8 Windows R20UT0508EJ1200 Rev 12 00 RENESAS Page 145 of 214 Feb 13 2013 Chapter 9 Simple Interface Mode 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 Simple Interface Options Project Industrial Controller Device 8 3028 Pat COM F File Image Selection Download Project Image 22 Controles Industial Controlle industnal Controfer dd C Download File IV User Date Aves Program Flash Disconnect Figure 9 1 FDT Simple Interface R20UT0508EJ1200 Rev 12 00 RENESAS Page 146 of 214 Feb 13 2013 Chapter 9 Simple Interface Mode 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 box so that the operation is erasure rather than programming The Program Flash button will change to Erase the file image selection buttons will be disab
69. 0 RENESAS Page 161 of 214 Feb 13 2013 Chapter 11 Field Programming 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 22 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 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 24 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 R20UT0508EJ1200 Rev 12 00 RENESAS Page 162 of 214 Feb 13 2013 Chapter 11 Field Programming R20UT0508EJ1200 12 00 RENESAS Page 163 of 214 Feb 13 2013 Chapter 12 Updating the Adapter Software Chapter 12 Updating the Adapter Software When connecting to an E8 E8a E
70. 00 RENESAS Page 59 of 214 Feb 13 2013 Chapter 3 Using 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 E8 E8a E1 USB Connection When connecting for the first time since opening the workspace and using the E8 E8a E1 USB interface board a dialog will be displayed to allow selection of whether the board 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 The setting in this dialog can also be modified in the Target Power section of the Communications tabbed page of Project Properties dialog box Target Power Settings x Supply power from E8 E8a E1 to user target board Pawer supply from E8 E8a E1 2507 Cancel Information on the user power supply 18v sure ta select this check box if user power supply at 18 is to be provided Memorize the settings in this dialog box until the workspace closed Figure 3 37 E8 E8a E1 Target Power Supply Select
71. 0000000 0 0007 EBO 000000000 0 00000 Unknown 1 000001000 0 00001 Unknown EB2 000002000 0 00002 Unknown EB3 000003000 0 00003 4 Unknown Absolute Image EB4 00004000 GO0004FFF 4 Unknown EB5 000005000 0 00005 Unknown EB6 00006000 0 00006 Unknown EB7 000007000 0 00007 Unknown 38 00008000 0 0000 Unknown 00010000 0 0001 Unknown EB10 000020000 0 0002 Unknown EB11 000030000 0 0003 Unknown EB12 000040000 0 0004 Unknown Figure 3 42 Upload Image Dialog Tree Note The Upload via erase block has the same selection functionality as the Erase block dialog itself i e Select will check every block a complete device upload and Select Written will check the non blank blocks an upload of programmed areas 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 After a successful upload FDT will automatically display the checksum of the uploaded data into the output window This will be in the form of a raw checksum
72. 0UT0508EJ1200 Rev 12 00 RENESAS Page 124 of 214 Feb 13 2013 Chapter 8 Windows Default Baud Rate Display the Default Baud Rate Use Default Baud If this is checked the default Baud Rate will be used This option should be set only when the Renesas Evaluation Board or Evaluation Development Kit is used Target Power Double clicking on this item launches the Target power settings dialog box where the setting can be changed Auto Send ID Double clicking on this item launches the TD check dialog box where the setting can be changed 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 R20UT0508EJ1200 Rev 12 00 RENESAS Page 125 of 214 Feb 13 2013 Chapter 8 Windows Flash Properties Industrial Controller OB H8 3069F RAM Size 16K FLASH Size 512 K User Flash 8K User Boot Flash FLASH Start 0 00000000 User Flash 0 00000000 User Boot Flash Connection Boot Interface Direct Connection Kernel Resident No Available RAM Free RAM Buffer Size Device ID Figure 8 10 Device Properties Device Displays the name of the active device Double cl
73. 1 or E20 interface adapter board FDT will check that the firmware adapter 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 firmware in order that the connection can be continued Also if the firmware 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 interface board is not unplugged during the update process because this could result in the interface board being left in an erased state 12 1 E8 and E8a 8 E8a have two firmware areas Level 0 and Level 1 the Bootstub and Adaptor Software 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 an E8 in E8Direct mode see Chapter 13 Interface Boards for the first time and will result in a slightly different update process shown below for comparison note that the process is similar for an E8a Level 0 and Level 1 update 8 target power has been set to ON at 5 0V Connecting to device R5F21174 on E8 Configuration BOOT Mode connection using emulated interfac Opening port E8 Checking for E8 update Adaptor checksum OK Processing Data file c FDT ADPFile
74. 1 1 00100000 154 10 1 10 Secunty Protection eet rnm tr E T pan 154 10141 Set ID Code uiu eee emet inerte entere deeb eo eet 154 10 1 12 Block Locking eire 154 10 1 13 Other Properties 5 154 10 1 14 New Settings 154 10115 etes ester terit eo use RNS 154 10 2 Ic P 155 10 2 1 155 10 2 2 Download File radio 155 10 2 3 Compare File gt Device Compare Device Compare File gt Device File Data Only radio 4 enne 155 10 2 4 Program Flash Erase V Compare 2 155 10 2 5 DISCONNECT 156 10 2 6 File Select oni 156 Chapter 11 Field Programming e e 158 TLT Options 160 11 1 1 160 11 1 2 Batch Brase 160 11 1 3 PULOD SCONE CE 160 11 1 4 Readback Verify eee tUi EA EE RE 160 11 1 5 Lenpjseucdciom T M 160 11 1 6 Erase Device Before Program essere 160 11 1 7 Warnih M 160 11 1 8 Erasure of User Boot Area iecit hercle 161 11 1 9 Security Protection iste e
75. 14 Chapter 8 Windows 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 click 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 Executing the Disconnect item while the E8 E8Direct E8a E8aDirect E1 E1 Direct E20 or E20Direct is connected resets 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 Note Please be sure to supply power from the user system when you use this option Connection Reset Not used 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 and re used With this option set to Yes FDT will always reinterrogate the device for its details upon connection this allows one project to work with many Gener
76. 2 Only a single Workspace command can be defined within the script file that is controlled via each configuration file R20UT0508EJ1200 Rev 12 00 RENESAS Page 76 of 214 Feb 13 2013 Chapter 4 Wait For Script 4 5 2 Connect Description connect to a device Arguments lt PORT gt Optional If the port specified does not match the project port settings the command will fail For USB Direct E8 E8a E1 E20 E8Direct E1Direct and E20Direct connections this must be set to USB R20UT0508EJ1200 12 00 RENESAS Page 77 of 214 Feb 13 2013 Chapter 4 Wait For Script When lt PORT gt 15 USB I USB PID gt lt USB BID Optional When using USB Direct it is USB One of possible to pre empt the Select Device connection dialog normally seen with these settings USB l E8 l If using E8 E8a E1 E20 USB ID E8Direct E8aDirect CONNECT VOLTAGE gt E1Direct or E20Direct the DISCONNECT VOLTAGE unique ID of the device the USB P E82 l initial connection voltage and USB ID the voltage to be applied at CONNECT VOLTAGE the time of disconnection can lt DISCONNECT VOLTAGE be specified NB currently supported voltage values are USB PEI I 5 0 3 3 or 0 07 USB ID CONNECT VOLTAGE DISCONNECT VOLTAGE USB l E20 l USB ID CONNECT VOLTAGE 0 0 USB l E8Direc
77. 2013 Chapter 8 Windows 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 p Properties Figure 8 7 Project Properties R20UTO508EJ1200 Rev 12 00 RENESAS Page 121 of 214 Feb 13 2013 Chapter 8 Windows 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 Kernel Tab This shows the kernel path frequency protocol clock multipliers and clock mode Double clicking on these entries when disconnected will invoke the Project Wizard at the appropriate screen Flash Properties Industrial Controller Kernel Path C Program Files Renesas FDT3 05 kernels ProtC 3069 Renesas 1_0 Frequency External 25 0000 MHz C 1 Clock Mode 0 Communications h Device Programmer 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 R20UT0508EJ1200 12 00 RENE
78. 24 NE SAS E Tu 7 lt D D Renesas FLASH Development Toolkit 4 09 for Windows XP Windows Vista and Windows 7 User s Manual Renesas FLASH Microcomputer Programming System R Ejectohi 2 Rev 12 00 2013 02 10 11 12 Notice Descriptions of circuits software and other related information in this document are provided only to illustrate the operation of semiconductor products and application examples You are fully responsible for the incorporation of these circuits software and information in the design of your equipment Renesas Electronics assumes no responsibility for any losses incurred by you or third parties arising from the use of these circuits software or information Renesas Electronics has used reasonable care in preparing the information included in this document but Renesas Electronics does not warrant that such information is error free Renesas Electronics assumes no liability whatsoever for any damages incurred by you resulting from errors in or omissions from the information included herein Renesas Electronics does not assume any liability for infringement of patents copyrights or other intellectual property rights of third parties by or arising from the use of Renesas Electronics products or technical information described in this document No license express implied or otherwise is granted hereby under any patents copyrights or other intellectual property rights
79. 5 Redo Reverses the last undo operation 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 Endian Invokes the cascaded menu as follows Little Endian view the data in little endian format Big Endian view the data in big endian format R20UT0508EJ1200 Rev 12 00 RENESAS Page 137 of 214 Feb 13 2013 Chapter 8 Windows 8 8 8 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 The default for this setting is on 8 8 9 Toggle ASCII Column Allows the ASCII column to be removed or displayed 8 8 10 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 11 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 8 8 12 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 w
80. 6172 Error No 16172 Writing to the device is not possible for some reason Kernel Error Response 0 0x53 Possible reasons for this error include an attempt to Operation failed write to the device without erasing it incorrect pin settings or failure of the normal supply of power to the device 16194 Error No 16194 The input ID code does not match the code set in the ID code check failure device being programmed Make sure that the ID code is correct If you do not remember the ID code you cannot use a serial programmer to read write or erase data in the device Use a parallel programmer instead 17145 Error No 17145 The QzROM device that you attempted to write to was The programming attempt has been not blank or was partly protected Check the state of aborted because there is conflicting the device data at OXXXXX the device The When an attempt to write to a protected address is Project is set to Automatic Device made error 17159 is returned Protection no data was written 17159 Error No 17159 Programming of the flash memory has failed for some Unable to download file reason Check the conditions in which programming was attempted such as the power voltage for the device 17502 Error No 17502 The FDT was incapable of correctly controlling the Received error response from E8 E8a device through the E8 E8a Check the connections of the FDT to the device and the E8 E8a If the problem you have
81. 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 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 7 2 8 Find In Files This launches a dialog to allow data to be located in files external to the active file R20UT0508EJ1200 Rev 12 00 RENESAS Page 102 of 214 Feb 13 2013 Chapter 7 Menus 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 Workspace window 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
82. A list of block names to erase written Erase all blocks currently marked as written device Erase the entire device R20UT0508EJ1200 Rev 12 00 RENESAS Page 80 of 214 Feb 13 2013 Chapter 4 Wait For Script Example Erase 0111417 Erase EBOIEB Erase device 4 5 5 BlankCheck Description check if the device is blank not available when using Protocol E Arguments user Optional Tells FDT to check the user area One of of flash userboot Required when 222 Tells FDT to check the user boot equired when stoponwritten area of flash if supported or stoponblank is specified data Tells FDT to check the data area of flash if supported stoponwritten Optional Stop processing the script if the device is not blank stoponblank Optional Stop processing the script if the device is blank Example BlankCheck BlankCheck userbootlstoponwritten R20UT0508EJ1200 Rev 12 00 RENESAS Page 81 of 214 Feb 13 2013 Chapter 4 Wait For Script 4 5 6 Upload Description upload data from the device not available when using Protocol E Arguments lt filename gt Required File to write the upload out to will be created or overwritten if necessary If not needed specify none lt start address gt Required Start address in Hex to start the upload from lt length gt Required Number of bytes in
83. Alert Output 44 SA NEN ION poene dendi ae e etie p aes ilo eene eo ee ee Alert output The script which was being processed will now be deleted Alert output Please reset the board and regenerate the script to retry Alert output R20UT0508EJ1200 12 00 RENESAS Page 73 of 214 Feb 13 2013 Chapter 4 Wait For Script 4 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 4 Disconnect to allow reconnection Disconnect Display a message to the user Alert output Alert output THE CURRENT SCRIPT PROCESSING HAS FAILED x x x x Alert Alert output Wait For Script Processing will now be aborted Alert output To retry use Tools Wait for Script Alert output Run configuration and select the configuration Alert CUTE OU Stop script processing Abort 4 2 4 2 Save This saves the FDT Script Configuration file with the default extension w4f
84. Block Locking E rOn Disconnect Lock Bit State State At Disconnect What should FDT do with the By 4 block locking settings now 2 9 User Flash amp EB8 Locked EB Unlocked EB6 Locked Set Locks Unlocks i EBS Unlocked amp Query User Tio Set n 111 4 C Unlocked Do Nothing C3 EBI Unlocked Unlocked 3 04 Data Flash Figure 15 7 Query on Disconnect Dialog Selecting to set the locks will cause FDT to lock and unlock the blocks as appropriate 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 R20UT0508EJ1200 Rev 12 00 RENESAS Page 185 of 214 Feb 13 2013 Chapter 15 Locking R20UT0508EJ1200 Rev 12 00 RENESAS Page 186 of 214 Feb 13 2013 Chapter 16 Unique Code Programming Chapter 16 Unique Code Programming Unique Code Programming is a feature to allow FDT to program an automatically incremented code into an area of flash The typical application of this feature would be for serial numbering The numbering process
85. Description stop processing the script and return failure NB This command is primarily designed to be used in an error processing script Arguments NONE Example Abort 4 5 16 Lock Description lock specified flash blocks on the device or set the device master lock bit not available on devices which don t support erase block locking NB The device master lock bit must be unlocked with Unlock device before individual blocks can be locked see Unlock below Arguments block num s gt Required One of A list of block numbers to lock written Lock all blocks currently marked as written device Sets the master device lock bit Example Lock 0111417 Lock device R20UT0508EJ1200 Rev 12 00 RENESAS Page 86 of 214 Feb 13 2013 Chapter 4 Wait For Script 4 5 17 Unlock Description unlock specified flash blocks on the device or disable the device master lock bit not available on devices which don t support erase block locking NB The device master lock bit must be unlocked with Unlock device before individual blocks can be unlocked Arguments lt block num s gt Required One of A list of block numbers to unlock written Unlock all blocks currently marked as written device Disables the master device lock bit Example Unlock device Unlock 0111417 4 5 18 Exit Description stop pro
86. Device Settings essent 58 3 5 13 Generic Boot Connection 58 3 5 14 Generic Boot Programming Options 58 3 5 15 Generic Boot Reset Pin 5 155 58 3 5 16 Generic Boot Reinterrogate on connect 58 R20UT0508EJ1200 Rev 12 00 RENESAS Page iii of xxii Feb 13 2013 3 5 17 Prior Generic 1 59 3 6 X Connecting to the 60 3 6 1 8 8 1 USB Connection eese nennen nennen 60 3 6 2 ID Check Dialogic recae re RUE ette EORR ene 62 3 6 3 Lockmp ia etetue eie eri aaepe 62 3 7 Programming the Data to the FLASH 63 3 7 1 Programming an individual file to the User Area normal flash 63 3 7 2 Programming multiple files to the User Area normal flash 63 3 7 3 Programming an individual file to the User Boot 63 3 7 4 Programming multiple files to the User Boot 2 222 64 3 7 5 Programming some files to the User Area and other files to the User Boot Area 64 3 7 6 Note on Programming 64 3 8 Erasing Data from the FLASH 65 3 9 Uploading the FLASH ROM
87. FDT will prompt to ask if you want to execute the saved script immediately R20UT0508EJ1200 Rev 12 00 RENESAS Page 74 of 214 Feb 13 2013 Chapter 4 Wait For Script 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 5 test Flash Development Toolkit 5 ni x File Edit View Project Tools Window Device Help lial amp s zj oceerzsel Z Defaut wg ee aq gj test Script Path EX scripts test Status Path _ scripts abel txt Configuation None Description Click to Cancel 7 Projects File Opened scriptsttest fsf Last Modified 13 Apr 06 16 11 58 Ready Defauitt desktop hs Figure 4 5 Wait For Script execution R20UT0508EJ1200 12 00 RENESAS Page 75 of 214 Feb 13 2013 Chapter 4 Wait For Script 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 recogni
88. Figure 17 8 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 R20UT0508EJ1200 Rev 12 00 RENESAS Page 196 of 214 Feb 13 2013 Chapter 17 ROM Code Protection 17 2 R32C Devices The operation of this command is very similar to QZROM Security Protection in that the same toolbar and dialog options are used However the important difference is that even when Parallel protection mode is set FDT s ability to connect read erase program etc the device is unaffected The protection will only disable ROM reads when connected via a parallel interface There are three options for the setting of security protection which are set as FDT disconnects 1 Automatic FDT will protect the device as it disconnects 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 no protection at all The default is No Protection Type Protect on Disconnect Cancel Do Nothing Figure 17 9 Disconnect Protect choice 3 None FDT will 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 R20UT0508EJ1200 Rev 12 00 RENESAS Page 197 of 214 Feb 13 2013 Cha
89. Figure 3 12 E8Direct RESET Pin Settings R20UT0508EJ1200 Rev 12 00 RENESAS Page 38 of 214 Feb 13 2013 Chapter 3 Using RESET Pin Settings X Select the pin settings required after a Disconnect RESET using Clock Mode NONE 1 Output D 2 GND 3 Output 4 Output A 5 Txd 6 Output E 7 Output B 8 UYCC 9 UvCC2 RESET ai Rx sena Ha 12 13 RESET 14 UCONNECT I cane Figure 3 13 E8aDirect RESET Pin Settings R20UT0508EJ1200 Rev 12 00 RENESAS Page 39 of 214 Feb 13 2013 Chapter 3 Using RESET Pin Settings Select the pin settings required after Disconnect RESET RESET Mode using Clock Mode USTOM U User Defined Output 5 io4 3 io2 iol iod m mm RESET e Setting High FE ES 5 T Figure 3 14 E1Direct RESET Pin Settings R20UT0508EJ1200 Rev 12 00 RENESAS Page 40 of 214 Feb 13 2013 Chapter 3 Using RESET Pin Settings x Select the pin settings required after a Disconnect RESET RESET Mode using Clock Mode cusro Operating Mode MM T aa Output 5 io4 io3 io2 iol io0 JEN RESET Setting High MNT i T VF 0x00 Figure 3 15 E20Direct RESET Pin Settings R20UT0508EJ1200 Rev 12 00 RENESAS Page 41 of 214 Feb 13 2013 Chapter 3 Using 3 5 Configuring a Project for a Generic Boot De
90. G Incorrect settings may damage the hardware 1 Output D 2 GND 3 Output C 4 Output A 5 Txd 6 GND 7 Output B Dutput BOOT Mode Dutputs BOOT Mode Setting High 0 00 Em _ 0 00 13 14 UCONNECT lt Back Cancel Figure 3 8 E8Direct Pin Settings R20UT0508EJ1200 12 00 RENESAS Page 34 of 214 Feb 13 2013 Chapter 3 Using Please select the pin settinas BOOT Mode using Clock Mode NONE Operating Mode T amis m WARNING Incomect settings may damage the hardware 1 Output D 2 GND 3 Output C um Out C 0 B PESCE 6 Output E BOOT Mode 0x00 Outputs I E BOOT r Setting High 12 GND 13 RESET 14 UCONNECT Figure 3 9 E8aDirect Pin Settings R20UT0508EJ1200 12 00 RENESAS Page 35 of 214 Feb 13 2013 Chapter 3 Using Pin Settings Please select the pin settings BOOT Mode using Clock Mode custom Operating Mode fu User Defined Output io5 io4 io3 io2 iol io0 m mm m mu BOOT Mode Setting High o T M 00 Figure 3 10 ElDirect Pin Settings R20UT0508EJ1200 12 00 RENESAS Page 36 of 214 Feb 13 2013 Chapter Using Pin Settings Please select the pin settings BOOT Mode using Clock Mode
91. Hex to upload noabsolute Optional Assign the start address of uploaded data to 0x00 userboot Optional Upload from the user boot area or the data area if supported Example upload nonel0l0x6000 upload c upload uploadtest motl0x 10010x200luserbootlnoabsolute 4 5 7 Checksum Description perform a checksum on a device not available when using Protocol E Arguments device Required Checksum the device Example Checksum device R20UT0508EJ1200 Rev 12 00 RENESAS Page 82 of 214 Feb 13 2013 Chapter 4 Wait For Script 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 Note that this option is not valid for COM based connections Arguments reset Optional 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 NONE E Example RebuildImage R20UT0508EJ1200 Rev 12 00 RENESAS Page 83 of 214 Feb 13 2013 Chapter 4 Wait For Script 4 5 10 Comment Description placed at the start of a line this symbol comments out the rest of the line Arguments NONE gt Example this is my comm
92. I Kernel Micro Kernel Main Kernel E8 ESUSB Field Programming Publishing E8Direct lii Abbreviations Refers to the programmable microcontroller or microcomputer that is connected to the PC ready for programming Dynamic Linked Library Flash Development Toolkit One time programmable memory Renesas High performance Embedded Workshop Personal Computer Universal Serial Bus 1 1 or above 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 often 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 The ability to package all kernel and data files into a single file for simplified sending to another FDT user A UART mode for use with the E8 R20UT0508EJ1200 Rev 12 00 Feb 13 2013 RENESAS Page xix of xxii iii Abbreviations E8a
93. Menu and Project Toolbar commands will be directed When a project has been created target files can be added to it These files may Be used to program the device Be used to build a Device Image Be opened in the hex editor Be marked as being destined for the User Boot Area for devices which support this Have their checksum calculated Have their data block usage displayed 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 Advanced messaging levels Device Image builder Uploading data from the target device Viewing uploaded data in big or little endian or floating point representation R20UT0508EJ1200 12 00 RENESAS Page 3 of 214 Feb 13 2013 Chapter 2 System Overview Simple Interface Mode for simplifying the user interface once the project is configured Automatic masking of non Flash areas in files upon opening project open Automatic masking of reserved sections within Flash areas 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 Title Bar window 5 Menu Bar 1e pa e ue el vAUEVEXEET IW anak lew Tool Bae manas ad csl Workspace P in Hex A
94. Otherwise deselect the checkbox This option is only available for devices that support erasure of the User Boot Area 11 1 9 Security Protection This option controls whether FDT should security protect some QzROM devices or parallel mode protect some R32C 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 QzROM protected device cannot be reconnected to 11 1 10 Set ID Code This option allows programming and erasing of ID codes key codes for generic boot devices with intelligent flash security IFS For details refer to section 19 Intelligent Flash Security IFS 11 1 11 Block Locking This option allows the user to lock or unlock blocks for some M16C family and generic boot devices 11 1 12 Other Properties Settings Target Power Target Power Settings dialog box where the setting can be changed is launched Auto Send ID ID check dialog box where the setting can be changed is launched 11 1 13 Field Programming gt Run Published File Unpackage another fpf4 file and use it in Simple Interface Mode 11 1 14 Unique Code Programming Allows setup and control of the Unique Code Programming feature within FDT See Chapter 16 for further details 11 1 15 About Shows the About box R20UT0508EJ1200 Rev 12 0
95. RIOT EE RR RD DE 72 4 2 4 Error Handling Pape ette terrre trees ceo nsi 73 4241 OnScnpt economie Ep RERO et EIE EYES 73 4 2 4 2 LI 74 R20UT0508EJ1200 Rev 12 00 RENESAS Page iv of xxii Feb 13 2013 4 3 Wait For Script Edit Configuration eene nennen rene 75 4 4 Wait For Script Run 75 4 5 Wait For Script Script Commands sees nennen rennen 76 4 5 1 76 4 5 2 m HM 77 4 5 3 DOWaload 80 4 5 4 lo e 80 4 5 5 BlankCheck 2 eurn e 81 4 5 6 Urn MCCC 82 4 5 7 COCK SUM m 82 4 5 8 lta um tee 83 4 5 9 Rebuild image e 83 4 5 10 Comment EU UR EDGE GERE RE e pes 84 4 5 11 E 84 4 5 12 E 84 4 5 13 85 4 5 14 Moye N e HER Ree ea a 85 4 5 15 golpe C II cc E 86 4 5 16 Pd 86 4 5 17 ME 87 4 5 18 87 4 5 19 HUP ENERO I PCT 88 4 6 Wait
96. S Page 116 of 214 Feb 13 2013 Chapter 8 Windows 8 2 Device File The Device File is the item containing the data to Flash into the device 3069 3069 2 6 Device Image Lo 3063 ddi d S Record Files raaMOT L 0 UB 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 22 Add Files Allows additional files to be added to the project R20UTO508EJ1200 Rev 12 00 RENESAS Page 117 of 214 Feb 13 2013 Chapter 8 Windows 8 2 3 Remove Files Removes files from the project 8 2 4 Allow Docking Allows the Workspace window to dock or be floating 8 2 5 Hide Hides the Workspace window 8 2 6 Properties Launches the device file properties dialog box 8 2 7 Display Block usage Launches the Data File 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 as excluded using the right mouse click it is possible to Include filename 8 2 9 User Boot Flash User Boot Flash 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 t
97. SAS Page 122 of 214 Feb 13 2013 Chapter 8 Windows Protocol This shows the type of communication protocols See also section 3 2 4 Protocol 0 35 devices Protocol C 0 18 um devices Protocol D R8C M16C M16C Tiny M32C or 740 devices Protocol E H8 Tiny or H8 SLP devices via E8a CKM This shows the multiplier of the system clock master clock for the input clock CKP This shows the multiplier of the peripheral clock for the input clock Clock Mode This shows the clock mode R20UT0508EJ1200 12 00 RENESAS Page 123 of 214 Feb 13 2013 Chapter 8 Windows 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 Industrial Controller E8a Direct 115200 bps Default Baud Rate Use Default Baud Target Power E8 E8a E1 Supply_5 0V Auto Send ID N A Pins Boot Direction amp State input 0 input 0 input 0 input 0 input 0 input 0 Reset Direction amp State input 0 nput 0 input 0 input 0 input 0 input 0 Figure 8 9 Communications Properties Port This drop 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 R2
98. T input clock frequency and multiplier Make sure that the conditions input through the FDT are correct 16162 Error No 16162 The connection timed out A problem has occurred during communications between the device and FDT host computer for some reason and communications are thus not possible This error may appear along with error 15005 COMXx read time out For how to deal with the error refer to the entry for error 15005 16164 Error No 16164 Checksum Read Error An incorrect checksum value was given in response to a checksum command In some protocols adopted for devices an additional byte as a sum code is used to guarantee the command data The checksum is correct when the lowest order byte of the result of command data sum code is 0 This error thus indicates that the sum of data including the sum code sent from the device in response to a checksum command was not 0 Possible reasons for this error include unstable serial communications between the FDT and device and if this is the case it is probably because device pin handling is incorrect pins TxD and RxD are not pulled up or Vcl pin handling is incorrect or the communications cable connecting the host computer and device on the target board is too long R20UT0508EJ1200 Rev 12 00 Feb 13 2013 34 N ESAS Page 212 of 214 Appendix Error Messages Error No Error Message Description 1
99. T0508EJ1200 12 00 RENESAS Page 199 of 214 Feb 13 2013 Chapter 17 ROM Code Protection 17 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 FDT Simple Interface Supported Version E Options Login RaF64110 Exit Port E8a Disconnected Batch Erase Mode Compare Mode AutoDisconnect Readback Verify Request Checksum Erase Device Before Program File Over Warning Renesas FDT4 08 Workspaces R32C R5F64110 R5F 64110 Eni Automatic v Prompt Security Protection Set ID Gade Block Locking Disconnect Other Properties Settines gt Field Programming Unique Code Programming About Figure 17 15 Security Protect Simple Interface The check mark shows the currently selected option Note these menu options will be disabled if the device does not support protection R20UT0508EJ1200 Rev 12 00 RENESAS Page 200 of 214 Feb 13 2013 Chapter 18 Windows Vista and Windows 7 Chapter 18 Windows Vista and Windows 7 Changes made to to support the Windows Vista and Windows 7 operating system affected both the installation of FDT and the subsequent layout of files In summary to install or maintain FDT a user should be running in Adminis
100. The E8a is the Next Generation E8 with additional functionality It is an on chip debugging emulator and Flash Programmer E8aDirect A UART mode for use with the E8a designed to be similar to the E8Direct El An on chip debugging emulator and flash programmer This successor to the E8a and E10A USB emulators provides significantly more powerful functionality and performance E1Direct A UART mode for use with the 1 E20 An on chip debugging emulator and flash programmer Along with the debugging functions supported by the E1 the E20 provides a higher level of debugging functionality including large capacity tracing and realtime RAM monitoring E20Direct A UART mode for use with the E20 R20UT0508EJ1200 Rev 12 00 RENESAS Page xx of xxii Feb 13 2013 iv Document Conventions iv Document Conventions This manual uses the following typographic conventions CONVENTION MEANING Menu gt Menu Option Bold text with gt is used to indicate menu options for example File gt Save As dialog name The is used to indicate the name of a dialog box or menu Filename ext Bold Courier Font is used to indicate filenames enter this string Used to indicate text that must be entered excluding the quotes Key Key Used to indicate required key presses For example Ctrlt N means press the Ctrl key and then whilst holding the Ctrl key down press the N key gt When this symbol is used it
101. The FDT was unable to recognize the communications port Check the port settings for the host computer you are using When we get inquiries regarding this error in many cases it is because the host computer is not compatible with RS232C leading to a a USB RS232C converter being in use or b a serial USB conversion IC and a self produced conversion circuit board being in use Unlike the RS 232C interface of a host computer ports are controlled via the USB in cases a and b so the communications timing is slightly delayed This may hamper the adjustment of timing between the FDT and device on the target board To avoid this problem use a host computer that is compatible with RS232C or an E8a that is connectable to the host computer via USB 16129 Error No 16129 Unable to download main kernel Invalid End of Setting Data Response Received An illegal command was received in the state of waiting for a data setting completion command Check the model name and pin settings of the device on the target board 16148 Error No 16148 Kernel Error Response Oxbf 0x24 Baud Rate change failed check clock and baud rate compatibility The newly specified baud rate is illegal the size of the error in the bit rate for serial communications is too big Make appropriate settings for the input clock frequency multiplier for the main clock frequency and multiplier for the peripheral clock frequency in the Devi
102. 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 Editor Show Tooltips New Reset 9 Pea 5 Toolbar Editor Figure 6 1 Customise FDT R20UT0508EJ1200 12 00 ENESAS Page 98 of 214 Feb 13 2013 Chapter 6 Configuring the User Interface 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 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
103. 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 minimise a window click on the minimise 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 bottom 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 affect
104. age 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 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 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 Rat
105. age of the Project Properties dialog box s m m mm Figure 3 38 ID Check Dialog e Enable automatically verifying ID When this check box is not selected the dialog will be displayed every time the connection is made however it will not be displayed if the ID code has already been checked 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 X The device reports one or more erase blocks are currently locked 9 we Should temporarily disable this locking to allow erase and program Figure 3 39 Locking Query Dialog R20UT0508EJ1200 Rev 12 00 RENESAS Page 62 of 214 Feb 13 2013 Chapter 3 Using 3 7 Programming the Data to the FLASH ROM 1 1 3 7 1 Programming an individual file to the User Area normal flash area Select Project Add Files or press the INS key to add the file to be downloaded to the project Click the right mouse button on the file displayed in the workspace window and select Download File Programming will be completed when Image written to device is displayed in the output window 3 7 2 Programming multiple files to the User Area normal flash area Add all the required target files to the project by selecting Project Add Files
106. al device on the target board are incorrect Check the settings for the actual device on the target board This error may appear along with error 16148 16149 Kernel Error Response 15019 Error No 15019 Download failed A problem has arisen during communications between the device and the FDT host computer for some reason and thus programming is not possible i e downloading has failed This error may appear along with error 15005 COMXx read time out For how to deal with the error refer to the entry for error 15005 R20UT0508EJ1200 Rev 12 00 Feb 13 2013 34 NESAS Page 209 of 214 Appendix Error Messages Error No Error Message Description 15024 Error No 15024 Boot failed The FDT has encountered a timeout error because the device was not in boot mode or communications between the device and host computer failed Check the following points Connection between the device on the target board and host computer Communications may fail if a USB RS232C converter self produced cable self produced extension cable for connection to the 8 etc is in use e Device on the target board Check the voltage of the power supply for the device on the target board Make sure that the boot mode and pin handling settings for the device are correct Make sure that the device selection is correct Note Correct operation of the E8a is only guarantee
107. amp erase Locked Set Locks Unlocks C parm c Query User To Set Unlocked Locks Unlocks Unlocked Do Nothing Li Unlocked 3 Unlocked Data Flash Do Nothine Enable Editing Figure 15 4 Block Lock Configuration Dialog 1 On Connect 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 R20UT0508EJ1200 12 00 RENESAS Page 181 of 214 Feb 13 2013 3 Lock Bit State Tree View Chapter 15 Locking The central part of the dialog shows the lock bit status of the device as a tree view similar to the Erase Blocks Dialog The view highlights several important pieces of information Lock Bit State State At Disconnect 2 9 MyDevice B S User Flash amp EBs EB amp EBS Ci EBS amp EB4 EBS Locked Unlocked Kant 1 C3 Data Flash Locked at disconnect Locked Unlocked Locked Unlocked lacked Unlocked at Unlocked Ublockad disconnect Unlocked Unlocked Does not support locking Figure 15 5 Lock Bit State Tree View Settings Lock Bit State The Lock Bit State column shows the lock bit state of each erase block T
108. ase based rather than programming based The Program Flash button will change to Erase the file image 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 111 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 1 4 Readback Verify This option controls whether FDT automatically performs a read and compare operation after 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 1117 File Over Warning The FDT opens a dialog box to confirm whether downloading should continue or be aborted when the file being downloaded is larger than the size of the ROM R20UT0508EJ1200 Rev 12 00 RENESAS Page 160 of 214 Feb 13 2013 Chapter 11 Field Programming 11 1 8 Erasure of User Boot Area Select the checkbox to enable erasure of the User Boot Area
109. bar buttons and a detailed description of each button s function see Chapter 6 R20UT0508EJ1200 Rev 12 00 RENESAS Page 6 of 214 Feb 13 2013 Chapter 2 System Overview Edit toolbar Save File Cut Copy Paste Open a Data File 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 a Data File Opens an S Record or other data file FDT toolbar Vt S HH PEL gt YK e Connect Disconnect Erase Blocks Blank Check Upload Dovwmload Active File Checksum Go from Address Run Block Locking Set ID Code Cancel Configure Flash Project Figure 2 7 FDT Toolbar R20UT0508EJ1200 12 00 RENESAS Page 7 of 214 Feb 13 2013 Chapter 2 System Overview Connect connects the device to the interface Disconnect disconnects the device from the interface Erase Blocks launches the Erase Block dialog box to erase all or individual blocks of the device FLASH memory Blank Check checks whether or not the FLASH section of the target device is blank Upload launches the Upload Image dialog box to allow data to be obtained from the target device Download Active File downloads the file which is active in the hex editor Checksum returns a checksum of the data in the FLASH Go from Address launches a dialog to select the address to execute from Run places the
110. ccessfully 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 R20UT0508EJ1200 Rev 12 00 RENESAS Page 172 of 214 Feb 13 2013 Chapter 13 19 Display adapters 5 2 DVD CD ROM drives E 23 Floppy disk controllers 8 Floppy disk drives IDE controllers Keyboards 8 Mce and other pointing devices Monitors EBY Network adapters Ports amp LPT Sound video and game controllers System devices Universal Serial Bus controllers Figure 13 2 E8Direct enumeration Interface Boards R20UT0508EJ1200 Rev 12 00 RENESAS Feb 13 2013 Page 173 of 214 Chapter 13 Interface Boards 13 6 Pins Pin No E8 Direct Pin Name E8a Direct Pin Name 1 Output D Output D 2 GND GND 3 Output Output 4 Output A Output A 5 Target Txd Input from Txd of Target Txd Input from Txd of Target Target device to Rxd0 of device to Rxd0 of 2215RUF on E8a 2215UF on E8 6 GND Connected to GND on E8 Output E 7 Output B Output B 8 UVCC can supply 3 3 or 5V or UVCC can supply 3 3 or 5V or detect if detect if target is powered target is powered 9 BUSY Not used for E8Direct BUSYNUVCC2 Serial voltage input for CLK Data Tx amp Rx can supply 3 3 or 5V o
111. ce Settings dialog box When we get inquiries regarding this error in many cases it is due to the selection of an inappropriate multiplier for the peripheral clock frequency For details on clock supply refer to the hardware manual for the device in use Also check the clock settings for the device on the target board R20UT0508EJ1200 Rev 12 00 Feb 13 2013 34 NESAS Page 211 of 214 Appendix Error Messages Error No Error Message Description 16149 Error No 16149 Kernel Error Response Oxbf 0x25 Input clock error The input clock frequency is beyond the range where the device can operate Make appropriate settings for the input clock frequency multiplier for the main clock frequency and multiplier for the peripheral clock frequency in the Device Settings dialog box When we get inquiries regarding this error in many cases it is due to the selection of an inappropriate multiplier for the peripheral clock frequency For details on clock supply refer to the hardware manual for the device in use Also check the clock settings for the device on the target board 16151 Error No 16151 Kernel Error Response Oxbf 0x27 Operating frequency error The clock frequency does not match the operating frequency specifications of the device characteristics The FDT checks the allowed range of operating frequencies for the device only by calculation against the conditions input through the FD
112. cessing the script and exit FDT Arguments NONE Example Exit R20UT0508EJ1200 Rev 12 00 Feb 13 2013 32 NESAS Page 87 of 214 Chapter 4 Wait For Script 4 5 19 1 Description Specify an ID code which will be compared with the ID code of target device where supported Note This command must be executed before the Connect command Arguments lt size gt Required Specify the size of the ID code R8C M16C M32C R32C and 740 devices 7 Generic Boot devices 16 NB If lt size gt is set other than 7 or 16 FDT will error lt ID code gt Required ID code must be in hexadecimal form and match the supplied lt size gt parameter Example ID 7112345678ABCDEF ID 16 FFFFFFFF1 1111111 AAAAAAAA22222222 Note In Generic Boot devices the number of bytes in the ID code differs with the device in use When the actual number of bytes is less than 16 pad the higher order bytes of the ID code value with H FF R20UT0508EJ1200 Rev 12 00 RENESAS Page 88 of 214 Feb 13 2013 Chapter 4 Wait For Script 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 EXAMPLE SCRIPT FILE open this workspace and associated project for which the flash project wizard must have completed successfully workspace C Workspaces
113. correct settings could damage your hardware Figure 3 25 E8aDirect Generic Device Pin Settings Note Setting the mode pins using the E8aDirect 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 E8aDirect unit is to be used to set up the connection Select USB Device 1 USB device located Figure 3 26 Select USB Device R20UT0508EJ1200 12 00 RENESAS Page 50 of 214 Feb 13 2013 Chapter 3 Using 3 5 6 Generic Boot E1Direct Pin Settings E1Direct connection only If El Direct is selected the following two screens will be shown The first allows optional power to be supplied to the target board via the E1 see also section 3 6 1 Target Power Settings Supply power from E8 E8a E1 to user target board Power supply from E8 E8a E1 33 50 Cancel information on the user power supply 13 Be sure to select this check box if user power supply at 18 Vis to be provided Memorize the settings in this dialog box until the workspace closed Figure 3 27 Select Target Power 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 requi
114. ctive Editor Project Hex Editor Address Column Additional Project Editor Data File window B 22i Properties Dialog Output 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 box or a window to interact with the system Clicking the left mouse button on a menu title will pull down that menu from R20UT0508EJ1200 Rev 12 00 RENESAS Page 4 of 214 Feb 13 2013 Chapter 2 System Overview 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 gt Insert Project Add Files Remove Files File Extensions Rebuild Image Download Image Field Programming 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 will be displayed next to its text when it is ON Window Device Help Cascade Tile Horizontally Tile vertically Arrange Icons Close All 1 2282Test mot 2 mot 0 000002 7
115. d with the cable included in the E8a package 15025 Error No 15025 Erase failed Erasing data in the flash memory in the device has failed The following reasons for this error are possible a A correct power supply voltage was not being supplied to the device from the E8a or target board b The device was not operating correctly due to pin settings c The device has been damaged d Commands were not executed because of failed communications between the device and host computer Be sure to check for conditions a to d Communications may fail when a USB RS232C converter self produced cable self produced extension cable for connection to the E8a etc is in use R20UT0508EJ1200 Rev 12 00 Feb 13 2013 RENESAS Page 210 of 214 Appendix Error Messages Error No Error Message Description 15031 Error No 15031 Erase failed When the device is activated in boot mode the FDT erases the data in the flash memory This error indicates that erasure has failed a A correct power supply voltage was not being supplied to the device from the E8a or target board b The device was not operating correctly due to pin settings c The device has been damaged Be sure to check for conditions a to c 15026 15060 15061 Error No 15026 Unable to open comms Error No 15060 Error while opening the port Error No 15061 Error while closing the port
116. d 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 Flash 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 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 Download Image 5 Programming is complete when Image 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 Flash 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 Rebuild Image 4 Select the menu item Project Download Image 5 Programming is co
117. d erasing of ID codes key codes for generic boot devices with intelligent flash security IFS R20UT0508EJ1200 12 00 RENESAS Page 1 of 214 Feb 13 2013 Chapter 1 Introduction R20UT0508EJ1200 12 00 RENESAS Page 2 of 214 Feb 13 2013 Chapter 2 System Overview Chapter 2 System Overview FDT provides a method of programming erasing and reading from Renesas Flash devices Workspaces and Projects can be used in order to save the settings between sessions for easy switching between different settings and to allow experienced users to configure the settings for less experienced operators FDT is designed to provide a common look and feel independent of the actual device to be programmed FDT employs a hierarchical structure so that work can be organised in a logical manner The top level of the structure is the workspace To be useful the workspace must contain at least one project In order to create a project a workspace must be created first Each project specifies its own target device configuration specified when creating the project and set of target files S Record Hex Binary that can be used to program the device The project settings for the target device connection need only be set once as they can be stored between sessions by saving the Project A single project within the workspace is active at any point in time The active project is the context to which all Device Menu Project
118. d 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 fpf4 packaged project file FDT can be started by double clicking on a fpf4 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 FDT path gt FDT exe DISCRETESTARTUP osre V Filename gt eg C Program Files Renesas F DT4 09 F DT exe DISCRETESTARTUP osre C Program Files Renesas files myfile mot This is the method used when an FDT data file is double clicked in Windows Explorer R20UT0508EJ1200 Rev 12 00 RENESAS Page 22 of 214 Feb 13 2013 Chapter 3 Using 3 3 9 2 Opening workspace files from the command line FDT path gt FDT exe DISCRETESTARTUP ow lt Long Path Workspacename gt 8 C Program Files Renesas FDT4 09 F DT exe DISCRETESTARTUP ow C Program Files Renesas F DT4 09 Workspaces 1234 1234 AWS This is the method used when an workspace is double clicked in Windows Explorer 3 3 9 3 Opening data files from the command line with Access Rights password security enabled FDT path gt FDT exe arl lt Username gt lt Password gt DISCRETESTARTUP osre
119. dle errors Note Only a single Workspace command can be defined within the script file that is controlled via each configuration file For details on the Workspace command refer to section 4 5 1 R20UT0508EJ1200 Rev 12 00 RENESAS Page 69 of 214 Feb 13 2013 Chapter 4 Wait For Script 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 Script File Log File Status File Error Handling Description 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 milliseconds before executing file Figure 4 1 Script File Page This is the only essential page in the wait for script configuration 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 nav
120. dministration 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 9 Customise 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 Script 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 R20UT0508EJ1200 Rev 12 00 RENESAS Page 107 of 214 Feb 13 2013 Chapter 7 Menus 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 t
121. ds programming kernels to the device as required Device Image The Recommended Speed setting is based on the current device 23 Target files 8 clock The user also input their own if this is supported Drive by the kernel and the optional 5 Daka net IA algorithm pee gt Use E Recommended Speeds 27500 Default d User Specified lt Back Cancel Figure 3 6 Connection Type R20UT0508EJ1200 Rev 12 00 RENESAS Page 32 of 214 Feb 13 2013 Chapter 3 Using 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 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 E8Direct E8aDirect E1 Direct E20Direct was selected click Next to continue What level of device protection would you like i r Protection Automatic Interactive None Space 2078 Display Ca When programming the device any blocks found to have been Device written previously will automatically be erased 7 image i Target files 5 LCP mot What level of messaging would you like 3 Keyboard m S Comms mot p Messaging Re Standard Advanced 2 Device Image Sy Target Files The T
122. e and pressing the button will initiate comparison of data in the file and data in the flash memory 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 directly into the field or clicking on the arrowed button and then either browsing or selecting from the recently used list which can hold up to four entries R20UT0508EJ1200 Rev 12 00 RENESAS Page 150 of 214 Feb 13 2013 Chapter 9 Simple Interface Mode R20UT0508EJ1200 12 00 RENESAS Page 151 of 214 Feb 13 2013 Chapter 10 Basic Simple Interface Mode Chapter 10 Basic Simple Interface Mode Invoked from the start menu Flash Development Toolkit 4 09 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 amp menu will invoke the Wizard to collect the new details Simple Interface Options BASIC FILE PROGRAMMING Exit Device H85 2218UF Pat USB Direct Selection Download File Due DAe pf User
123. e 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 SCI or MA SCII will need to be modified and the kernel recompiled Refer to the device hardware manual for details of how to calculate the Bit Rate Register value R20UT0508EJ1200 Rev 12 00 RENESAS Page 20 of 214 Feb 13 2013 Chapter 3 Using 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 Toolkit 4 09 then the Flash Development Toolkit 4 09 shortcut The Welcome dialog box will open by default es C Open a recent project workspace 2 eo Browse to another project workspace ne amp dmiistaion Figure 3 1 Welcome Dialog To create new workspace select Create a new Project Workspace and click the 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
124. e aborted R20UT0508EJ1200 12 00 RENESAS Page 189 of 214 Feb 13 2013 Chapter 16 Unique Code Programming 16 2 File Format FDT expects the unique code file list to be text based have a header section detailing where and how to write the unique codes and finally a paired list of index and unique code values The data can be tab space or comma delimited Any line beginning will be treated as a comment line and ignored Additionally any line containing wholly whitespace will also be ignored 16 2 1 Header section format Describes how FDT should interpret the unique code values stored in the list Valid values are ASCII codes 0x20 to Ox7E Hex area Indicates which Memory Area FDT should add the unique code into Valid values depend on selected device but include User Flash User Flash 1 User Flash 2 Data Flash User Boot Flash or H The value is the decimal number of bytes that will be written at the specified address i e for ASCII format one file character one byte but for HEX values one file character one nibble address The address within the specified Memory Area that FDT should write the unique code into The value is assumed to be hexadecimal based and have a leading The header section should be found at the start of the file Each specifier should be on a separate line and FDT expects all fields to be detailed although it will assume User Flash for the area The values
125. e and machine name date or time by using the U and M delimiters 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 R20UT0508EJ1200 Rev 12 00 RENESAS Page 72 of 214 Feb 13 2013 Chapter 4 Wait For Script 4 2 4 Error Handling Page This is an optional page Wait For Script Configuration Script File Log File Status File Error Handing Continue C Run Script Figure 4 4 Error Handling Page 4 2 41 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 Continue 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 output ck ck ck KK KKK KKK KKK KK kk kk ke Sk kc ko ko Alert output THE CURRENT SCRIPT PROCESSING HAS FAILED x x x x x x
126. e 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 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 SCII 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 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 R20UT0508EJ1200 Rev 12 00 RENESAS Page 17 of 214 Feb 13 2013 Chapter Using 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 a
127. e 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 is new from 3 06 and can be modified by adding an entry into the FDT ini file 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 R20UT0508EJ1200 Rev 12 00 RENESAS Page 136 of 214 Feb 13 2013 Chapter 8 Windows 8 8 1 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 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
128. e written or erased whether they are currently locked or not Query User FDT will ask the user what to do about the locking of the device on connection Flash Development Toolkit xi The device reports one or more erase blocks are currently locked we j Should FDT temporarily disable this locking to allow erase and program Figure 15 3 Query Connection Message If Yes is clicked then the locking will be disabled as in 1 If No is selected then the locking settings will be left alone as below 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 R20UT0508EJ1200 Rev 12 00 RENESAS Page 180 of 214 Feb 13 2013 Chapter 15 Locking 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 Block Locking r On Connect On Disconnect What should FDT do by Lock Bit State default when connecting to State At Disconnect What should FDT do by default when disconnecting from a device with locking amp User Flash device with locking ability ability Q Locked Disable Locks EB Unlocked allow write
129. ed 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 R20UT0508EJ1200 Rev 12 00 RENESAS Page 96 of 214 Feb 13 2013 Chapter 6 Configuring the User Interface 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 2 A specific window can also be selected by clicking on the tab 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 toolbar
130. ed Colophon 1 3 Renesas FLASH Development Toolkit 4 09 for Windows XP Windows Vista and Windows 7 User s Manual RENESAS Renesas Electronics Corporation R20UT0508EJ1200
131. ed When using the kernel for the first time you will need to browse to the alternate location to find the fcf file If 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 buildall 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 S Er T CH38 C hew tools Renesas h8 4_0_A INCLUDE PATH PATHS hew tools Renesas h8 4_0_A bin set DOS16M 1M 31M SET CH38TMP c Note The above batch file should be modified to reflect the path of your compiler Ensure that the specified temporary directory exists and is writeable R20UT0508EJ1200 Rev 12 00 ENESAS Page 19 of 214 Feb 13 2013 Chapter 3 Using 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 Im
132. en running under the Windows Vista and Windows 7 O S are currently disabled in preference for the User Access Controls provided by Windows Vista and Windows 7 See the FDT Usage section for more information 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 This 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 R20UT0508EJ1200 Rev 12 00 RENESAS Page 92 of 214 Feb 13 2013 Chapter 5 Access Rights 5 3 Access Rights Administration This is reached via the Tools Access Rights Administration menu item i User Admin 3 Figure 5 1 User Admin 5 3 1 Disable All This button allows disables all user accounts and switches off Access Rights password security R20UT0508EJ1200 12 00 4 NESAS Page 93 of 214 Feb 13 2013 Chapter 5 Access Rights 5 3 2 Modify User This button allows modification of the settings for the selected user by invoking the Modify User dialog x Account Access Rights SIM User JAccessRights Admin FDT Project E dit Simplelnterface E xit Simpleinterface Download File
133. ented line 4 5 11 Alert Description indicate to the user that something has happened Arguments beep Required One of FDT will output a warning beep output FDT will output a message on the active project tab Example Alert outputlPlease 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 lt time gt Required Number of milliseconds to pause for Example Pause 2000 R20UT0508EJ1200 Rev 12 00 RENESAS Page 84 of 214 Feb 13 2013 Chapter 4 Wait For Script 4 5 13 Delete Description deletes the script file NB FDT will process the script no further than this line before deleting it Arguments script Required Delete the script file Example Delete script 4 5 14 Move Copy Description move or copy the script file NB FDT will process the script no further than this line Arguments script Required this script file lt filename gt Required The file directory the source file is to be lt directory gt copied moved renamed to Example Move script I server networkfiles done txt Copy scriptIC backups R20UT0508EJ1200 Rev 12 00 Feb 13 2013 34 NE ESAS Page 85 of 214 Chapter 4 Wait For Script 4 5 15 Abort
134. erface E20Direct UART with E20 include the FINE interface RS 232C USB Direct USB Supplementary Setting to Place the Low Level on the Reset Pin at the Time of Disconnection If Set Reset pin as low when disconnecting is selected in the Communications Port dialog box a low level signal will be output by the reset pin when the device is disconnected This option is only available when E8a E8aDirect E1 E1 Direct E20 or E20Direct has been selected for Select port R20UT0508EJ1200 12 00 RENESAS Page 29 of 214 Feb 13 2013 3 4 4 Device Settings Chapter 3 Using 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 E z Space Induce ia Jus Display 6 cd Device Image Enri y Target files i LCD mot Keyboard n IS Comms mot C Device Image Target Files 23 Drive mot Data met 15 Algorithm m Please enter the specific device options based on H85 2282F using Protocol B Select the external clock or the External Clock Y internal clock Enter the CPU crystal frequency for the selected device Enter the clock mode for the selected device NONE 71 Select the multiplier for the Main 1 X clock frequency Select the multiplier for the Peripheral clock f
135. ernel files the fcf Flash Configuration File file holds details about the device and kernel The contents indicate the RAM size flash memory size block configuration default baud rate and default crystal frequency This file is protected by a checksum so editing it will render this invalid which the FDT will detect Upon detecting an invalid checksum for the file the FDT will warn the user but will not prevent use of the modified files R20UT0508EJ1200 Rev 12 00 RENESAS Page 18 of 214 Feb 13 2013 Chapter 3 Using 3 2 6 Can I use FDT if I do not have Local Machine Administrator rights for my PC 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 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 unmodifi
136. from 7 7 9 Run This inputs the reset signal to place the device into user mode and if necessary supplies power so that programmed device code can be tested No other FDT functions are available while in this mode Toggle to cancel Note it may be necessary for FDT to query for user mode pin settings and power levels to complete this operation 7 7 10 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 7 11 Set ID Code This launches a dialog box that allows the user to set an ID code for the project only if the configured device supports this feature 7 7 12 Cancel Operation Cancels the current FLASH operation 7 713 Configure Flash Project Displays the Flash Properties dialog or launches the Project Wizard if the device is not yet configured R20UT0508EJ1200 Rev 12 00 RENESAS Page 110 of 214 Feb 13 2013 Chapter 7 Menus 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 7 8 3 About Launches the About Flash Developmen
137. g on a workspace file 2 2 2 1 21 R20UT0508EJ1200 Rev 12 00 RENESAS Page ii of xxii Feb 13 2013 3 3 4 Starting FDT by double clicking on a data 22 3 3 5 Starting by double clicking on a w4f script configuration 22 3 3 6 Starting with Simple Interface Mode 22 3 3 7 Starting with Access Rights password security enabled 22 3 3 8 Starting by double clicking on fpf4 packaged project 22 3 3 9 Starting FDT from the command 22 3 3 91 Opening data files from the command 22 3 3 0 2 Opening workspace files from the command line 42121 23 3 3 0 3 Opening data files from the command line with Access Rights password ceu dupl e E 23 3 3 0 4 Opening w4f Script Configuration files from the command line 23 3 3 0 5 Opening w4f Script Configuration files from the command line with Access Rights password security enabled 000 23 3 3 9 6 Starting FDT Basic Simple Interface Mode from the command line 24 3 4 Creating a New Workspace and 25 3 4 1 New Project Workspace lt lt 25 3 4 2 Cho
138. gory Description Hot Key Help Help F1 File Commands Close File Ctrl F4 Open Data File Ctrl R Save All Ctrl Shift H Save Ctrl S Exit Alt F4 Edit Commands Undo Ctrl Z Redo Cut Ctrl X Copy Ctrl C Paste Ctrl V Select All Find Ctrl F Find In Files 4 Replace Ctrl H Tools Commands Login Ctrl Shift U Simple Interface Commands Login Ctrl Shift U View Workspace Alt K Output Alt U R20UT0508EJ1200 Rev 12 00 RENESAS Page 13 of 214 Feb 13 2013 Chapter 2 System Overview Description Hot Key Window View as ASCII Alt A View as Bytes Alt 1 View as Word Alt 2 View as Dword Alt 4 Align to 8 Bytes Alt 8 Device Connect Ctrl Alt C Erase Flash Blocks Ctrl Alt E Blank Check Ctrl Alt B Upload Image Ctrl Alt U Download Active File Ctrl Alt P Flash Checksum Ctrl Alt S Go From Address Ctrl Alt G Run Ctrl Alt R Block Locking Ctrl Alt L Set ID Code Ctrl Alt T Cancel Operation Ctrl Break Configure Flash Project Alt Shift R Data File Suppress request to save changes Hold Shift key when closing data file a data file when closing it do not save changes R20UT0508EJ1200 Rev 12 00 RENESAS Page 14 of 214 Feb 13 2013 Chapter 3 Using 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 Toolkit 4 09 then the Flash Development
139. h e YER EA 161 112110 Set ID Code rire eerte esr et ie neat eps 161 11 1 11 Block Eocking ue oe ne ert eee eae 161 11112 Other Properties Settings eese 161 11 1 13 Field Programming gt Run Published File eee 161 11 1 14 Unique Code Programming eese 161 111459 sconces REED EG ea ia needs 161 11 2 Dialog Controls 162 11 2 1 Back to Project hte et OE D EE Abeta es 162 11 2 2 od P 162 R20UT0508EJ1200 Rev 12 00 RENESAS Page xi of xxii Feb 13 2013 11 2 3 Download Project Image radio 162 11 2 4 Program Flash ioco tis tinier E S ae 162 11 2 5 DISCONNECE 162 Chapter 12 Updating the Adapter Software 2 164 IS MIL 164 12 2 Eld nd B20 p dE URP 167 Chapter 13 Interface Boards 168 13 1 ES mcorporating ES8Direct erba tiene nores ea 168 13 2 E8a incorporating 8 169 13 3 Elncorporating ElDitect 170 13 4 E20 incorporating E20Direct essere nennen trennen renes 171 13 5 ES Firmware and Device
140. hardware if incorrect settings are used It is important to always ensure that the target board power is switched off when plugging the connector into the target board R20UT0508EJ1200 Rev 12 00 RENESAS Page 168 of 214 Feb 13 2013 Chapter 13 Interface Boards 132 E8a incorporating E8aDirect Similar to the E8 the E8a is a USB debugging and flash programming interface board It converts the data from USB to serial and allows control of up to six I O pins and the reset signal It can supply 3 3 or 5 0 volts to the target but the I O and serial voltage levels must be the same The E8a board utilises a clock synthesiser to allow higher baud rates and improved baud rate matching between the interface board and the target board The E8a has two modes of operation but switching between them is automatic E8a Mode This is the default mode when the E8a is plugged in In this mode the pin settings for controlling the mode pins are predefined E8aDirect Mode This is a general purpose mode of operation where the user specifies the pin settings for controlling the target I O pins in a similar manner to the E8Direct Note that when actively connected to an E8a FDT will display details of the active E8a serial number in the status bar R20UT0508EJ1200 12 00 RENESAS Page 169 of 214 Feb 13 2013 Chapter 13 Interface Boards 13 3 incorporating E1Direct The 1 is a USB debugging and flash programming interface board It
141. here are two symbols to show this state Q the erase block was found to be locked the erase block was found to be unlocked 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 R20UT0508EJ1200 Rev 12 00 Feb 13 2013 32 NESAS Page 182 of 214 Chapter 15 Locking State at Disconnect The State at Disconnect column shows what the lock bit 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 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 bit 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 its current state Note if FDT is not yet connected to the device then this tree will be blank In addition the Enable Editing checkbox wil
142. hether 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 Protection Type E Protect on Disconnect Do Nothing Figure 17 2 Disconnect Protect choice 3 None FDT will 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 17 11 Toolbar In full FDT mode and with a 7 based project the Protection toolbar will be enabled This shows the currently chosen option which can be changed by simply clicking on an adjoining icon Figure 17 3 Automatic Figure 17 4 Prompt Protection x amp sg 8 Figure 17 5 None R20UT0508EJ1200 Rev 12 00 RENESAS Page 194 of 214 Feb 13 2013 Chapter 17 ROM Code Protection Note clicking on the icons will not immediately protect the device This is still merely the current disconnect setting 17 1 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 Industrial Controller Device Protection Automatic Message Level High Readback Verification No Reset on Disconnect No Connection Reset N A Reinterrogate on Connect security Protection File Over Warning
143. ic Boot devices If this option is set to Query FDT will ask you to select whether to reinterrogate the device You can edit the setting after double clicking on this row Security Protection This option controls whether FDT should security protect some QzROM devices or parallel mode protect some R32C devices as it disconnects It echoes the setting on the Protection 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 R20UT0508EJ1200 Rev 12 00 ENESAS Page 129 of 214 Feb 13 2013 Chapter 8 Windows File Over Warning With this option set to Yes default the FDT opens a dialog box to confirm whether downloading should continue or be aborted when the file being downloaded is larger than the size of the ROM You can edit the setting after double clicking on this row Erasure of User Boot Area With this option set to Yes erasure of the User Boot Area is enabled With this option set to No erasure of the User Boot Area is disabled You can edit the setting after double clicking on this row This option is only available for devices that support erasure of the User Boot Area Function Map This is not used in communication protocol B C D or E 8 5 5 Modules Tab This shows each Kernel file name Some e
144. icking invokes the Project Wizard to allow editing of this item R20UT0508EJ1200 12 00 RENESAS Page 126 of 214 Feb 13 2013 Chapter 8 Windows RAM 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 Interface If the target is connected directly to the host computer the connection interface should be selected to Direct Connection 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 R20UT0508EJ1200 12 00 RENESAS Page 127 of 214 Feb 13 2013 8 5 4 Programmer Tab Chapter 8 Windows This shows the state of the Function Map and allows the user to selec
145. igate 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 V 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 R20UT0508EJ1200 Rev 12 00 RENESAS Page 70 of 214 Feb 13 2013 Chapter 4 Wait For Script 4 2 1 3 Timings This allows user control over how often FDT polls for the script file and how long 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 lf File Exists Append C Overwrite Valid Delimiters User Name D Script Execution Date The sign Machine Script Execution Time Figure 4 2 Log File Page 4 2 2 1 Log File Directory Enter the directory that the optional log file should be created in FDT can insert additional details
146. indow If a match is found the Editor window is updated to display the found data 8 8 13 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 R20UT0508EJ1200 Rev 12 00 RENESAS Page 138 of 214 Feb 13 2013 Chapter 8 Windows 8 8 14 Properties Launches the Data File Properties dialog box 8 8 15 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 8 8 16 Data Entry Note 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 is fixed in the entry text box so hexadecimal values are appended 8 8 17 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 named kernel command Go From Address R20UT0508EJ1200 Rev 12 00 RENESAS Page 139 of 214 Feb 13 2013 Chapter 8 Windows 8 9 Custo
147. inue From Previous User Specified This allows a subset of values from the code file list to be used Next Index this is the inclusive value of the index that FDT should use as the next point for the unique code programming FDT will attempt to look up the value associated with this index and display the result below the edit field To automatically start at the start of the code file list leave this value blank Start Of File will be displayed below the edit field After a successful programming run this number will be iterated to the next index in the code file list This updated starting point will be saved between FDT sessions End Index this is the inclusive value of the index that FDT should use as the finishing point for the list iteration FDT will attempt to look up the value associated with this index and display the result below the edit field To automatically read through to the end of the code file list leave this value blank End Of File will be displayed below the edit field 16 1 4 Data Overwrite FDT will insert the unique code at the memory location specified in the code file If data is already found at this location in the data file to be programmed there are two options to control how FDT will react Continue the unique code will be written into the specified location in the programming data and any existing entries at this location will be overwritten Abort if a conflict is detected the programming will b
148. ion R20UT0508EJ1200 Rev 12 00 RENESAS Page 60 of 214 Feb 13 2013 Chapter 3 Using Supply power from E8 E8a E1 to user target board When this check box is selected either 3 3 V or 5 0 V can be selected e Information on the user power supply This check box can be checked when 1 8 V programming is supported and when Supply power from E8 E8a E1 to the user target board is not selected Also for the user power supply voltage refer to the additional document Precautions on Using Flash Development Toolkit e Memorize the settings in this dialog box until the workspace closed When this check box is selected the selected setting is remembered until the workspace is closed or the FDT session is terminated Notes 1 The target device may be damaged if an incorrect voltage setting is chosen or if the 1 8 V user power supply is applied without selecting the Information on the user power supply check box 2 The E20 cannot supply power to the target device R20UT0508EJ1200 Rev 12 00 RENESAS Page 61 of 214 Feb 13 2013 Chapter 3 Using 3 6 2 ID Check Dialog Devices that support the ID checking function are capable of verifying data input to the ID check dialog box against the ID stored in the device As well as input to the fields the mot or ID file can be selected by the Browse button This dialog box can also be set in Auto Send section of the Communication tabbed p
149. is always located in the left hand The how to symbol margin It indicates that the text to its immediate right is describing how to do something Table 1 Typographic Conventions Windows is a registered trademark of Microsoft Corporation R20UT0508EJ1200 Rev 12 00 RENESAS Page xxi of xxii Feb 13 2013 iv Document Conventions R20UT0508EJ1200 Rev 12 00 RENESAS Page xxii of xxii Feb 13 2013 lt Chapter 1 Introduction Chapter 1 Introduction The Renesas Flash Development Toolkit FDT is an on board FLASH programming tool for Renesas Flash microcomputers that provides a high performance and user friendly Graphical User Interface GUI Embedded software development projects created using the Renesas High performance Embedded Workshop HEW may be programmed into Renesas Flash devices using FDT FDT may also be used as a general purpose S Record or Hex editor 1 1 Key Features Standard window operation based on the 32 bit Windows GUI Various online help functions Selectable messaging levels Simple programming environment optionally controls an adapter board Serial communication USB communications supported via USB Interface Boards USB communications directly to selected target devices Wait for Script File facility Multiple flash areas in a single image DDI Unique code programming for serial numbering etc Programming an
150. is controlled from a user specified external file When in normal FDT project mode Unique Code Programming is enabled disabled and configured from the Tools menu by Tools gt Unique Code Programming When in Simple Interface Mode then the same dialog can be found via the Options gt Unique Code Programming menu Unique Code Programming is not available when in Basic Mode Once enabled for every programming action FDT will add in a specified serial number and automatically iterate to the next number on the following programming run This serial number inclusion will be accounted for in any read verification or checksum operation Additionally the whole process can also be incorporated into the scripting language for automated control When the end of the external file is reached or the specified end value within the file FDT will halt programming operations until the project is closed and reopened if in Restart on Session mode or the index is manually reset if in User Specified mode The current status of the Unique Code Programming feature can be found in the status bar UcP PREV 0002 0003 Figure 16 1 Unique Code Status Indicator When the feature is enabled the status shows the previously programmed unique code and the value of the next to be used When the feature is disabled this status will be blank R20UT0508EJ1200 12 00 RENESAS Page 187 of 214 Feb 13 2013 Chapter
151. is the default mode when the E20 is plugged in In this mode the pin settings for controlling the mode pins are predefined but the FDT does not support this E20Direct Mode This is a general purpose mode of operation where the user specifies the pin settings for controlling the target I O pins Note that when actively connected to an E20 FDT will display details of the active E20 serial number in the status bar R20UT0508EJ1200 12 00 RENESAS Page 171 of 214 Feb 13 2013 Chapter 13 Interface Boards 135 ES Firmware and Device ID When plugged in initially the E8 will report itself as a Renesas E Series Device Action View Help m eaea Mj Computer Su Disk drives gt 90 Display adapters b DVD CD ROM drives 3 Floppy disk controllers Floppy disk drives E IDE controllers Keyboards Mice and other pointing devices Monitors B Network adapters AAS SR eS Se gt Y Ports COM amp LPT D System devices Universal Serial Bus controllers Figure 13 1 Initial E8 enumeration To use the E8Direct functionality the E8 must be restarted a task done automatically by FDT during a connection operation which may involve a firmware upgrade see Chapter 12 Updating the Adapter Software The Output window will contain the following messages Preparing for re enumeration of E8 to E8Direct Sending re enumeration command Request sent su
152. it 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 created 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 R20UT0508EJ1200 Rev 12 00 RENESAS Page 91 of 214 Feb 13 2013 Chapter 5 Access Rights Chapter 5 Access Rights 5 1 Access Rights Overview 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 NOTE Access Rights wh
153. k Locking This option allows the user to lock or unlock blocks for some M16C family and generic boot devices 10 1 13 Other Properties Settings Target Power Target Power Settings dialog box where the setting can be changed is launched Auto Send ID ID check dialog box where the setting can be changed is launched 10 1 14 New Settings Run the Wizard to allow entry of the new settings 10 1 15 About Shows the About box R20UT0508EJ1200 Rev 12 00 ENESAS Page 154 of 214 Feb 13 2013 Chapter 10 Basic Simple Interface Mode 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 permission for access to SimpleInterface Download File see Chapter 5 for details Download File When this button is selected the user can select downloading to the User Data Area or the User Boot Not selectable if the device in use does not have a User Boot Area 10 2 3 Compare File gt Device Compare Device Compare File gt Device File Data Only radio buttons These radio buttons are mutually exclusive and only usable in the comparison mode
154. l 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 smaller 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 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 Gene
155. l Controller and there are two projects the first is also called Industrial Controller and the second is called User Mode Reprogramming 21 4 Industrial Controller E 45 Industrial Controlle Add Files B 5 Record Files 8 2282T est mo Remove Files i A uGenU mot Add Folder ag User Mode Reprograr 2 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 Hide menu items inherited from the workspace the pop up menu for Projects has the following items 8 1 2 1 Add Files Launches the Open dialog box allowing the user to add data 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 R20UT0508EJ1200 Rev 12 00 RENESAS Page 114 of 214 Feb 13 2013 Chapter 8 Windows 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 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
156. l be unavailable R20UT0508EJ1200 12 00 RENESAS Page 183 of 214 Feb 13 2013 Chapter 15 Locking 15 4 Disconnection Depending on the current disconnection setting selectable from the Locking Dialog see section 15 3 will do one of three things when a user chooses Disconnect from the toolbar or menu 1 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 x FDT will unlock the Following blocks but this will require them to be erased we 4 0x000F8000 Ox000F9FFF Continue Yes No Figure 15 6 Erase Confirmation Message If the user selects Yes FDT will lock and unlock as appropriate If the user selects No then no erase will occur and no locks will be set however the disconnection operation will continue R20UT0508EJ1200 Rev 12 00 RENESAS Page 184 of 214 Feb 13 2013 Chapter 15 Locking 2 Query User If the Query user option is selected then FDT will display a limited view of the Locking Dialog This shows the lock bit state of the device and the lock bit 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
157. l user can read This has the following 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 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 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 R20UT0508EJ1200 Rev 12 00 RENESAS Page 90 of 214 Feb 13 2013 Chapter 4 Wait For Script When FDT begins a Wa
158. led 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 Compare Mode This will change the dialog box so that the operation is comparison rather than programming The Program Flash button will be replaced by a button labeled Compare Clicking on Compare will start comparison of data in the file with data in the flash memory 9 1 4 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 5 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 6 Request Checksum This option controls whether FDT automatically performs a checksum request operation after programming The setting is remembered between sessions 9 1 7 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 R20UT0508EJ1200 Rev 12 00 RENESAS Page 147 of 214 Feb 13 2013
159. llows 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 SCII 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 E8a 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 Protocol E For some H8 Tiny and H8 SLP Super Low Power devices please refer to readme text file for details Although FDT can communicate to H8 Tiny and H8 SLP devices with COM or E8aDirect as Protocol FDT can also communicate to H8 Tiny and H8 SLP devices with E8a as Protocol E It is important to note though that key FDT functions are not available in Protocol E e Erasing Data from the FLASH ROM is unavailable although all FLASH ROM data is still erased during connection e Uploading the FLASH ROM Data is unavailable e Performing a Blank Check is unavailable e Readback Verify is unavailable but FDT will automatically perform a checksum after programming 3 2 5 What is the fcf file and can I edit it Stored alongside the other k
160. mage Files 3 S Record Files 3 2282Test mot uGenU mot Properties 0 m 15015 Figure 8 1 Workspace Window R20UT0508EJ1200 12 00 RENESAS Page 112 of 214 Feb 13 2013 Chapter 8 Windows Invoking certain menu items from a pop up menu in the Workspace window will 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 8 1 1 2 Allow Docking Invoking this option allows the user to 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 ax findustral Controler Localion FAFDT WorkspacesNndustnal Controfer Industial Co Last mod ied 13 48 38 Tuesday March 11 2003 CPU family All Flash Devices Tool chain Cancel Information No workspace information available Show workspace information on workspace open Figure 8 2 Workspace Properties R20UT0508EJ1200 Rev 12 00 RENESAS Page 113 of 214 Feb 13 2013 Chapter 8 Windows 8 1 2 Project The Project is the next item in the hierarchy below the Workspace In the following example the Workspace is called Industria
161. ment for aging degradation or any other appropriate measures Because the evaluation of microcomputer software alone is very difficult please evaluate the safety of the final products or systems manufactured by you Please contact a Renesas Electronics sales office for details as to environmental matters such as the environmental compatibility of each Renesas Electronics product Please use Renesas Electronics products in compliance with all applicable laws and regulations that regulate the inclusion or use of controlled substances including without limitation the EU RoHS Directive Renesas Electronics assumes no liability for damages or losses occurring as a result of your noncompliance with applicable laws and regulations Renesas Electronics products and technology may not be used for or incorporated into any products or systems whose manufacture use or sale is prohibited under any applicable domestic or foreign laws or regulations You should not use Renesas Electronics products or technology described in this document for any purpose relating to military applications or use by the military including but not limited to the development of weapons of mass destruction When exporting the Renesas Electronics products or technology described in this document you should comply with the applicable export control laws and regulations and follow the procedures required by such laws and regulations It is the responsibility of the buyer or distributor
162. mise Toolbars Invoked by Tools gt Customise in the Customise dialog box customise zx Toolbars Menu Show Tooltips New Reset Toolbar name Editor Figure 8 20 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 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 R20UT0508EJ1200 Rev 12 00 RENESAS Page 140 of 214 Feb 13 2013 Chapter 8 Windows 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
163. mplete when Image written to device is displayed in the output window for both the User Area and the User Boot Area 3 7 6 Note on Programming Checksum For those devices which support this feature FDT will perform a CRC based checksum immediately after a programming run The CRC for the file will be compared to the CRC of the programmed data and the result echoed to the Output Window Any mis match will be reported as an error The CRC calculation is based on the CRC16 CCITT algorithm and covers the range of the programmed area assuming an initial value of OxFFFF and a final reverse of the result R20UT0508EJ1200 Rev 12 00 RENESAS Page 64 of 214 Feb 13 2013 Chapter 3 Using 3 8 Erasing Data from the FLASH ROM 1 Select Device gt Erase FLASH blocks to display the Erase Blocks dialog box 2 Select the block s to be erased When the checkbox is ticked the block is selected 3 Click the Erase button to start erasure 4 When Erase complete is displayed in the output window erasure is completed Tree End Size Written Protection Select alll R5F21123 User Flash 0 00000000 0 0000 1 0 00000000 Ox0000DFFF Unknown 0 0000 000 OxOOOOFFFF Unknown B Data Flash 0 00002000 0 00002 3 EBA 0 00002000 0 000027 Unknown EBB 0 00002800 0 00002 Unknown Select Written Upload Erase Cancel Figure 3 40 Erase Blocks
164. n A xl Group S Hecaid Files ir Associated Open S Record Files with Hex Editor gt 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 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 fpf4 file which contains all kernel and data files to send to another FDT user Run Published File Unpackage a fpf4 file and use it in Simple Interface Mode See Chapter 11 Field Programming for more details R20UT0508EJ1200 Rev 12 00 RENESAS Page 106 of 214 Feb 13 2013 Chapter 7 Menus 7 5 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 A
165. name 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 R20UT0508EJ1200 Rev 12 00 RENESAS Page 24 of 214 Feb 13 2013 Chapter 3 Using 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 findustia Controller Project Name Industrial Cortrofer Directory c FDT Workspaces industral Controller CPU family Flash Device Tool chain None Figure 3 2 New Workspace Enter the workspace name the project name is the same by default then click the button If you wish to change or create a directory input a directory name or use Browse button R20UT0508EJ1200 Rev 12 00 RENESAS Page 25 of 214 Feb 13 2013 Chapter 3 Using 3 4 2 Choose Device and Kernel not Generic Boot Select the device kernel you wish to use from the list The list can be filtered by typing into the Filter box note that if the project name starts with three or more numbers then these will automatically be entered into the Filter box It is possible to have more than one kernel option displayed for a
166. nection Examples Connect Connect COMI Connect USBIOx000DIO Connect USBIE81000115 010 0 Connect USBIE8al6JS99999915 010 0 Connect USBIE8al6JS999999 User1 810 0 R20UT0508EJ1200 Rev 12 00 RENESAS Page 79 of 214 Feb 13 2013 Chapter 4 Wait For Script 4 5 3 Download Description download the selected project image to the device Arguments image Required One of Download the device image lt filename gt Download the named file user Required One of Download to the User Data E2Data 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 verify Optional Perform a readback verify when the download completes not available when using Protocol E Example Download imageluserlnorebuildlverify Download C files MySrecord motluserboot 4 5 4 Erase Description erase specified flash blocks on the device not available when using Protocol E Arguments block num s Required One of A list of block numbers to erase block numbers are only specifiable as decimal numbers block name s gt
167. nnected 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 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 R20UT0508EJ1200 Rev 12 00 RENESAS Page 109 of 214 Feb 13 2013 Chapter 7 Menus 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 e g 64Kb 128Kb etc 7 7 8 Go From Address This launches 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
168. ntries may be blank because most kernels do not use all of the modules Flash Properties x Figure 8 12 Module Properties R20UT0508EJ1200 Rev 12 00 RENESAS Page 130 of 214 Feb 13 2013 Chapter 8 Windows 8 6 Data File Properties Window Once a file is open and selected in the Hex Editor window the dialog can be invoked by clicking the Properties button on the S Record Data File toolbar from the Right Click Properties Menu entry or using the Alt Shift P hot key 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 Data File Properties 2282Test mot l xj Block Usage Cursor Value Checksum Address Bengt 00000000 00000003 00000004 H 00001000 H OOO00111D 0000011 Figure 8 13 Data File Properties Block Usage R20UT0508EJ1200 Rev 12 00 RENESAS Page 131 of 214 Feb 13 2013 Chapter 8 Windows 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 Data File Properties 2282Test mot EE sd Block Usage Cursor Value Checksum
169. o User Area User Boot Flash 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 Flash file R20UT0508EJ1200 Rev 12 00 RENESAS Page 118 of 214 Feb 13 2013 Chapter 8 Windows 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 64 Kb 128 Kb etc before calculating the checksum The result is shown in the output window An example is shown below File Checksum 0x07F5A651 EPROM style Raw Checksum 0x07F5A651 over address range 0x00000000 0x0007FFFF 8 2 2 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 0 07 5 651 User Area File Checksum 0x07F5A651 EPROM style Raw Checksum 0 07 5 651 over address range 0x00000000 0x0007FFFF 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
170. o FDT See Chapter 5 for further details 7 5 8 Unique Code Programming Allows setup and control of the Unique Code Programming feature within FDT See Chapter 16 for further details 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 R20UT0508EJ1200 Rev 12 00 RENESAS Page 108 of 214 Feb 13 2013 Chapter 7 Menus 7 6 6 file name This option becomes active when a file name is selected and checked 7 7 Device Menu 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 co
171. of Renesas Electronics products who distributes disposes of or otherwise places the product with a third party to notify such third party in advance of the contents and conditions set forth in this document Renesas Electronics assumes no responsibility for any losses incurred by you or third parties as a result of unauthorized use of Renesas Electronics products This document may not be reproduced or duplicated in any form in whole or in part without prior written consent of Renesas Electronics Please contact a Renesas Electronics sales office if you have any questions regarding the information contained in this document or Renesas Electronics products or if you have any other inquiries Note 1 Renesas Electronics as used in this document means Renesas Electronics Corporation and also includes its majority owned subsidiaries Note 2 Renesas Electronics product s means any product developed or manufactured by or for Renesas Electronics 2012 4 Table of Contents Il PIBDIOB S H1 SNDDIOUIBDODS 17 Document Conventions xxi Chapter 1 IDEEN AIL 1 Chapter 2 System Over view 3 2 17 JUser Interfaee 4 2 1 1 Menu
172. ol code H 45 and ID code H 010203 H 04050607 High 8 Bytes FFFFFFFFFFFFFFFF Low 8 Bytes 4501020304050607 3 5 12 Generic Boot Device Settings Please Refer to Section 3 4 4 3 5 13 Generic Boot Connection Type Please Refer to Section 3 4 5 3 5 14 Generic Boot Programming Options Please Refer to Section 3 4 6 3 5 15 Generic Boot Reset Pin Settings Please Refer to Section 3 4 8 3 5 16 Generic Boot Reinterrogate on connect option Reinterrogate on Connect on 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 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 means that one Generic Boot project will work with any Generic Boot Device R20UT0508EJ1200 Rev 12 00 RENESAS Page 58 of 214 Feb 13 2013 Chapter 3 Using 3 5 17 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 however this facility is not usable under the Windows Vista or Windows 7 operating system R20UT0508EJ1200 Rev 12
173. ol is needed over who has access to files or workspaces then these should now be located in the protected or shared areas provided by default in the O S R20UT0508EJ1200 Rev 12 00 RENESAS Page 201 of 214 Feb 13 2013 Chapter 18 Windows Vista and Windows 7 R20UT0508EJ1200 Rev 12 00 RENESAS Page 202 of 214 Feb 13 2013 Chapter 19 Intelligent Flash Security IFS Chapter 19 Intelligent Flash Security IFS 19 1 Outline Some generic boot devices include the intelligent flash security IFS facility for protecting the flash ROM from programming or erasure The FDT provides the Set ID Code option for writing and erasing ID codes key codes This is controllable while the FDT is in normal operation or not connected to the device When the settings for this option are altered however the new settings only become active when the FDT is disconnected from the device This option is available as a toolbar button and a menu item these are not effective for devices that do not have the IFS facility FHEP EE O Figure 19 1 Toolbar Button Connect to Device Otrl Alt C y Disconnect eo Erase FLASH Blocks Ctrl Alt E Blank Check Ctri Alt B Upload Image Otrl AlteU J Download Active File GtrtAlt P FLASH Checksum Ctrl Alt S GO Go From Address Gtrlt gt Run R 6 Block Locking Cancel Operation Gtrl Break Configure Flash Project Alt Shift R Figure 19 2 Menu Option
174. oolkit will display verbose messages whenever it is Drive mot communicating with the Target device This mode is useful for Data not Interface hardware development and development Algor Would you like to perform readback venfication after programming Readback Verification c Na oe Figure 3 7 Programming Options R20UT0508EJ1200 Rev 12 00 RENESAS Page 33 of 214 Feb 13 2013 Chapter 3 Using 3 4 7 E8Direct E8aDirect E1Direct E20Direct Pin Settings Only if the E8Direct E8aDirect E1 Direct or E20Direct 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 High sets whether output pins are driven High checked or Low Unchecked Notes Setting the mode pins 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 Pin Settings X Please select the pin settings BOOT Mode using Clock Mode NONE 71 Operating Mode WARNIN
175. ose Device and Kernel not Generic Boot 2 26 3 4 3 Communications reete rebel Se RUE deed dass ea rope ebrius 28 3 4 4 Device Setting Sieis ser 30 3 4 5 Connection PEE cip EEEE EEEE EEEE 32 3 4 6 Programming 33 3 4 7 E8Direct E8aDirect E1 Direct E20Direct Pin Settings 2 22421 34 3 4 8 Reset Pin 38 3 5 Configuring a Project for a Generic Boot sse 42 3 5 1 New Project WOrkspace eire tenete tetto 42 3 5 2 Generic Boot Choose Device and 43 3 5 3 Generic Boot Communications 46 3 5 4 Generic Boot E8Direct Pin Settings E8Direct connection only 47 3 509 Generic Boot E8aDirect Pin Settings E8aDirect connection only 49 3 5 6 Generic Boot E1Direct Pin Settings E1Direct connection only 51 3 5 7 Generic Boot E20Direct Pin Settings E20Direct connection only 52 3 5 8 Generic Boot Confirmation 54 3 5 9 Generic Boot Select Device 55 3 5 10 Generic Boot Select Clock Mode sese 56 3 5 11 Generic Boot Setup Complete 57 3 5 12 Generic Boot
176. ot Area R20UT0508EJ1200 Rev 12 00 RENESAS Page 149 of 214 Feb 13 2013 Chapter 9 Simple Interface Mode 9 2 4 Compare File gt Device Compare Device Compare File gt Device File Data Only radio buttons These radio buttons are mutually exclusive and only usable in the comparison mode Compare File gt Device Compare 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 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 9 2 5 Program Flash Erase Compare Clicking on Program Flash allows FDT to download the specified file or image to the FLASH memory If in Batch Erase mode this button will switch to Erase and will perform an entire device erase In the comparison mode the label on this button will be replaced by Compar
177. pter 17 ROM Code Protection 17 2 1 Toolbar In full FDT mode the Protection toolbar will be enabled This shows the currently chosen option which can be changed by simply clicking on an adjoining icon asta d Figure 17 11 Prompt Figure 17 12 None Note clicking on the icons will not immediately protect the device This is still merely the current disconnect setting R20UT0508EJ1200 Rev 12 00 RENESAS Page 198 of 214 Feb 13 2013 Chapter 17 ROM Code Protection 17 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 Industrial Controller xj Device Protection Message Level High Readback Verification No Reset on Disconnect No Connection Reset Reinterrogate on Connect security Protection File Over Warning Erasure of User Boot Area No Function Map Write Read Erase Blank Check Data Buffer Unknown Bytes Available Unknown A Kernel Communications Device Programmer Figure 17 13 Security Protect property Double clicking on the Security Protection field will bring up a new dialog allowing the entry to be changed Protection Type 4 Protect on Disconnect o 8000 Full 71 Prompt on Disconnect Do Nothing Figure 17 14 Security Protect dialog change R20U
178. r detect if target is powered 10 GND Connected to GND on E8 Output F 11 Target Rxd Output to Rxd of Target Rxd Output to Rxd of Target Target device from 0 of device from Txd of 2215RUF on E8a 2215UF on E8 12 GND Connected to GND on E8 GND Connected to GND on E8 13 RESET RESET 14 UCONNECT Connect to GND on UCONNECT Connect to GND on Target Target board board R20UT0508EJ1200 Rev 12 00 RENESAS Page 174 of 214 Feb 13 2013 Chapter 13 Interface Boards El E20 Pin No Pin Name Pin Name 14 Pins of the Conversion Pin Name 38 Pins Adapter 1 104 104 iol 2 GND GND io2 3 io5 io5 io0 4 io0 io0 5 SEND SEND UCONNECT connected to GND on the target board 6 iol iol 7 103 103 8 UVCC can supply 3 3 or 5 UVCC io3 V or detect if target is powered 9 UVCC2 can supply 3 3 or 5 UVCC2 RESET V or detect if target is powered 10 io2 io2 B 11 RECEIVE RECEIVE SEND 12 GND GND 13 RESET RESET 14 UCONNECT connected to GND UCONNECT connected to GND UVCC on the target board on the target board 15 104 16 17 UVCC2 18 2 19 RECEIVE 20 21 105 22 23 24 25 R20UT0508EJ1200 Rev 12 00 Feb 13 2013 2tENESAS Page 175 of 214 Chapter 13 Interface Boards
179. rally 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 and 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 R20UT0508EJ1200 Rev 12 00 RENESAS Page 16 of 214 Feb 13 2013 Chapter 3 Using Note 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
180. red to place the device into Boot Mode Click OK to continue R20UT0508EJ1200 Rev 12 00 RENESAS Page 51 of 214 Feb 13 2013 Chapter 3 Using Pin Settings Please set the pin values for connection io5 04 103 io2 01 Pin Outputs I E 0x00 m WARNING Incorrect settings could damage your hardware Cancel Figure 3 28 ElDirect Generic Device Pin Settings Note Setting the mode pins using the E1Direct 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 E1Direct unit is to be used to set up the connection Select USB Device 1 USB device located Figure 3 29 Select USB Device 3 5 7 Generic Boot E20Direct Pin Settings E20Direct connection only Selecting E20Direct opens the mode pin settings dialog box Make the settings that are required to place the device into Boot Mode Click on OK to continue R20UT0508EJ1200 Rev 12 00 RENESAS Page 52 of 214 Feb 13 2013 Chapter 3 Using Pin Settings x Please set the pin values for connection io5 04 103 io2 01 100 Pin Outputs 7 I EN 0x00 WARNING Incorrect settings could damage your hardware Cancel Figure
181. rently active Workspace 7 1 5 Close Workspace Closes the currently active Workspace 7 1 6 Open a Data File Launches the Open a Data File 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 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 Recent Workspaces Show a list of recent workspaces opened in FDT Select one to open 7 1 10 Recent Data Files Show a list of recent files opened in the Hex Editor Select one to open 7 4 1 Exit Closes and exits the FDT application R20UT0508EJ1200 Rev 12 00 RENESAS Page 101 of 214 Feb 13 2013 Chapter 7 Menus 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
182. requency lt Back Cancel Figure 3 5 Device Settings R20UT0508EJ1200 Rev 12 00 Feb 13 2013 RENESAS Page 30 of 214 Chapter 3 Using Supplementary 1 Clock Setting Select the clock source to be supplied to the CPU a When the device in use does not support switching of clock sources Clock oscillator or clock resonator External Clock or Resonator b When the device in use supports switching of clock sources Clock oscillator External Clock Clock resonator External Resonator On chip oscillator Internal Clock 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 R20UT0508EJ1200 Rev 12 00 RENESAS Page 31 of 214 Feb 13 2013 Chapter 3 Using
183. rmed 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 R20UT0508EJ1200 Rev 12 00 RENESAS Page 11 of 214 Feb 13 2013 Chapter 2 System Overview 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 Upload MOT Add Files INS Remove Files m Allow Docking Hide Properties Display Block Usage Exclude LiploadO MOT User Boot Flash Download File to User Area File Checksum Compare File Device Checksum Compare File 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 FDT has a standard Windows help system This provides on line information for using the system Help can be invoked by pressing the F1 key or via the Help menu R20UT0508EJ1200 Rev 12 00 RENESAS Page 12 of 214 Feb 13 2013 Chapter 2 System Overview 2 3 Hot Keys There are various hot keys for frequently used operations These are as follows by cate
184. rogramming The setting is remembered between sessions 10 1 7 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 R20UT0508EJ1200 Rev 12 00 RENESAS Page 153 of 214 Feb 13 2013 Chapter 10 Basic Simple Interface Mode 10 1 8 File Over Warning The FDT opens a dialog box to confirm whether downloading should continue or be aborted when the file being downloaded is larger than the size of the ROM 10 1 9 Erasure of User Boot Area Select the checkbox to enable erasure of the User Boot Area Otherwise deselect the checkbox This option is only available for devices that support erasure of the User Boot Area 10 1 10 Security Protection This option controls whether FDT should security protect some QzROM devices or parallel mode protect some R32C 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 QzROM protected device cannot be reconnected to 10 1 11 Set ID Code This option allows programming and erasing of ID codes key codes for generic boot devices with intelligent flash security IFS For details refer to section 19 Intelligent Flash Security IFS 10 1 12 Bloc
185. s 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 If 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 R20UT0508EJ1200 Rev 12 00 RENESAS Page 97 of 214 Feb 13 2013 Chapter 6 Configuring the User Interface 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 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 6 6 Customising the Toolbar The selection and arrangement of buttons displayed on the Toolbar can be customised to suit a users requirements To change the display invoke the
186. s E2 data flash memory select either of the following type names according to whether or not the data to be written to the device includes ECC data a R32C 100 series When ECC data is included RSF64xxx_ECC ECC data is not included RSF64xxx b 16 50 series When ECC data is included R5F35Mxx ECC xLine When ECC data is not included RSF35Mxx_xLine R20UT0508EJ1200 Rev 12 00 RENESAS Page 27 of 214 Feb 13 2013 3 4 3 Communications Port Chapter 3 Using Select the port and interface if available from the drop down list then click the Next button 1 Output D 2 GND 3 Output C 4 Output A 5 Txd 6 Output E 7 Output B 8 UYCC 9 UvCC2 10 Output F 11 Rxd 12 GND 13 RESET 14 UCONNECT Use this page to select your desired communications port interface All settings may be changed after the project is created Select port Select Interface type to connect to the target device with Normally this will be Direct Connection or simply left blank Select Interface 7 Set Reset pin as low when disconnecting Figure 3 4 Communications Port R20UT0508EJ1200 Rev 12 00 Feb 13 2013 RENESAS Page 28 of 214 Chapter 3 Using Debug Interface with E8a E8 Debug Interface with E8 E Debug Interface with E1 E20 Debug Interface with E20 E8aDirect UART with E8a E8Direct UART with E8 E1Direct UART with E1 include the FINE int
187. s E8 Rel Img mot Mismatched Bootstub Level 0 version number found current E8 version 0 00 00 018 FDT holds version 2 00 00 000 FDT requires version 2 00 XX XXX R20UT0508EJ1200 Rev 12 00 RENESAS Page 164 of 214 Feb 13 2013 Chapter 12 Updating the Adapter Software FLASH Development Toolkit Figure 12 1 Update Confirmation Message 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 Connection continues R20UTO508EJ1200 Rev 12 00 RENESAS Page 165 of 214 Feb 13 2013 Chapter 12 Updating the Adapter Software Level 1 only update E8 target power has been set to ON at 5 0V Connecting to device R5F21174 on E8 Configuration 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
188. s product This product is not designed to be radiation resistant No one is permitted to reproduce or duplicate in any form the whole or part of this document without written approval from Renesas Contact Renesas sales office for any questions regarding this document or Renesas semiconductor products R20UT0508EJ1200 Rev 12 00 RENESAS Page xv of xxii Feb 13 2013 i Cautions R20UT0508EJ1200 Rev 12 00 RENESAS Page xvi of xxii Feb 13 2013 ii Preface li 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
189. se one per line Each command may also have a series of arguments associated with it on the same line By default these script files 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 47 order operator Optional extra arguments follow these and can be placed in any Normally a script file should end with the delete script command This causes 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 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 Workspace Path Required The path to the workspace Example Workspace C Workspaces 3069serial 3069serial AWS Notes 1 FDT will use the active project from this workspace there is currently no facility for changing which is the active project from the script
190. should be tab s space s or comma delimited R20UT0508EJ1200 Rev 12 00 RENESAS Page 190 of 214 Feb 13 2013 16 2 2 Code Section Chapter 16 Unique Code Programming The list of unique codes is denoted using the heading pair of Index and Data The following pairs are the index of the code and the code itself e g index 000001 000002 000003 ACD24000001 ABD24000002 The code section is assumed to be everything after the index and data pair with each new code on a separate line The index does not have to start at 0 but is assumed to be decimal and increment contiguously The separation between the index value and the data value should be tab s space s or comma 16 2 3 Example File config info format HEX area User Flash address 0 000 size 6 code li index data 000001 ABC 000002 ABC 000003 ABC 000004 ABC 000005 ABC st D24 D24 D24 D24 D24 000001 000002 000003 000004 000005 comment line for information only specify formatting for the data section of the file data will be written into the User Flash area data will be written at address OXF000 in User Flash data will be read in as 6 byte blocks from the data section below empty line ignored comment line for information only header pair for data denotes start of list first index and data 6 bytes as specified by size above second index on new line
191. t lt USB ID VOLTAGE lt DISCONNECT VOLTAGE gt USB E8aDirect lt USB ID gt Notes CONNECT VOLTAGE gt When the device supports lt DISCONNECT VOLTAGE gt 1 8 V programming and 1 8 USB l E1Directlc USB ID V is being supplied from the CONNECT VOLTAGE user power supply be sure to DISCONNECT VOLTAGE specify User1 8 as the CONNECT VOLTAGE USB l E20Direct I USB ID otherwise damage to the 0 051 target device may occur 0 0 R20UT0508EJ1200 Rev 12 00 RENESAS Page 78 of 214 Feb 13 2013 Chapter 4 Wait For Script 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 if the project does not match this setting and to suppress the Select Device connection dialog for USB devices by allowing it s unique identifier e g Serial number to be preselected The unique identifier for the USB style device will vary depending on device type For example an E8 will require it s instance number but an E8Direct will require a serial number this can be confirmed in the Select Device connection dialog box An E8a an an E20 an E8aDirect an E1Direct or an E20Direct also require a serial number this can also be confirmed in the Select Device connection dialog box See also the ID command for specifying the ID code of the device at con
192. t Toolkit dialog box through which additional information regarding FDT can be accessed version e Copyright information R20UT0508EJ1200 Rev 12 00 RENESAS Page 111 of 214 Feb 13 2013 Chapter 8 Windows 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 Output 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 Bg E Industrial Controller 2 5 Industrial Controller Insert Project Ey Device Image 2 Industrial Controller fpr Allow Docking Image Files Hide 1 39 S Record Files 2 2282Test mot uGenl mot User Mode Reprogramming Device Image 8 User Reprogramming fpr 3 I
193. t the Device Protection Option of Automatic Interactive or None and the message level option of Advanced or Standard Flash Properties Industrial Controller x Device Protection Message Level Readback Verification Reset on Disconnect Connection Reset Reinterrogate on Connect Security Protection File Over Warning Erasure of User Boot Area Function Map Write Read Erase Blank Check Data Buffer Bytes Available ALDI Kernel Communications Device A Programmer Automatic High No No Prompt Yes No Unknown Unknown Figure 8 11 Programmer Properties 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 programming If device protection is disabled the user is responsible for erasing the device prior to R20UT0508EJ1200 Rev 12 00 Feb 13 2013 34 N ESAS Page 128 of 2
194. tes as below Query Generic Device 1 Booting Device Sending Supported Devices Inquiry Selecting Device HD64F7058 Sending Clock Mode Inquiry v Selecting Clock Mode 0 Sending Other Inquiries DK Cancel Figure 3 35 Generic Boot setup complete Dependent on device support FDT may also require ID code confirmation at this point If this is necessary then a dialog will be shown to allow the ID code to be input in Hex bytes x ID Code High 8 Bytes 0122456789abCDEF Low 8 Bytes 1234 000000 Gancel Figure 3 36 ID Check dialog Clicking OK will confirm the ID code and on success the Project Wizard will then continue through the remaining pages Clicking Cancel will abort the connection process R20UT0508EJ1200 Rev 12 00 RENESAS Page 57 of 214 Feb 13 2013 Chapter 3 Using Notes 1 For devices with an 8 byte ID code enter OxFF in each byte of High 8 Bytes or leave it blank 2 If the value entered has less than 8 bytes the FDT will automatically pad the value with OxFF from the left 3 Ifthe device has a control code enter this value as the first of the valid bytes Example 1 When the number of valid bytes 16 control code H 45 and ID code H 010203 H 04050607 H 08090A0B H OCODOEOF High 8 Bytes 4501020304050607 Low 8 Bytes 08090 0 0 Example 2 When the number of valid bytes 8 contr
195. third index fourth index final index for this set R20UT0508EJ1200 Rev 12 00 Feb 13 2013 RENESAS Page 191 of 214 Chapter 16 Unique Code Programming R20UT0508EJ1200 Rev 12 00 RENESAS Page 192 of 214 Feb 13 2013 Chapter 17 ROM Code Protection Chapter 17 ROM Code Protection 17 4 QzROM Devices QzROM 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 Protection Type Protect on Disconnect 0 8000 OxFFFF Full Do Nothing Figure 17 1 Automatic Protect choice R20UT0508EJ1200 Rev 12 00 RENESAS Page 193 of 214 Feb 13 2013 Chapter 17 ROM Code Protection 2 Prompt FDT will ask what to do during the disconnect i e w
196. trative mode However for daily use FDT now supports being run by the Limited User type 18 1 Installation Installation requires an Administrator level user to complete properly This is primarily because of the installation of USB drivers and of the requirement to write to the protected Program Files area assuming the default path is chosen As well as installing the main application support files will also automatically be installed to the following default locations XP C Documents and Settings All Users Application Data Renesas FDT4 09 Vista 7 C ProgramData Renesas FDT4 09 NB depending on system setup the user may also be warned that the drivers installed by FDT are unsigned 18 2 FDT usage On execution FDT will also create support files in the users own home directory XP C Documents and Settings lt user gt Local Settings Application Data Renesas FDT4 09 Vista 7 C Users lt user gt A ppData Local Renesas FDT4 09 The key benefit to this user based approach is that many more FDT settings will now be specific to the currently logged on user e g recently used workspaces and files Additionally the default Workspaces directory will now no longer be found in the protected Program Files area 18 2 1 Access Rights The Access Rights feature is no longer available when running under Windows Vista and Windows 7 The feature was removed in preference to the User Access Control built into O S If contr
197. uie ee PURO ERE E ESE Aundrea 133 8 7 Output WAN OW 133 8 7 1 EU RETURN EUER 133 8 7 2 ege E M 133 8 7 3 SAVE M MM 134 8 7 4 Allow e rentre live e ten Exo 134 8 7 5 AS 134 8 6 S o dini dn E 135 8 8 1 Ct Zier etit EDU LI 137 8 8 2 COPY C E 137 8 8 3 lr 137 8 8 4 Hn HO 137 8 8 5 BRO P 137 8 8 6 Display Unit oiii eh te tert ops elites Ai eens E ERREUR 137 8 8 7 137 8 8 8 Align toS Bytes ccs del en Ai eee ERES I ieee 138 8 8 9 Togele ASCH 138 8 8 10 Create NT P 138 8 8 11 M 138 8 8 12 138 8 8 13 Replace D 138 8 8 14 lun M 139 8 8 15 Add to Active Project e tere Dieci cima epe oe Puer dana spe 139 8 8 16 Data Entry NOU csi 139 8 8 17 Goto Address RE needs 139 8 9 Customise TOO Dats 140 8 9 1 SHOW Tooltps
198. v 8 Industrial Controller fpr 000000292 Figure 2 3 Checked Menu Items If a menu item has the symbol gt next to it then a cascading or hierarchical menu is available Clicking on the menu item will reveal the cascading menu R20UT0508EJ1200 Rev 12 00 RENESAS Page 5 of 214 Feb 13 2013 Chapter 2 System Overview Help Topics Technical Support Create Bug Report About FDT Check website 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 the user wants to select e g press ALT F 5 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 lwziweersereswejizla abe Se amp c 5 Figure 2 5 FDT Toolbars gis The buttons on each toolbar are arranged in associated groups 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 tool
199. ve data for one flash area at a time which will leave the other tabs empty although they can still be edited manually Across the top of the window the current filename will be displayed or upload name along with the current cursor location or selected area and the endian of the view FDT will default to Big Endian Note that swapping the endian view of a file will not affect the data that is saved to that file Additionally should a project device support the concept of ID codes check the device hardware manual for more information then FDT will highlight the byte locations affected 000 FF FF FF FF FF FF FF FF FF FF FF FF FF FF OOOOFFDO FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 0000 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 0000FFF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF Data Flash Figure 8 19 Example ID code highlighting 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 abl
200. vice 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 button Specify whether or not a directory is to be created and a location New Project Workspace x Projects Workspace Name findustia Controller Project Name Industrial Cortrofer Directory c V orkspacesNndustrial Controller CPU family Tool chain None Project Generator L ox ces Figure 3 16 New Workspace R20UT0508EJ1200 Rev 12 00 RENESAS Page 42 of 214 Feb 13 2013 Chapter 3 Using 3 5 2 Generic Boot Choose Device and Kernel 1 When using a device that does not support FINE communications Select Generic Boot Device or a device supported by Generic Boot and click Next Choose Device And Kernel x The FLASH Development Toolkit supports a number of Renesas FLASH devices Select the device you wish to
201. xcluding arguments into the Command field 5 Enter any arguments that you would like to pass to the command into the Arguments field R20UT0508EJ1200 Rev 12 00 RENESAS Page 142 of 214 Feb 13 2013 Chapter 8 Windows 6 Enter an initial directory in which you would like the tool to run into the Initial directory field 7 Click OK to add the menu option to the Tools menu peperere Bees Dr Figure 8 22 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 R20UTO508EJ1200 Rev 12 00 RENESAS Page 143 of 214 Feb 13 2013 Chapter 8 Windows 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 eg PERS ema twWDRhewieee Browse Arguments gt Initial directory gt Browse Figure 8 23 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
Download Pdf Manuals
Related Search
Related Contents
Based on file VP103BOOK.DOC. as template (Normal.dot) MS-850 Raster Scanner User`s Manual クサナイト粒剤 - 石原バイオサイエンス 3B Manual 87335-11 - National Optronics resources center Les dispositifs pour l`emploi des jeunes Notices techniques Emperor Manual リチウムイオン蓄電池の事故発生状況 DIGITAL 5.5 KG - IFB Industries Copyright © All rights reserved.
Failed to retrieve file