Home

PG-FP5 V2.11 Flash Memory Programmer User`s Manual

image

Contents

1. Command 78K V850 RL78 RX R8C SuperH lt 4 gt Set Security command options area Display Not display lt 5 gt Security flag settings area Display Not display lt 6 gt Block protection settings area Display Display lt 7 gt Reset vector setting area Display Not display lt 8 gt OCD security ID setting area Display Not display lt 9 gt Option bytes setting area Display Not display lt 10 gt Lock bit setting area Not display Display lt 11 gt I O signal setting area Not display Display lt 12 gt ID code area Not display Display Note Some items will be grayed out or not displayed in accord with the type of MCU and other settings lt 1 gt Supply voltage area In this area specify one Vpp or two Vpop and Vpnz voltage levels for target device programming in accordance with the target device type Basically Vop Vpn2 voltages for target device programming should be supplied from the target system Supplying from the FP5 is possible but the current flow is not large enough to operate the whole target system Refer to ELECTRICAL SPECIFICATIONS OF TARGET INTERFACE Therefore supply voltage via the FP5 only when a dedicated writing adaptor such as an FA adaptor is used Supply voltage Vdd v 05 00 Vdd2 v 00 00 On Target r r FLMDO fYdd CLK Ydd RESET Ydd Serial Out Ydd Serialln Ydd Figure 4 66 Supply voltage Area Vdd V box The default Vo
2. VCCI A About FCC Note This equipment has been tested and found to comply with the limits for a Class A digital device pursuant to part 15 of the FCC Rules These limits are designed to provide reasonable protection against harmful interference when the equipment is operated in a commercial environment This equipment generates uses and can radiate radio frequency energy and if not installed and used in accordance with the instruction manual may cause harmful interference to radio communications Operation of this equipment in a residential area is likely to cause harmful interference in which case the user will be required to correct the interference at his own expense Modifications not expressly approved by the manufacturer could void the user s authority to operated the equipment under FCC rules Notes When using this product please use AC adapter QB COMMON PW which comply with the standard of VCCI and FCC R20UT0008EJ0600 Rev 6 00 RENESAS Page 24 of 224 Sep 30 2013 PG FP5 V2 11 HARDWARE CONFIGURATION 2 HARDWARE CONFIGURATION This chapter explains the hardware configuration 2 1 System Configuration The FP5 system configuration is as shown in the diagram below Serial cable USB cable AC adaptor Host machine External control devices Target cable GND cable O Target system Figure 2 1 FP5 System Configuration The FP5 is connected to the host machine via a serial ca
3. Sep 30 2013 PG FP5 V2 11 ELECTRICAL SPECIFICATIONS OF REMOTE INTERFACE APPENDIX D ELECTRICAL SPECIFICATIONS OF REMOTE INTERFACE This chapter explains the electrical specifications of remote interface D 1 Absolute Maximum Ratings Ta 0 to 40 C cmos liars enema omits eee Output supply voltage DEN hags as en fOuputcurent overeaey BCA r a E fn o Note Product quality may suffer if the absolute maximum rating is exceeded even momentarily for any parameter That is the absolute maximum ratings are rated values at which the product is on the verge of suffering physical damage and therefore the product must be used under conditions that ensure that the absolute maximum ratings are not exceeded R20UT0008EJ0600 Rev 6 00 RENESAS Page 213 of 224 Sep 30 2013 PG FP5 V2 11 ELECTRICAL SPECIFICATIONS OF REMOTE INTERFACE D 2 DC Characteristics Ta 0 to 40 C C 0pF Unloaded Condition Output or T ENTER Input e low 1 1 NEXT VRF START CLEAR Le 7 Baal Sep 30 2013 PG FP5 V2 11 ELECTRICAL SPECIFICATIONS OF REMOTE INTERFACE D 3 AC Characteristics Ta 0 to 40 C C 0pF Unloaded Condition D 3 1 Standard mode aa Rise time lo 8mA Fall time lo 8mA Low level width of input signal tepocn Time from switching on the FP5 POWER button until the rise of the CONN signal tecnpo Time from switching off the FP5 POWER button until the fall of the CONN signal FP5_POW
4. R20UTOOO8EJO0600 Rev 6 00 RENESAS Page 221 of 224 Sep 30 2013 PG FP5 V2 11 User s Manual Publication Date Rev 1 00 Nov 16 2007 Rev 6 00 Sep 30 2013 Published by Renesas Electronics Corporation rCENESAS 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 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
5. Figure 4 80 IO signal setting area lt 12 gt ID code area For the RX family R8C family and SuperH family ID code authentication is performed before each command is executed Enter an ID code in the ID code area For the RX family and SuperH family the FP5 automatically repeats it three times the flash memory in the microcontroller is erased depending on the setting For the R8C family it is performed only once For details on ID code refer to the user s manual of the target device ID Code FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF 10 signal setting Low ira ee0e5eee PROGRAMMING GUI USAGE Figure 4 81 ID code area 4 3 4 Help menu Clicking the Help menu displays the following pull down menu File Programmer Device Help Figure 4 82 Help Menu 1 Help Topics command The Help Topics command opens the FP5 help file 2 About FP5 command This command opens the following dialog box and shows the versions of the programming GUI Clicking the OK button closes this dialog box About FP5 Help Topics About FP5 FPS Version 2 07 Copyright C 2005 2011 Renesas Electronics Corporation Figure 4 83 About FP5 Dialog Box R20UTO008EJ0600 Rev 6 00 Sep 30 2013 2tENESAS Page 97 of 224 PG FP5 V2 11 PROGRAMMING GUI USAGE 4 4 Toolbar The commands frequently used with the programming GUI are displayed as buttons on the tool
6. Input Bank mode BANKO Indicates the lowest 1 bit of the 3 bit programming area number Low level Input Standard mode Bank mode ENTER Same function as the ENTER button Indicates the middle 1 bit of the 3 bit programming area number Low level Low level Standard mode Same as the function of the NEXT button Low level Bank mode Indicates the highest 1 bit of the 3 bit programming area number Low level 11 to 15 VRF Inputs the independent verify signal Inputs the START Auto procedure E P signal Low level Low level Clears disables the PASS and ERROR signals Low level Grounding pin R20UT0008EJ0600 Rev 6 00 Sep 30 2013 7tENESAS Page 122 of 224 PG FP5 V2 11 USAGE THE REMOTE CONNECTOR Table 7 2 Programming Area and Banks Programming area 0 Programming area 1 Programming area 2 Programming area 3 Programming area 4 Programming area 5 Programming area 6 Programming area 7 Note 1 0 Lowlevel 1 High level 2 When set in programming area 0 set in programming area 0 set BANKO BANK1 and BANK2 to the low level When set in programming area 3 set BANKO and BANK1 to the high level and BANK2 to the low level Next the pin assignment of the remote connector is shown O00000 0 0 o00000C Figure 7 1 Remote Connector D SUB 15 pin connector
7. R20UTOOO8EJ0600 Rev 6 00 7tENESAS Page 29 of 224 Sep 30 2013 PG FP5 V2 11 SOFTWARE INSTALLATION 3 SOFTWARE INSTALLATION This chapter explains the software installation 3 1 Obtaining Software Download the programming GUI USB driver and FP5 parameter file PRS file from the following Renesas Electronics website URLs e Except for Europe area http www renesas com pg_fp5 e For Europe area http www renesas eu update gt Section PG FP5 EE Note Use of the latest version of software is recommended to assure the FP5 operation 3 2 Installation This section explains the installation procedure for the programming GUI USB driver and parameter file PRS file Table 3 1 Installation Installation Order Method Programming Run the downloaded executable file PG FP5_Package_Vxxx exe and perform GUI USB driver installation following the directions on the installer screen After installation the USB driver detects the FP5 by plug and play and it is automatically added PR8 file Decompress the downloaded file to any folder A pr5 file is decompressed into any folder so copy it to the FP5_PRJ folder where the programming GUI is installed The folder configuration after programming GUI installation is as follows Program Files Electronics for the 64 bit version of Windows Renesas Electronics Programming Tools PG FP5 V2 07 4 Folder where programming GUI is stored FP5 exe oi Doc
8. 3 Expiration of the repair period When a period of one year has elapsed after production of a given model ceased repairing products of that model may become impossible 4 Carriage fees for sending your product to be repaired Carriage fees for sending your product to us for repair are at your own expense 13 5 How to Make Request for Repair If your product is found faulty fill in a Repair Request Sheet downloadable from the following URL And email the sheet and send the product to your local distributor http www renesas com repair CAUTION Note on Transporting the Product When sending your product for repair use the packing box and cushioning material supplied with the product when it was delivered to you and specify caution in handling handling as precision equipment If packing of your product is not complete it may be damaged during transportation When you pack your product in a bag make sure to use the conductive plastic bag supplied with the product usually a blue bag If you use a different bag it may lead to further trouble with your product due to static electricity R20UT0008EJ0600 Rev 6 00 RENESAS Page 192 of 224 Sep 30 2013 PG FP5 V2 11 MESSAGES APPENDIX A MESSAGES This chapter explains the messages A 1 Message Format Messages will be output in the error warning dialog boxes information dialog boxes or action log window during programming GUI operation Error messages will be
9. E 1517 Shortage of memory Invalid file name Confirm that sufficient memory capacity is available in Windows The file name is invalid HEX format error Too large address An illegal program file format was detected The address is too large The maximum address that can be used by the HEX Editor is 420000h Can not run lt command name gt Running of the command name command has failed Illegal address The range of the data storage address is invalid The start address may be larger than the end address lt file name gt could not be opened Abort Save File lt file name gt cannot be opened File saving was aborted Data error Abort DATA Check A data error has been found in the program file Data checking was aborted Temporary file could not be read Abort Save File Opening of the temporary file has failed The file may be corrupted R20UTOOO8EJO0600 Rev 6 00 Sep 30 2013 7tENESAS Page 195 of 224 PG FP5 V2 11 No Message Error line lt line number gt Data Count error Abort Data Count Check Cannot open temporary file MESSAGES 3 Description A data count error has occurred in line line number The program file format may be incorrect Opening of the temporary file has failed The file may be corrupted File Save error Abort Save File lt line number gt Check sum error Continue Saving the file has failed A ch
10. Parameter and Setting file Name Version Name Download file Figure 5 5 Main Window 6 Setting of programming environment lt l gt Execute the Setup command in the Device menu in the main window R20UT0008EJ0600 Rev 6 00 RENESAS Page 105 of 224 Sep 30 2013 PG FP5 V2 11 EXAMPLE OF OPERATION USING PROGRAMMING GUI FP5 Toolbar JG File Programmer Device Help fi Blank check Erase Program Autoprocedure EP Figure 5 6 Setup Command lt 2 gt The Device Setup dialog box Target tab is opened Setu x Target Standard Advanced Programming Area Setting Division pattern Unknown 8 division MB DIV p F Target Settings Parameter file and Setting file Unknown D _ __New E Save As r Object HEX file Dx FP5_PRJ sample hex Tue Mar 08 07 57 06 2011 Unknown JV Erase memory before download r information Unknown OK Cancel Figure 5 7 Device Setup Dialog Box Target Tab lt 3 gt Set the Programming Area Setting area In this example 4 divided Area 0 is selected Programming Area Setting Division pattern Vj 8 division 2 MB DIV 0 Figure 5 8 Setting of Programming Area Setting Area R20UT0008EJ0600 Rev 6 00 RENESAS Page 106 of 224 Sep 30 2013 PG FP5 V2 11 EXAMPLE OF OPERATION USING PROGRAMMING GUI lt 4 gt Click the button to create a
11. gt kkkkk CAUTION kkkkk Remove any plugs from Target and Remote Connector before starting Any hardware attached to those connectors may be damaged by this test kkkkk CAUTION kkkkk Target and Remote connector unplugged If yes press s to start the test s FPGA Test PASS Power Supply Test PASS Target and Remote Interface Test FAIL Selftest FAILED Figure 4 19 Example of Result When Self Testing Program Has Been Completed Abnormally lt Action Log Window gt Self test FP5 Self test FAILED FPGA Test PASS Power Supply Test PASS Target and Remote Interface Test FAIL Figure 4 20 Example of Result When Self Testing Program Has Been Completed Abnormally lt Result Dialog Box gt 7 Update Firmware command The Update Firmware command updates the firmware Refer to 3 4 Updating Programming GUI Firmware and FPGA and download the relevant update file before starting update Executing of this command displays the following dialog box Update Firmware 1 2210 Updating the firmware will take several minutes ATTENTION The process of updating your firmware must NOT be interrupted Without Firmware this FPS GUI will NOT run properly Install new firmware in your programmer Cancel Figure 4 21 Update Firmware Dialog Box To continue the firmware update click the button Cancel button cancels the firmware update Clicking the Clicking the OK button opens
12. 2 unknown data 3 unknown data Checking Progareas No invalid data found R20UTOOO8EJ0600 Rev 6 00 Sep 30 2013 PG FP5 V2 11 USAGE COMMUNICATION COMMANDS 2 Command Screen output Firmware Version Vx xx Board H W Vx FPGA Vx Serial No XXXXXXXXXX Standard mode unsecured Number of Program areas 4 Active Program Area 0 Size of Program Areas Code Data Area 0 0x400000 0x020000 Area 1 0x400000 0x020000 Area 2 0x400000 0x020000 Area 3 0x400000 0x020000 Area Filename Date Time Range CRC 0 sample hex 2006 02 24 21 13 000000 007FFF 61D5F67C 1 unknown data 2 unknown data 3 unknown data Checking Progareas No invalid data found Area Parameter file PR5 CRC ESF CRC O 78F1166 C8005840 D0401B9D 1 invalid 2 invalid 3 invalid AutoCon is off Sound is on AutoPowerOff is disabled Security state is Inactive Authorization procedure is Undefined Manager option byte 0x00 HEX file Upload enabled Device Setup enabled Checksum comparison off Reset option Hi z R20UTOOO8EJ0600 Rev 6 00 7tENESAS Page 135 of 224 Sep 30 2013 PG FP5 V2 11 8 4 4 downprm command Downloads the PRS file Input format downprm Description of the function USAGE COMMUNICATION COMMANDS Downloads the PR5 file After this command is executed the PR5 file must be downloaded to the FP5 in ASCII format using communications software If using HyperTerminal s
13. BUSY Display after normal ending of Returns to the display PASS the download before executing the command Display after error ending of the Returns to the display ERROR lt text gt download before executing the command Address range 0x000000 to 0x007FFF CRC32 0x61D5F67C PASS lod fname sample hex ftime 2006 02 24 21 13 Same operation as lod lod add Same operation as lod R20UT0008EJ0600 Rev 6 00 RENESAS Page 142 of 224 Sep 30 2013 PG FP5 V2 11 USAGE COMMUNICATION COMMANDS 8 4 12 prm command Displays the information concerning the PR5 file and ESF file that were downloaded to the FPS Input format prm Description of the function Displays the information concerning the PRS file and ESF file PR5 file name PR5 checksum ESF file checksum that were downloaded to all the programming areas of the FP5 Example of usage Command Screen output Area Parameter file PR5 CRC ESF CRC 0 78F1166 C8005840 D0401B9D invalid invalid invalid 8 4 13 progarea command Confirms changes and deletes data from valid programming areas Input format progarea clear O N L 2 T S PEES T O ELECO TEZES PELSE 17 Description of the function The valid programming area can be changed by designating a numerical option Also by designating the clear option the data in the valid programming area PR5 file ESF file and program file can be delete
14. Sep 30 2013 PG FP5 V2 11 USAGE COMMUNICATION COMMANDS Table 8 2 List of FP5 Device Commands Command name Description Executes the Blank check command verification Executes the processes from transition to flash memory programming mode to signature Executes the termination of the flash memory programming mode ep or epv Executes the Autoprocedure E P command ers Executes the Erase command Obtains the on chip debug security ID get for the target device Obtains the information of lock bit get for the target device Obtains the information of option byte get for the target device Obtains the information of flash option get for the target device Obtains the information of security get for the target device Executes the Set OCD Security ID command Executes the Set Option bytes command Executes the Program command Executes the Read command Executes the Set Security command Executes the Signature read command Executes the Set Lock bits command Executes the programming GUI Device menu gt Checksum command Executes the Verify command 8 3 Description of Commands Each of the commands is described using the following format Command name Presents an overview of the command Input format Presents the input format for the command Description of the function Describes the functi
15. sof us Note The minimum value MIN and the maximum value MAX are determined depend on parameter file MIN 1 us MAX 999x102xs tSTBVD 0 8 x VDD 0 2 x VDD gt i tPLHMD R20UT0008EJ0600 Rev 6 00 7tENESAS Page 209 of 224 Sep 30 2013 PG FP5 V2 11 ELECTRICAL SPECIFICATIONS OF TARGET INTERFACE 2 Note tree tre 2 FLMDO x 100 us tRP Device firmware FLMDO Count start time tRPE Device firmware FLMDO Count finish time The maximum number of FLMD pulses is 15 For the characteristics of tar tape and FLMDO pulses refer to the parameter specifications in the manual of the target manual R20UTOOO8EJO0600 Rev 6 00 RENESAS Page 210 of 224 Sep 30 2013 PG FP5 V2 11 ELECTRICAL SPECIFICATIONS OF TARGET INTERFACE C 3 1 CLK output characteristics Ta 0 to 40 C C 0pF unloaded condition Pinname Symbol Parameter or Conditions mm ve wax Unit eee a High level width eo fwe o 0 re e CPSC wo rattime O PCC CLK output gt lt gt tPLHCK tPHLCK R20UT0008EJ0600 Rev 6 00 RENESAS Page 211 of 224 Sep 30 2013 PG FP5 V2 11 ELECTRICAL SPECIFICATIONS OF TARGET INTERFACE C 3 2 Serial transfer timing Ta 0 to 40 C C 0pF unloaded condition cree me Perec eae ee ee ee High level width lewis as 0 feos _ Stseuptimegosory dd Cid fesse _ Sthotstine romscx o o jes __ Delaytime fom SOoupt f t a e e E S E SCK output l tPHLSC SI input
16. PASS Checksum operation finished gt Figure 4 41 Action Log Window After Checksum Command Execution lt When using 78K Other than 78K0S Kx1 UPD78F 9334 V850E1 V850ES RL78 family gt Note With the 16 bit arithmetic subtraction mode the lower 4 digits of the result from which a value is subtracted from 00h in 1 byte units are displayed lt When using a 78KOS Kx1 microcontroller or UPD78F9334 gt Method Division original Range Area set in the Operation Mode area on the Standard tab in the Device Setup dialog box gt sum Device Checksum 0x1842 FPS Checksum 0x1842 Checksum compare PASS Checksum operation finished gt Figure 4 42 Action Log Window After Checksum Command Execution When using 78K0S Kx1 microcontroller or UPD78F9334 Note For details on the arithmetic specifications refer to APPENDIX B SUPPLEMENTARY INFORMATION Figure B 4 Division Original Calculation Specifications lt V850E2 gt Method 32 bit CRC Range Area specified in the Operation Mode area on the Standard tab in the Device Setup dialog box gt sum Code flash 0x370A7BE5 Data flash 0xBFD1B03F Total OxF6DC2C24 PASS Checksum operation finished gt Figure 4 43 Action Log Window After Checksum Command Execution V850E2 Note 32 bit CRC displays the 8 digit result of CRC32 function operation For the calculation specifications refer to APPENDIX B SUPPLEMENTARY INFORMATION Figure B 2 32 bit
17. Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE Programmer Device Help Programmer fpga_up no_query nE FP5GUI 2 07 P r oe ing s torage OK Firmware 2 07 Now loading OK ProgArea 0 Starting FPGA progranning Mode Standard mode unsecured FPGA Update succeeded gt Parameter and Setting file Name 78F1166 pr5 IPG FPS Power will be switched OFF now Version 1 00 Name 78F1166 esf Date Wed Dec 07 20 57 31 2011 gt Download file Name sample hex Tue Mar 8 07 57 00 2011 ERROR XI HEX file 00000000 0003FFFF ae amp 1100 N F Communication within hast PC and FlashProgrammer is broken File checksum Target device Name 78F1166 Pott UART Pulse Num 0 Speed 1 000 000 bps Vdd 05 00 V FP5 Freq Internal Osc T arget Multiply 1 00 Mode Chip Range a Figure 4 26 Action Log Window When FPGA Update Is Finished Click the OK button in the error message dialog box and then press the POWER button on the FP5 to turn on power Execution of the Setup host connection command opens the Host Connection dialog box Select the communication mode used and then click the OK button File Programmer Device Help Logging Select Programming area Buzzer Rese Self Test Update Firmware Update FPGA ERS Manager Figure 4 27 Setup host connection Command Sep 30 2013 PG FP5 V2 11 PRO
18. Target Standard Advanced Supply voltage ___________ _ Flash options wdd Y pza Set Security command options ____ Security flag settings vad V1 oi 2 Disable Chip Erase On Target IV Disable Block Erase Vdd monitoring Iv Disable Program Wide voltase mode m V Disable Read FLMDO fvdd Disable Boot block cluster reprogramming OLK fvdd RESET fvdd Block protection settings Serial Out FSW Block end 511 Serialln fvdd Command options FSW Block start JV Blank check before Erase Boot Block end J Verify after Program JV Set Security after Program J Checksum after Program Reset vector setting JV Set Option bytes after Program JV Set OCD Security ID after Program J Run after Disconnect m OCD security ID setting Enable target RESET FFFFFFFFFFFFFFFFFFFFFFFF Option bytes setting oPeTo z FFFFFFFF Show Address Figure 4 46 Get Flash options Command R20UTOOO8EJ0600 Rev 6 00 RENESAS Page 72 of 224 Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE 15 Setup When the Setup is executed the Device Setup dialog box is opened In this dialog box select a program file perform settings in accordance with the user environment for flash memory programming set command option and option data etc Each time the programming GUI is started the programming GUI loads the PRS file ESF file and
19. in the programming GUI Programmer menu to check the transfer rate and make sure they match Sep 30 2013 PG FP5 V2 11 USAGE COMMUNICATION COMMANDS COM1 Properties Port Settings Bits per second Data bits Parity Stop bits F Flow control Hardware Figure 8 4 COM Port Settings When HyperTerminal starts correctly the main window will open If communications are established then a gt will be displayed when the Enter key on the host machine is pressed This completes the preparation for using communications commands Caution Press the Enter key once after FP5 has started Alternatively send a linefeed code once to FP5 by using communication software FP5 HyperTerminal File Edit Yiew Call Transfer Help Dow 3 D8 gf Connected 0 00 07 Auto detect 9600 8 N 1 Figure 8 5 HyperTerminal Startup Screen 8 2 Command List The following is a list of FP5 control commands and device commands R20UTO008EJ0600 Rev 6 00 RENESAS Page 128 of 224 Sep 30 2013 PG FP5 V2 11 USAGE COMMUNICATION COMMANDS Table 8 1 List of FP5 Control Commands Command name autocon Description Selects and confirms automatic or manual execution of the processes from transition to flash memory programming mode to signature verification and the termination of the flash memory programming mode brt Confirms and changes the data transfer rate
20. 0x571d7ddl Oxa527 df9 0x832f1041 0xe9362689 Oxcf3ecb31 0x608edb80 0x46863638 Ox2c9f00f0 0x0a97ed48 Oxf8ad6d60 Oxdea580d8 Oxb4bcb610 0x92b45ba8B Ox5408abf7 0x7200464f 0x18197087 0x3e119d3 Oxcc2bl1dl17 Oxea23f0af 0x803ac667 Oxa6322bdf u32 CRC_accum 0xffffffff void Gen_CRC_Sum_Char 532 i Ignore SPACE u08 c CR LF 0x0d4326d9 0x2b4bcb61 0x4152fda9 0x675a1011 0x95609039 0xb3687d81 0xd9714b49 Oxff79a6f1 0x39c556ae Oxlfcdbb16 0x75d48dde 0x53dc6066 Oxale6bel4e 0x87ee0df6 Oxedf73b3e Oxcbffd686 0x644fc637 0x42472b8 0x285e1d47 Ox0e56f0fF Oxfc6c70d7 Oxda649de6f Oxb07daba7 0x9675461f 0x50c9b640 Ox76c15bf8 Oxlcd86d30 0x3ad08088 Oxc8ea00a0 Oxeee2ed18 0x84fbdbd0 Oxa2 33668 The generator polynomial used for this table is x 324 x 264 x 234 x 224x 164 x 124 x 114 4104K 84 x 74 e 54x 44 x424 K 14 x 0 according to Autodin Ethernet ADCCP protocol standards Ox04clldb7 0x130476dc 0x350c9b64 Ox5f15adac 0x791d4014 O0x8b27c03c Oxad2 2d84 Oxc7361b4c Oxel3ef6f4 0x278206ab 0x018aeb13 0x6b93dddb 0x4d9b3063 Oxbfalb04b 0x99a95dFf3 Oxf3b06b3b 0xd5b88683 0x7a089632 Ox5c007b8a 0x36194d42 0x1011a0fa 0xe22b20d2 0xc423cd6a Oxae3afba2 0x8832161a Ox4e8ee645 0x68860bfd 0x029f 3d35 0x2497d08d Oxd6ad50a5 OxfO0a5bdld Ox9abc8bd5 Oxbcb4666d 0x17c56b6b 0x31cd86d3 Ox5bd4b01b
21. 839 2 LON COMMANA a Aa E EEA ia eetaeneietiandd 153 8 5 Se COM COMMA e a a SduetoetSemncect ceuieuet evel de teueesteemnnetl cguiucntevseddedetueeleed 153 8 95 42 CP SPV COMMAND os aE S EA E 154 9 5s CFS COMMMANNG a A E T 155 8 90 gd Command coena nnna aAA EES R 156 SoD CONN in E S ete aee acess 156 8 5 8 gob command inann E ee Lee Len 157 R20UTO0O08EJ0600 Rev 6 00 RENESAS Page 11 of 224 Sep 30 2013 PG FP5 V2 11 PREFACE 8 5 9 gos command eeraa N lear eek cemented la eine et 157 85 10 980 COMIMAMNC cerina setsccaa a aia eeN EEEE EE AEEA RAEE sete dense ds EE EE 158 So Tige command es belee chen sees dc cduecettoenacis pele ecinetencac demeeeiieemsscal eelteecdeessectsceuetaceed 158 8 5 12 OPD command eessen ri eaa NE a A a d araia N 159 S513 P COMMA e a a casauiaeSenasseeess 160 8o Th read command fi feccadeeelacetecetececientaaededhcaedidebaceteetacecieuticeesshean degedaaeidtanevieaeieuneegenees 161 9215 S E S E E E E E E T 162 89 16 Sg COMIMANG ossa aE E A E AS S S E E 162 8517 310 command ariaren Earra n iNe a aeia a oi E E EENEI ERA a ENEE AiE 163 8 5 8 SUMCOMMANG aana E A RE E E A 163 8519 vri COMIMAING nrerin eon iiaae a E E TEREE E E EEEE EE ESER 164 9 CONNECTORS AND CABLES reiii aoi NE ines eed need 165 9 1 Power Supply Connector cccecceeesceceeececeaeeeeaaeeeeeeecaeeeeaaeeeaaeseeeeseaeeeeaaeseeaeeseeeesaeeseaaeeseneeeseeeseas 165 9 2 Serial COMMECON cscs innean a aaia iada aada aiiai earned deat
22. Specifications lt 3 gt Address range selection Select the range for calculating checksum of the selected program file If there is no program file data in the specified range the specified range is filled with FFh for calculation When a V850 or RL78 family product with data flash memory is selected Code flash and Data flash are displayed When the RX family R8C family or SuperH family is selected User mat Data mat and User boot are displayed Device Area From the start to end addresses of the device which are contained in the selected PRS file User Defined Any range can be specified by inputting the addresses to the Start Address and End Address text boxes Clicking the OKI button displays the calculation result in the File Checksum area in the action log window and programmer parameter window Clicking the Cancel button closes the dialog box without saving the settings made in the Checksum dialog box Note When the valid programming area is changed or a program file is downloaded the checksum result will be cleared Note When the RX family or SuperH family is selected when ROM size is less than 8Kx2 n byte a space area is complemented with FFh to an 8Kx2 n byte and the range of an 8Kx2 n byte is calculated Ex 1 When ROM size is 384 K bytes a space area is complemented with FFh to a 512K byte and the range of a 512K byte is calculated Ex 2 When ROM size is 256 K bytes a spac
23. UPD78F9334 is used the SO TxD signal line functions as an open drain output Pull up control circuit Signal output circuit EMZ6 8 E Self testing circuit or signal input circuit 74LV125 Target System Figure 11 1 SO TxD RESETand SCK Pins 11 2 SI RxD and H S The SI RxD and H S input signal voltages must not exceed the rated maximum voltage However for the RL78 the SI RxD pin becomes an I O pin and it is open drain output upon output For the RX family and SuperH family the H S signal line is C MOS level output Self testing circuit TALV 125 or Signal output circuit cal 22 Ne N ca Self testing circuit TALV 125 or Signal input circuit Target System Figure 11 2 SI RxD and H S Pins R20UTOOO8EJ0600 Rev 6 00 RENESAS Page 184 of 224 Sep 30 2013 PG FP5 V2 11 SPECIFICATIONS OF TARGET INTERFACE CIRCUITS 11 3 CLK It is recommended to supply the target device operating clock from the target system When supplying the target device operating clock from the FP5 communication may not be performed normally due to the waveform distortion caused by wiring of clock lines on the target system In such a case add elements such as CMOS buffers to the target system as necessary so as to adjust the waveform FP5_Vpp or FP5_Vpp2 Noise filter NFL21SP506 TALW 125 ices Signal output s p Signal Circuit Target System EMZ6 8 E Figure 11 3 CLK Pins 11 4 FLMDO FLMD1 RFU 1 a
24. command for all the selected blocks in the flash memory selected with Block in the Operation Mode area on the Standard tab in the Device Setup dialog box and the Program command is disabled This setting is cleared if the Erase command is executed with Chip selected in the Operation Mode area Disable Read check box If the Set Security command is executed with this check box selected the Read command is disabled This setting is cleared if the Erase command is executed with Chip selected in the Operation Mode area Disable Boot block cluster reprogramming check box If the Set Security command is executed with this check box selected the boot block set in the Boot Block end drop down list is regarded as the last block in the Block protection settings area and then the boot area is set and rewriting to the area is prohibited If this check box is selected the following dialog box appears Warning rN 12402 Caution When Boot block cluster reprogramming is disabled chip cannot be erased and programmed any more Cancel Figure 4 74 Disable Boot block cluster reprogramming Warning Dialog Box Clicking the OKI button determines the selection of the Disable Boot block cluster reprogramming check box Clicking the button cancels the selection of the Disable Boot block cluster reprogramming check box Note Ifthe Disable Boot block cluster reprogramming function is enabled rewriting o
25. executed the log file save dialog box appears Move to an arbitrary folder select the log file in the File name drop down list and click the button the log file will then be saved The Logging command on the menu bar will be checked The check mark will be cleared by clicking the Logging command again and saving of the log file will be stopped Enabling disabling the Logging command is added to the time stamp For a log file example refer to APPENDIX B SUPPLEMENTARY INFORMATION Figure B 3 Log File Example Note The log file that was saved the last time is displayed in the log file save dialog box Savein LOG J a 4 My Recent Documents Desktop My Documents My Computer e Myy etwork File name log txt z aces Save as type TXT files txt z Cancel Figure 4 14 Log File Save Dialog Box Clicking the Save button saves the specified log file Clicking the Cancel button closes the dialog box without saving the log file Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE 3 Select Programming area command The FP5 has a 16 MB flash memory area for saving program files This memory area can be used as two programming areas of 10 MB and 6 MB Area 0 to Area 1 four 4 MB programming areas Area 0 to Area 3 or eight independent 2 MB programming areas Area 0 to Area 7 Program files can be downloaded to each programming area and which file PRS or ESF is to be saved
26. female Pin Assignment Note Remote connector D SUB 15 pin connector female model number 07433FB015S200ZU Suyin Connector 7 3 Equivalence Circuits In the DC properties of the remote interface 4 7 k ohm pull up processing is executed so that the output signal has CMOS output from 74LV126A 3 3 V and the input signal has input from 74LV 126A 3 3 V R20UT0008EJ0600 Rev 6 00 RENESAS Page 123 of 224 Sep 30 2013 PG FP5 V2 11 USAGE THE REMOTE CONNECTOR 74LV126A 330 g Sigan output Si _BUSY 2 PASS 3 ERROR 4 FP5_3 3V EMZ6 8 E 74LV126A g Signal_CANCEL 5 ENTER 6 NEXT 7 Self test circuit 74LV126A Signal input circuit EMZ6 8 E Button circuit FP5 i User System a BUSY PASS ERROR CANCEL ENTER NEXT 74LV126A 330 s Signal output circuit FP5 3 3V p gt Signal_CONN 1 FP5_3 3V z 74LV126A 4 7KQ gt lt q Signal_VRF8 Self test circuit Signal input circuit FP5_3 3V 74LV1 mes 4 7KQ be CE lt lt Signa_starro Self test circuit Signal input circuit FP5 User System Button circuit b CONN VRF START FP5_3 3V 74LV126A 74LV126A Signal input circuit EMZ6 8 E FP5_3 3V z User System Figure 7 2 Equivalence Circuit R20UTOOO8EJ0600 Rev 6 00 RENESAS Page 124 of 224 Sep 30 2013 PG FP5 V2 11 USAGE THE REMOTE CONNECTOR 7 4 External Connection Example A connection example with a remote connector external swit
27. lt Folder where documents are stored CA Folder specified as the installation destination C Program Files Common Files x86 Renesas PG FP5 V2 08 I CubeSuite Drivers L pG Fp5 lt USB driver storage folder USB_Driver_x64 for the 64 bit version of Windows R20UTOOO8EJ0600 Rev 6 00 7tENESAS Page 30 of 224 Sep 30 2013 PG FP5 V2 11 SOFTWARE INSTALLATION 3 2 1 Notes on installation 1 Multiple versions of the PG FP5 can be installed on a single host machine Although we recommend using the latest version of any development tool leaving a previous version on your host machine and then installing the latest version lets you easily switch the development environment 2 You might be asked to reboot your computer after installing the PG FP5 Be sure to close all other applications before rebooting your computer 3 You must have administrator privileges to install the PG FP5 4 The PG FP5 can only be installed in a folder that is named using ASCII characters Note that the 11 characters lt gt 21 and character strings that begin and end with a space cannot be used The PG FP5 might not operate correctly if installed in a folder that is named using other characters 5 The PG FP5 cannot be installed from a network drive or on a network drive 6 The installer does not specify environment variable paths If these paths are required add them after installation 7 To use programming GUI M
28. overwrites the existing file 12218 HEX File on local PC differs from FlashProgrammer The program file is not sufficient or does not match the contents FP5 Setup of the device is required Setup of parameters is needed 12300 Value out of range The set value is out of the valid ranges The valid code flash range is 0 0x400000 The valid data flash range is 0x400000 to 0x420000 12302 Please give file range Input the file range No arguments are specified for the range 12401 Caution When Chip Erase is disabled chip cannot If security setting is performed with chip erase prohibition be erased and programmed any more enabled the target device cannot be rewritten because chip erasure cannot be done 2402 Caution When Boot block cluster reprogramming If security setting is performed with boot area rewrite is disabled chip cannot be erased and prohibition enabled the boot area of the target device programmed any more cannot be rewritten 12403 Caution When Block Erase is disabled chip If security setting is performed with block erase cannot be erased and programmed any more prohibition enabled the target device cannot be rewritten because block erasure cannot be done 12411 The selection is out of range The selected communication speed is higher than the maximum value defined in the PR amp file 12412 The selection is out of range The selected communication speed is lower than the minimum value
29. 166 9 2 Serial Cable za evens niarainn aaaea iaaa aa eaaa aa aaa TEA 166 9 3 USB Connectors xcivie hei eel i ee ie i ad de aie 167 OS LW SB iCable roinnean aea a ev ania anian aeaa EA aSa ata anaa 167 9 4 Target GOnm Ctl esisiini eiie aaa aaa aa aaa aaa a Eaa aa aa a E aaa aAa Eaa Eaa genase 168 94 1 Target cable 16 pin type vsccceceeeeccdesiaeticlesediGelbaaedceltacvedeasiaededssen AAA Aa AAEREN EA AARS 169 9 4 2 Target cable 14 pin TYPE sirsie arni n a A E aa 171 9 5 GND Gonhectols scat io rishi a eee dle ed a a ee E ee 173 D5 A GND iCable zo evesscins lt cdee decent avedssnse tence tatu dant ag dehoeeasouSads adevenvada naSlab dncctetaes da EE 173 9 6 Remote Connector iis vaisicseiciecleai se dette a a ia aati iaaa aie 173 10 NOTES ON TARGET SYSTEM DESIGN c ceecceeccceeeceeeeeeeeeeee cae eeeaaeeeeeeeseaeeesaaeeeeaaeseeeeeseaeeesaeeseaeesaes 174 11 SPECIFICATIONS OF TARGET INTERFACE CIRCUITS 00 c ccececceceeeeneeeeeeeeeeeeeeeeeeseeeeeseaeeesaeeneaeeeeaes 184 11 1 SO TXD RESET and SG isi eesccc secdeacs oeaset oe eeaticdecansseednlavad deesui et yeadeasdidns daa onandia gaupas 184 11 2 SURXD and HSin laden ai ai aa Na 184 VD Be CLK E E EE E E A N 185 11 4 FLMDO FLMD1 RFU 1 and VDE eeceecccecececeeneceeeee eee ee cane eeeaeeseaeeeseaeesaaaeeeeaeeseaeessaeeeeaaeeeenees 185 11 5 Vop and Vope ecru eis maa emma evn ea ee atm amt ance ne ve arses taal lel uta ave a aan att eee marae coat ntntn arm taal eva 186
30. 2 32 bit CRC Calculation Specifications R20UT0008EJ0600 Rev 6 00 Sep 30 2013 RENESAS Page 204 of 224 PG FP5 V2 11 SUPPLEMENTARY INFORMATION Thu Aug 02 14 11 46 2007 gt ep Blank check Chip ERROR E051 Not blank Erase needed Erase Chip PASS Program Chip 10 20 30 40 50 60 10 80 90 100 PASS Erase Program operation finished End record file Thu Aug 02 14 12 03 2007 Figure B 3 Log File Example define BLOCKSIZ 256 You have to store 1 Block ROM data unsigned char rom_data BLOCKSIZ unsigned char bist_calc int i unsigned short bist bist_temp bist 0 i for i 0 i lt BLOCKSIZ i bist_temp bist amp 0x1 bist_temp bist_temp lt lt 8 bist_temp lt lt 9 bist_temp lt lt 11 bist_temp lt lt 12 bist bist gt gt 1 rom_data i bist_temp return unsigned char bist Figure B 4 Division Original Calculation Specifications R20UTOOO8EJ0600 Rev 6 00 7tENESAS Page 205 of 224 Sep 30 2013 PG FP5 V2 11 SUPPLEMENTARY INFORMATION The generator polynomial used for this table is x 16 x 12 x 5 x 0 according to CCITI 16 standard Binary 0x1021 const uint1l6_t CRC16_Tab 256 0x0000 0x1021 0x2042 0x3063 0x4084 0x50A5 0x60C6 0Ox70E7 0x8108 0x9129 0xA14A 0xB16B 0xC18C 0xD1AD OxXE1CE OxF1EF 0x
31. 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE checksum Programming Area 0 Arithmetic checksum 16 bit lt l gt lt 2 gt Start Address 0 Device Area EndAddress 3FFFF lt 3 gt j C User Defined EndAddress 1FFFFF ae Cancel a When a 78K product or V850 and RL78 family product without data flash memory is selected Arithmetic checksum lt l gt gt lt 2 gt Device Area Programming Area p Checksum Arithmetic checksum 16 bit Programming Area fi lt I gt lt 2 gt Device Area M Code M Data Start Address 0 Start Address 2400000 End Address SEERE End address 40FFFF C User Defined lt 3 gt b When a V850 or RL78 family product with data flash memory is selected x V User mat IV Data mat IV UB mat Start Address FFFCOOO0 Start Address 2100000 Start Address FF7FCOOO End Address FFFFFFFF End address 107FFF End address FF7FFFFF lt 3 gt C User Defined IV User mat VV Data mat M UB mat Start Address JFFFCOOOO Start Address fi 00000 Start Address JFF7Fcooo End Address FFFFFFFF End Address 107FFF End amp ddress FF7FFFFF c When the RX family R8C family or SuperH family is selected Cancel Figure 4 10 Checksum Dialog Box lt 1 gt Programming area The valid programming area is displayed lt 2 gt Checksum calculation mode selection Select the mode for calculating ch
32. 30 2013 PG FP5 V2 11 USAGE COMMUNICATION COMMANDS 3 Start HyperTerminal Click the Start menu All Programs gt Accessories gt Communications gt HyperTerminal to start it The dialog box shown below will open Input a name then click the button Connection Description a5 New Connection Enter a name and choose an icon for the connection Name FPS Icon Figure 8 2 Connection Settings Next the dialog box below will be displayed From the Connect using pull down menu select the COM port which is in use Check the COM port number with Device Manager Connect To D FP5 Enter details for the phone number that you want to dial Device Manager Country region File Action View Help H amp e a Area code BB Network adapters Phone number Other devices Ports COM amp LPT Connect using comT lv F Communications Port COM1 oy Printer Port LPT1 MB Processors Figure 8 3 Checking the COM Port Number Settings Next the dialog box in Figure 8 4 will be displayed so select the data transfer conditions listed below Data transfer rate 9600 bps 19200 bps 38400 bps 57600 bps 115200 bps Data bits 8 bit Parity None Stop bit 1 bit Flow control Hardware The default data transfer rate is 9600 bps but it may be changed by the programming GUI or terminal commands to another rate In such cases use the Setup host connection
33. 30 2013 PG FP5 V2 11 USAGE COMMUNICATION COMMANDS 8 4 7 files command Displays the information concerning the program file that was downloaded to the FPS Input format files check Description of the function If no options are used then information file name creation date size checksum concerning the program file downloaded to the FP5 is displayed check The checksum of all programming areas stored in the program file from START to END is recalculated with the 32 bit CRC method and cross checked with the checksum stored in the FP5 during download Example of usage Command Screen output Files Area Filename Date Time Range CRC 0 sample hex 2006 02 24 21 13 000000 007FFF 61D5F67C 1 unknown data 2 unknown data 3 unknown data files check Area Filename Date Time Range CRC 0 sample hex 2006 02 24 21 13 000000 007FFF 61D5F67C 1 unknown data 2 unknown data 3 unknown data Checking Progareas No invalid data found R20UTOOO8EJ0600 Rev 6 00 7tENESAS Page 138 of 224 Sep 30 2013 PG FP5 V2 11 USAGE COMMUNICATION COMMANDS 8 4 8 fpga_up command Updates the FPGA Input format fpga_up Description of the function Updates the FPGA version After this command is executed the FPGA file must be downloaded to the FP5 in ASCII format using communications software If using HyperTerminal select Transfer T gt Transfer text file T and then
34. 44 55 66 77 88 99 AA BB CC DD EE FF 1100 lt Saved program file gt address Data Flash ID Tag Data Flash ID Tag 400000h 00 11 22 33 FF FF FF FF 44 55 66 77 FF FF FF FF 400010h 88 99 AA BB 00 00 00 00 CC DD EE FF 00 00 00 00 Figure B 1 Relationship Between HEX Editor and Saved Program File R20UTOOO8EJ0600 Rev 6 00 RENESAS Page 203 of 224 Sep 30 2013 PG FP5 V2 11 SUPPLEMENTARY INFORMATION Binary const u32 CRC32_Tab 0x00000000 0x2608edb8 Ox4clldb70 0x6al936c8 0x9823b6e0 Oxbe2b5b58 0xd4326d90 Oxf23a8028 0x34867077 0x128e9dcf 0x7897ab07 Ox5e9f46bFf Oxaca5c697 Ox8aad2b2f Oxe0b41de7 Oxc6bcf05Ff 0x690ce0ee 0x4 040d56 0x251d3b9e 0x0315d626 Oxf12 560e Oxd727bbb6 Oxbd3e8d7e 0x9b3660c6 0x5d8a9099 Ox7b827d21 0x119b4be9 0x3793a651 Oxc5a92679 Oxe3alcbcl Ox89b8fd09 Oxafb010b1 0x04c11db7 0x22c9f00f Ox48d0c6c7 Ox6ed82b7Ff Ox9ce2ab57 Oxbaea46ef Oxd0f37027 Oxf6fb9d9F 0x30476dc0 0x164f 8078 Ox7c56b6b0 Ox5a5e5b08 Oxa864db20 0x8e6c3698 0xe4750050 Oxc27dede8 Ox6dcdfd59 Ox4bc510el 0x21dc2629 0x07d4cb91 Oxf5ee4bb9 Oxd3e6a601 Oxb9ff90C9 Ox9ff77d71 0x594b8d2e 0x7 436096 0x155a565e 0x3352bbe6 Oxcl1683bce Oxe760d676 0x8d79e0be Oxab710d06 256 0x09823b6e Ox2f8ad6d6 0x4593e01e 0x639b0da 6 0x91lal8d8e 0xb7a96036 Oxddb056fe Oxfbb8bb46 0x3d044b19 Oxlb0ca6 al 0x71159069
35. 5 minutes Example of usage Command Screen output pwr_off now PG FP5 Power will be switched OFF now pwr_off auto 10 AutoPowerOff is enabled time is 10 min R20UT0008EJ0600 Rev 6 00 RENESAS Page 144 of 224 Sep 30 2013 PG FP5 V2 11 USAGE COMMUNICATION COMMANDS 8 4 15 res command Resets FPS Input format res Description of the function Executes a function similar to the programming GUI Programmer menu gt Reset command Example of usage Command Screen output FFFFFFF PPPPP 555555 F P P 5 F P P5 F P P 55555 PPPPP 5 P 5 5 5 P P 5 P 5555 Firmware Version Vx xx Board H W Vx FPGA Vx Serial No xxxxxxxxxx Standard mode unsecured 8 4 16 security command Confirms the security state that can be set by the FP5 Manager command Input format security Description of the function Confirms the security state that can be set by the FP5 Manager command Example of usage Command Screen output security When password protection is valid Security state is Locked Authorization procedure is Password When password protection is invalid Security state is Inactive Authorization procedure is Undefined R20UTOOO8EJO0600 Rev 6 00 RENESAS Page 145 of 224 Sep 30 2013 PG FP5 V2 11 USAGE COMMUNICATION COMMANDS 8 4 17 selftest command Executes a self test Input format selftest Description of the function Execut
36. 76800 Baud e 115200 Baud R20UTOOO8EJ0600 Rev 6 00 7tENESAS Page 83 of 224 Sep 30 2013 PG FP5 V2 11 lt When SIO chO SIO ch1 SIO ch2 SIO H S or CSI Internal OSC is selected gt 125000 Baud 128000 Baud 153600 Baud 250000 Baud 500000 Baud 1M Baud 2M Baud 9 8 kHz 39 kHz 156 kHz 625 kHz 2500 kHz 5000 kHz lt When JIC ch0 IIC ch1 I1C ch2 or IIC ch3 is selected gt 10k Baud 20k Baud 50k Baud 100k Baud lt When Port chO Port ch1 or Port ch2 is selected gt 100 Hz 200 Hz 300 Hz 400 Hz 500 Hz 600 Hz 800 Hz 1000 Hz 1200 Hz 1500 Hz 2000 Hz IIC Address area If TC is selected as the communication channel input a hexadecimal number as a slave address of the target device The valid input range is 8 to 77h Do not input a unit The slave address can be any value in the above range but must not be the same as the slave address of another target device on the I C This field is not available if the I C port is not selected lt 2 gt Supply oscillator area Set the clock to be supplied to the target device R20UTOO08EJ0600 Rev 6 00 7tENESAS Sep 30 2013 PROGRAMMING GUI USAGE Page 84 of 224 PG FP5 V2 11 PROGRAMMING GUI USAGE Supply oscillator Frequency 5000000 On Target Hz v Multiply rate Internal Direct mode PLL mode 4 00 a When 78K V850 RL78 Family or R8C Family Is Selected Supply oscillator Frequency fi 2500000 Gn Target Hz vd Multiply rate Internal
37. 7tENESAS Page 95 of 224 Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE lt 9 gt Option bytes setting area The option bytes can be set in this area When the Set Option bytes command is executed the settings made in this area in the Device Setup dialog box will be reflected in the target device Option bytes setting OPBTO FFFFFFES Figure 4 78 Option bytes setting Area Option byte setting text box If the Set Option bytes command is executed after entering a setting value of option byte OPBTx x 0 to 8 in 8 byte unit the option bytes are set This setting is cleared if the Erase command is executed with Chip selected in the Operation Mode area lt 10 gt Lock bit setting area Whether to set lock bits in units of blocks can be selected for User mat It is locked when this check box is selected or unlocked when it is cleared For details on lock bits refer to the user s manual of the target device Lock bit setting E O User mat O B0 Unlocked O 51 Unlocked O 82 Unlocked O B3 Unlocked O 4 Unlocked O z 5 Unlocked O zss Unlocked Figure 4 79 Lock bit setting area R20UT0008EJ0600 Rev 6 00 7tENESAS Page 96 of 224 Sep 30 2013 PG FP5 V2 11 lt 11 gt IO signal setting area A pin to control the mode pins MDO and MD1 of the RX family and SuperH family can be selected from the IOO to IOS pins For details refer to 10 NOTES ON TARGET SYSTEM DESIGN 100 101
38. Date Thu Dec 08 09 47 30 2011 Now loading PASS Download file Name sample hex gt gt lod fname sample hex ftime 2011 03 08 07 57 i Preparing storage S Date Tue Mar 8 07 57 00 2011 Now loading Type HEX file Address range 000000000 to Ox0003FFFF CRC32 OxCB6EA4B2 Address 00000000 0003FFFF PASS gt ep Blank check Chip PASS Erase skipped File checksum Program Chip 10 m Target device Name 78F1166 Pott UART Pulse Num 0 P a a Speed 1 000 000 bps Erase Program operation finished Ydd 05 00 FPS gt Freq Internal Osc Target Multiply oo Mode Figure 5 18 Autoprocedure E P Command Execution Result 8 System shutdown lt l gt Remove the target system from the target cable Note Turn off power and remove the target system before supplying Vop Vope from the target system lt 2 gt If no more target devices are to be written to execute the Quit command in the File menu to terminate the programming GUI All the settings made so far are saved so they can be restored when the programming GUI is restarted The PRS files ESF files and program files are saved to the FP5 internal flash memory lt 3 gt Press and hold the POWER button on the FP5 for about 1 second to turn off the POWER LED lt 4 gt Remove the AC adaptor and USB cable from the FP5 Note If an error occurred during the above steps refer to 12 TROUBLESHOOTING
39. Direct mode PLL mode CKM 2 00 CKP 400 b When RX Family or SuperH Family Is Selected Figure 4 63 Supply oscillator Area Frequency text box Set the oscillation frequency of the clock supplied to the target device When using the clock mounted on the target system On Target check box selected input its oscillation frequency When using the clock on the FP5 side On Target check box cleared input one of the following e 1 MHz e 2 MHz e 4MHz e 5 MHz e 6MHz e 8 MHz e 9MHz e 10 MHz e 12 MHz e 16 MHz e 20 MHz Note For the selectable frequency refer to the user s manual for the device used On Target check box Specify which clock is supplied to the target device a clock mounted on the target system or a clock on the FP5 side If this check box is selected the clock mounted on the target system will be used If this check box is cleared the clock on the FP5 side will be used Multiply rate text box Set the multiplication ratio of the clock supplied to the target device If the target device includes the PLL circuit input the multiplication ratio in accordance with the environment used If the target device does not include the PLL circuit select Internal Direct mode On the initial screen the default settings that have been loaded from the PRS file is displayed For the RX family and SuperH family the CKM box and CKP box are displayed in PLL mode Enter the multiplication rati
40. E 1100 communication within host PC and Flash Programmer is broken is displayed in the action log window Cause 1 The USB cable or serial cable may not be connected properly the USB driver may not have been installed correctly or power to the FPS has been turned off Action 1 Refer to 12 1 Problems During Startup and take appropriate action Cause 2 When Renesas USB Development Tools is expanded in the Device Manager while the FP5 is connected via a USB port Flash Programmer FP5 is not displayed Alternatively a or x is attached Action 2 lt 1 gt Turn on power to the FP5 while it is connected to the host machine via a USB port right click the driver marked with the or x and then click Delete E on the shortcut menu lt 2 gt Execute Scan for hardware changes in the Device Manager lt 3 gt Reinstall the USB driver with Plug and Play Cause 3 The FP5 may not have been recognized when connected via USB hub Action 3 Try the following lt 1 gt Disconnect the USB cable and then reconnect it lt 2 gt Connect the USB connector to another port on the USB hub lt 3 gt If the above measures do not resolve the problem do not use the USB hub but directly connect the USB connector to the USB port of the host machine R20UTOOO8EJ0600 Rev 6 00 7tENESAS Page 188 of 224 Sep 30 2013 PG FP5 V2 11 TROUBLESHOOTING 2 The following messages are displayed in the
41. FP5 V2 11 PROGRAMMING GUI USAGE The FP5 Manager and simple mode have been set e FP5 Manager Dialog Settings Refer to Figure 4 34 Disable Upload check box This sets enabling or disabling of the upload function used to upload data program file PR5 file ESF file from the valid programming area of FP5 to the host machine Checking the box will disable and unchecking it will enable the function When this function is disabled the File menu gt Upload from FP5 command and the hex srec and upset of the communications command are disabled The default is not to have this box checked Disable Device Setup check box Enables or disables the Setup command in the Device menu It is disabled when checked and enabled when not checked When it is disabled the Setup command in the Device menu as well as the downprm downset and lod communication commands become invalid Enable Bank mode check box Sets the normal mode or bank mode for the mode of the remote connector Checking this box will set the bank mode and not checking it will set the normal mode If checked Enable Simple mode cannot be checked When in the bank mode the programming area can be selected through the remote connector With respect to detailed functions refer to 7 USAGE THE REMOTE CONNECTOR The default is not to have this box checked Enable Simple mode check box Sets the normal mode or the simple mode Checking this box will set the simple mod
42. FP5 management setting to initialize all programming areas See the FP5 Management setting M command in 4 3 2 9 FP5 Manager command for details Note The settings are not reflected to the FP5 internal memory unless the OKI button is clicked in the Device Setup dialog box lt 6 gt Programming area map area The programming area status can be checked in this area The FP5 programming areas whose information matches information held in the programming GUI are displayed in light green In the valid programming area the names of ESF files PR5 files and program files and programming area numbers are displayed in black These items appear dimmed in invalid programming areas If no area information is held in the programming GUI Unknown is displayed The FP5 programming areas whose information does not match information held in the programming GUI are displayed in pink The information held in the programming GUI is displayed in such areas R20UTOOO8EJ0600 Rev 6 00 7tENESAS Page 80 of 224 Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE Unknown Figure 4 60 Programming Area Map Area b Standard tab in Device Setup dialog box On the Standard tab set the programming environment of the flash memory in the target device All basic settings to configure the user environment and the target device can be performed Communication channels speeds and the operation clock supplied to the target device va
43. Insert neither capacitors nor resistors into the Ver line unless otherwise stated Incorrect circuit Target device Vep am Target device Vep Insert neither capacitors nor resistors into the FLMDO line unless otherwise stated Target device FP5 FLMLO Connect the FP5 or GND using pull down resistance on board For the recommended connection of unused pins refer to the user s manual of the target device Some target devices have pins that must be connected differently For these pins also refer to the user s manual of the target device Example of pins connected differently MODE CKSEL REGOUT REGIN etc R20UTOOO8EJ0600 Rev 6 00 RENESAS Page 176 of 224 Sep 30 2013 PG FP5 V2 11 NOTES ON TARGET SYSTEM DESIGN The following are examples of interface circuits Refer to the recommended design for the connection of pins in the target device lt l gt SIO H S 3 wire clocked communication port with handshake Target connector 16 pin type FLMDO Note 1 FLMD1 Note 1 HS RESET Vpp Note 2 Target device User reset circuit Figure 10 1 SIO H S Interface Circuit Example Notes 1 Pin used in internal single power supply flash memory microcontroller 2 Pin used in internal two power supply flash memory microcontroller lt 2 gt 78KOS Single wire UART Target connect
44. Ltd Tel 81 42 750 4172 2 The functions that can be used differ depending on the target device Term replacement When the RX100 is used some terms in this manual should be replaced as shown in the table below pte Meaning Flash shield window Area protection Set Security Access window program All trademarks and registered trademarks are the property of the respective owner R20UTOOO08EJ0600 Rev 6 00 7tENESAS Page 16 of 224 Sep 30 2013 PG FP5 V2 11 OVERVIEW 1 OVERVIEW The FP5 is a tool that erases writes and verifies programs on a Renesas Electronics on chip flash memory microcontroller on the target system 1 1 Features e Compatible with remote operation for FP5 from an external control device e Compatible with communications commands operated by the FP5 command through RS 232C e The customization and security settings of the FP5 unit can be changed with the FP5 Manager function e Supports on chip 2 power supply flash memory microcontrollers and single power supply on chip flash memory microcontrollers e Supports flash memory programming through the programming GUI using the host machine programming GUI operation and operation in standalone standalone operation e Supports on board programming through which programs are written with the target device mounted on the target system e Program files can be saved in the 16 MB flash memory in the FP5 divided by 2 in 10 MB and 6 MB units divided by
45. PRS files ESF files and program files can be performed on the Target tab in the Device Setup dialog box This tab consists of the following items lt l gt Programming Area Setting area lt 2 gt Target Setting area lt 3 gt Parameter and Setting file area lt 4 gt Object HEX file area lt 5 gt Information area and Clear button lt 6 gt Programming area map area R20UTO008EJ0600 Rev 6 00 RENESAS Page 74 of 224 Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE Te 6h Target Standard Advanced M Programming Area Setting Division pattern C 2 division Area0 10MB Areal 6MB a oUF 4 division 4 MB DIV Unknown 8 division 2 MB DI lt gt gt Target Settings m Parameter file and Setting file lt 3 gt D FP5 PRJ 78F1166esf el New 78F 1166pr5 Save As M Object HEX file D FP5_PRJ sample mot Thu May 16 10 51 41 2013 IV Erase memory before download r Information Figure 4 49 Device Setup Dialog Box Target Tab lt 1 gt Programming Area Setting area The FP5 has a 16 MB flash memory area for saving program files This memory area can be used as two programming areas of 10 MB and 6 MB Area 0 to Area 1 four 4 MB programming areas Area 0 to Area 3 or eight independent 2 MB programming areas Area 0 to Area 7 Program files can be downloaded to each programming area and
46. Renesas Electronics microcontrollers All components of the PG FP5 are listed under 1 4 Package Components If you have any questions about the PG FP5 contact your local distributor You can download the latest manuals from the Renesas Tools homepage http www renesas com pg_fp5 R20UTOOO8EJ0600 Rev 6 00 7tENESAS Page 3 of 224 Sep 30 2013 PG FP5 V2 11 PREFACE Important Before using this product be sure to read this user s manual carefully Keep this user s manual and refer to it when you have questions about this product Purpose of use of the product This product is a device to support the development of systems that uses Renesas Electronics microcontrollers This product is a tool that erases writes and verifies programs on a Renesas Electronics on chip flash memory microcontroller on the target system Be sure to use this product correctly according to said purpose of use Please avoid using this product other than for its intended purpose of use For those who use this product This product can only be used by those who have carefully read the user s manual and know how to use it Use of this product requires basic knowledge of electric circuits logical circuits and MCUs When using this product 1 This product is a development support unit for use in your program development and evaluation stages When a program you have finished developing is to be incorporated in a mass produced product the
47. Standard mode unsecured Parameter and Setting file Name 78F1166 pr5 Version 1 00 FPS Selfprogramming O 94 Name 78F1166 esf Checking FLMDO level OK Date Wed Dec 07 20 57 31 2011 Erase flash OK Blank check OK m Download file Write flash Name sample hex ee Date Tue Mar 8 07 57 00 2011 Firnvare Update succeeds Type HEX fie Address 00000000 0003FFFF Restarting FPS File checksum FFFFFFF PPPPP 555555 F P P 5 F p P 5 F P P 55555 FFFFF PPPPP 5 P 5 5 m Target device 5555 Name 78F1166 Pott UART Pulse Num 0 Eiravare Vorsion V2 0 Speed 1 000 000 bps oar Va 7 Serial No MC10340174 oid TAn t Standard mode unsecured reg Eelke Multiply 00 Mode Firmware Version 2 07 aj Wo Yy POA V4 Figure 4 23 Action Log Window When Firmware Update Is Finished Note Depending on the changes made the following dialog box will be displayed In this case the information stored in the FP5 PR5 file ESF file program file will have been deleted so please download those files again Refer to 4 2 Startup of Programming GUI Infor mation 1 12208 Information defined in initial file is not enough or it is not matched with FlashProgrammer Setup parameters is needed 8 Update FPGA command The Update FPGA command updates the FPGA Refer to 3 4 Updating Programming GUI Firmware and FPGA and download the relevant update file before starting update Execu
48. The following dialog box will be displayed Click Yes or No Information Project Folder and parameter file is not defined 12213 i Click button Yes if create the setting file newly Click button No if select the existing setting file New button for the steps that Clicking Yes follow Save in FPS_PRJ J cf EA 5 79F 1166 esf My Recent Documents Desktop My Network File name 78F 1166 est Places Save as type FPS setup files esf Cancel Parameter file 78F1 166 p15 New Clicking No will open a dialog box to select a previously created ESF file Refer to 4 3 3 15 a lt 3 gt button for the steps that follow R20UTOOO8EJ0600 Rev 6 00 RENESAS Page 104 of 224 Sep 30 2013 PG FP5 V2 11 EXAMPLE OF OPERATION USING PROGRAMMING GUI Look in e FP5_PRJ f amp ey FA 3 E 78F1166 esf My Recent Documents e Desktop My Documents My Computer File name 73F1166 esf x Files of type FP5 setup files esf v Cancel Next the device setup dialog box that is opened when Device menu gt Setup command is executed will be opened so make the settings o Eile Programmer Device Help Programmer y wana FPSGUI 2 07 irmvare Version 7 z Board H W V1 FPGA V4 pee inate Serial No MC10340174 iio Standard mode unsecured Mode Standard mode unsecured gt
49. V2 11 PROGRAMMING GUI USAGE INFORMATION 1 2212 You must be careful before start Self test ATTENTION Remove any plugs from Target and Remote connector before starting Any hardware attached to those connectors may be demaged by this test Start Self test Cancel Figure 4 16 Confirmation Before Starting Self Testing Self testing takes about three seconds and the result will be displayed in the action log window and a result dialog box If the message Selftest FAILED is displayed the cause may be a defect in the FP5 so consult a Renesas Electronics sales representative or distributor gt selftest kkkkk CAUTION kkkkk Remove any plugs from Target and Remote Connector before starting Any hardware attached to those connectors may be damaged by this test kkkkk CAUTION kkkkk Target and Remote connector unplugged If yes press s to start the test s FPGA Test PASS Power Supply Test PASS Target and Remote Interface Test PASS Selftest PASSED gt Figure 4 17 Result When Self Testing Program Has Been Completed Normally lt Action Log Window gt r Self test FP5 Self test OK FPGA Test PASS Power Supply Test PASS Target and Remote hterface Test PASS Figure 4 18 Result When Self Testing Program Has Been Completed Normally lt Result Dialog Box gt R20UT0008EJ0600 Rev 6 00 7RENESAS Page 56 of 224 Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE gt selftest
50. a similar function to the programming GUI Device menu gt Verify command Example of usage Command Status Status LED Message display Screen output vrf Display while executing the BUSY Verify Chip Verify Chip command Chip mode Addr 0x000000 10 20 100 Display while executing the BUSY Verify Block Verify Block sss to eee command Block mode Addr 0x000000 10 20 100 or Verify Block 000 10 20 100 Verify Block 001 Verify Block eee Display while executing the BUSY Verify Area Verify Area 000 command Area mode Addr 0x000000 10 20 100 Verify Area 001 Verify Area eee Display after executing the PASS Returns to the display PASS command When completed before executing the Verify operation finished normally command Display after executing the ERROR ERROR xxx ERROR Exxx lt text gt command When terminated XXXXXXXXXXXXXXXX Verify operation finished abnormally R20UT0008EJ0600 Rev 6 00 ae ENESAS Page 164 of 224 Sep 30 2013 PG FP5 V2 11 CONNECTORS AND CABLES 9 CONNECTORS AND CABLES This chapter explains connectors and cables 9 1 Power Supply Connector The power supply connector is laid out on the host interface side of the FPS Power supply connector Figure 9 1 Power Supply Connector lt FP5 Host Interface Side gt Figure 9 2 Power Supply Connector Pin Assignment Note Do not connect an AC adaptor other than the one for the PG FP5
51. a standard mode and a bank mode The modes are switched by using the FP5 Manager Enable Bank mode check box Standard mode Bank mode The same signals as the control buttons NEXT ENTER CANCEL on the command menu of the FP5 unit can be input This mode allows inputting of the bank signals BANKO 2 that indicate the programming area The control buttons NEXT ENTER CANCEL will change their functions to those inputting bank signals so that the command menu displayed on the FP5 message display will be disabled 7 2 Remote Connector Pins The FP5 remote connector pins have the following functions All inputs will become active with an effective level of 50 ms or greater Note that the pin numbers in Table 7 1 are the pin numbers on the FP5 remote connector Table 7 1 Pin Input number Output Output Remote Interface Pin Functions Pin name Function Indicates that the remote interface is connected When the FP5 power is ON the CONN is always valid Active level High level Output Outputs the status indicated by the status LED BUSY Note that the BUSY signal differs from the status LED and does not blink High level Output PASS Outputs the status indicated by the status LED PASS High level Output ERROR Outputs the status indicated by the status LED ERROR High level Input Standard mode CANCEL Same as the CANCEL button function Low level
52. action log window and the flash memory programming mode cannot be entered ERROR E012 Connection or synchronization failed ERROR E014 Connection or synchronization failed Cause 1 The connection between the target system and FP5 may be incorrect Action 1 lt 1 gt For the 78K or V850 connect the SO TxD and SI RxD signals from the FP5 with TxD SO and RxD SD of the target device so that signal input output are consistent FP5 Target device SO TxD _ 7 TxD SO SI RxD aa T RxD SI lt 2 gt The target interface must be isolated from other devices using jumper switches or the like otherwise malfunction may occur Refer to 10 NOTES ON TARGET SYSTEM DESIGN 11 SPECIFICATIONS OF TARGET INTERFACE CIRCUITS or the user s manual of the target device Moreover monitor the actual waveform to confirm that the signal is not distorted and the signal level is correct Cause 2 Connection of pins for other than for the target interface may be incorrect Action 2 Refer to 10 NOTES ON TARGET SYSTEM DESIGN or the user s manual of the target device Cause 3 The PRS file selected in the Parameter and Setting file area on the Target tab in the Device Setup dialog box may not be correct Action 3 Use the PRS file that supports the target device For details on PRS files refer to 1 3 Supported Devices and 4 3 3 15 a lt 3 gt Parameter and Setting file area Cause 4 The clock may not be able to be supplied t
53. ansiano aao naaa aaa aeaaea aa aae aaea aaa 6 CONSM S niied aeiaai a aeaa e Ta EE A aeaa EAE DEEE N a aa RR 10 User REg YalO Mss aaa a RA AA A NAAA a S 14 TOMAN OLOO y meei S a 15 Term replacemenb ennan AA R N Rie edd 16 T OVERVIEW jesse Zessve sagecstasctedeasycegcdet ty dchaveaabeddea ce fenvy eiaa aiai aaan aa a araoa aeaiiai daia arei iaei 17 Tal FERUS erin TEETE A testis ilies deel EEEE A 17 1 2 Writing Q alty evict ised ccseapate anya chee aebaes Spunee cadea Dadtiey cate Ja sb canev onal andes pedaeevadh sua lebdbase geal adeatecndeadetiewseee 17 1 3 Supported DEVICE Simanainen ana EEE enti ieee eatin ie ee 17 1 4 Package Component s c 2 s ecsacceese dea cleesseseessadeadddeaaesssesdencdeeaheuebgaasedadevband enueddeasdceanavenssadeaidecdevecedits 18 1 5 FP5 Systemi OVERViGW sssini ianei ainaani nana iaaa aaas aae a e Ea Aaa Seacdexastesetibbaestevencdasss 18 1 6 Operating ENVIrOnmMe nt sereisas naa aa aa aa e aaa E a EAE EAA a 20 1 6 1 Hardware environmen re 20 1 6 2 Software envir nm et seisena niin aa aaaea ae aada adaa kad aaia a 20 1 7 Hardware Specifications iesistie aa aeaaaee aa iea aaa aaa aaa Eana aeia 21 1 8 AG Adaptors for PG F P Bcsi annin einn aa dvi aa aaa ia aa a a aE aa OAE aa e aae eaa a Eee AE 22 1 9 HCUHEX FIGS ii sa ccece see sce anda ceeeshed ag nendta vi eshc cided padeaee vand Sodensadaney atau aaan aaa aaa aaa aaa aaa 22 1 10 Regulatory Compliance Notices cccccceecceeeeeeeeeeeeeeeeceeeeeceaeee
54. byte flash memory programming mode cannot be entered if power is supplied to the target system before the target cable is connected to the target system Connect the target cable to the target system and then supply power to the target system as prescribed in the connection procedure Cause 8 For the RX family and Super H family the I O signal setting does not match the wiring of the target system Action 8 Check if the settings in the I O Signal Settings area on the Advanced tab in the Device Setup dialog box match the wiring of the target system 3 The following message is displayed in the action log window and normal communication is not performed in flash memory programming mode ERROR Communication failure or timeout Cause 1 The clock or power supply may not be stable Action 1 Confirm that the clock or power is supplied on the target system Cause 2 Communication may not be stable Action 2 lt l gt Confirm that no noise is applied to communication lt 2 gt Confirm that the FPS and target system are properly connected lt 3 gt Confirm that unused pins are properly handled lt 4 gt Confirm that an appropriate clock and communication rate are selected Stable programming may be achieved by setting a lower value for the clock or communication rate R20UTOOO8EJ0600 Rev 6 00 7tENESAS Page 190 of 224 Sep 30 2013 PG FP5 V2 11 MAINTENANCE AND WARRANTY 13 MAINTENANCE AND WARRANTY This chapter
55. check box Halts execution of programming commands if the program file size exceeds the programmable range If this check box is checked and the address range of the downloaded program file exceeds the address range specified in the Operation Mode area on the Standard tab of the Device Setup dialog box executing a Program Verify or R20UTOOO8EJ0600 Rev 6 00 7tENESAS Page 65 of 224 Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE Autoprocedure E P command will cause the error message ERROR E302 Hex file exceeds target device flash range to appear in the Action Log window and execution of the command will halt If this check box is not checked the warning message WARNING HEX file exceeds target device flash range will appear in the Action Log window but execution of the command will continue The default is not to have this box checked Enable Serial Number mode check box Serial Number mode Unique code embedding function is for embedding a unique code in the specified area of a program file that has been read The code is embedded by issuing the serno command with the code and area specified Placing a check mark in this box enables the unique code embedding function For more information on the serno command refer to 8 4 18 serno command Reset option of Run after Disconnect When the Run after Disconnect function in the Command options area of the Device setup dialog Advanced tab is enabled the
56. covers basic maintenance warranty information provisions for repair and the procedures for requesting a repair 13 1 User Registration When you purchase our product be sure to register as a user For user registration refer to User Registration of this user s manual 13 2 Maintenance 1 If dust or dirt collects on this product wipe it off with a dry soft cloth Do not use thinner or other solvents because these chemicals can cause the surface coating to separate 2 When you do not use this product for a long period disconnect it from the power supply host machine and user system 13 3 Warranty 1 This product comes with a one year warranty after purchase Should the product break down or be damaged while you re using it under normal condition based on its user s manual it will be repaired or replaced free of cost 2 However if the following failure or damage occurs to the product under warranty the product will be repaired or replaced at cost a Failure or damage attributable to the misuse or abuse of the product or its use under other abnormal conditions b Failure or damage attributable to improper handling of the product after purchase such as dropping of the product when it is transported or moved c Failure or damage to the product caused by other pieces of equipment connected to it d Failure or damage attributable to fire earthquakes thunderbolts floods or other natural disasters or abno
57. displayed on the FP5 message display during standalone operation E 1100 x Communication within host PC and FlashProgrammer is broken Figure A 1 Error Warning Dialog Box Infor mation e 1 1293 Vale is out of range Figure A 2 Information Dialog Box gt ep ERROR E012 Connection or Synchronisation failed gt Figure A 3 Action Log Window ERROR 012 Synchron failed Figure A 4 Error Message FP5 Message Display R20UTOOO8EJ0600 Rev 6 00 7RENESAS Page 193 of 224 Sep 30 2013 PG FP5 V2 11 MESSAGES A 2 Error Warning Dialog Boxes for Programming GUI Operation E 1100 Message Communication within host PC and FlashProgrammer is broken Description An error occurred in communication between the host machine and the FP5 Check the cable connection and FP5 power supply E 1101 Can t setup communication within host PC and FlashProgrammer Communication between the host machine and FP5 cannot be established Check the cable connection and power supply Moreover check if the USB driver is installed correctly E 1102 Can t find parameter file The specified PR5 file could not be found E 1103 Open parameter file failed The specified PR65 file cannot be opened E 1105 Unable to open last active PRM SET file Using most recent settings Firmware is not valid or version is lower than requirement The PR5 ESF file in the valid programming area cannot b
58. during serial communication with the host machine conf Displays a list of the information stored in the FP5 and changes the number of programming area sections dwnprm Downloads the PR5 file downset Downloads the ESF file fcks Executes the programming GUI File menu gt Checksum command files Displays the information concerning the program file that was downloaded to the FP5 fpga_up Updates the FPGA hex hip Uploads the program file in Intel HEX format Displays a list of available commands with simple descriptions lod Downloads the program file prm Displays the information concerning the PR5 file and ESF file that were downloaded to the FP5 progarea Confirms changes and deletes data in the valid programming areas pwr_off Turns off the FP5 power supply res Resets the FP5 security Confirms the security state that can be set by the FP5 Manager command selftest Executes a self test Sets the unique code for embedding in the program file srec Sets the buzzer Uploads the program file in Motorola HEX format trc Displays the communication information between the FP5 and target device upprm Uploads the PR5 file upset Uploads the ESF file ver Displays the FP5 version and FP5 mode version_up Updates the firmware R20UT0008EJ0600 Rev 6 00 RENESAS Page 129 of 224
59. generate ROM code for flash memory products whose flash memories are pre written by Renesas Electronics DDI file File in which data in multiple flash areas generated by Flash Development Toolkit is integrated Flash Development Toolkit Flash Development Toolkit is a software to write in the flash memory of the Renesas microcontroller with on chip flash For details refer to the following websites http www renesas com fat INI file File in which settings of the programming GUI are stored The file is saved when the programming GUI is closed The file name is FP5 ini OCD security ID Abbreviation of the on chip debug security ID Security function for on chip debugging of the microcontroller R20UTOOO8EJ0600 Rev 6 00 7tENESAS Page 15 of 224 Sep 30 2013 PG FP5 V2 11 PREFACE 2 Term Meaning ID code Function to prohibit read write or erasure from the host The control code on the ROM and ID code are used to enable or disable ID code protect and to determine ID code protect Lock bit Function to prevent data write erasure by mistake Write and erasure can be prohibited locked for each block Signature Information about the microcontroller microcontroller name firmware version FINE Supports FINE of the RX100 and RX200 Notes 1 The program adaptor FA xxxx is a product of Naito Densei Machida Mfg Co Ltd If you have any questions about the FA adaptor board contact Naito Densei Machida Mfg Co
60. gt Status bar Figure 4 4 Main Window The main window consists of the following areas Displayed Items Refer to Menu bar Menu items executable by the programming GUI Toolbar Frequently used commands as buttons Action log window A programming GUI action log Programming parameter window Programming parameter settings Status bar Command progress shown as a color or with a message Hint bar Hints for commands and toolbar R20UT0008EJ0600 Rev 6 00 RENESAS Page 44 of 224 Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE 4 3 Menu Bar The menu bar displays the commands that are available for the programming GUI Some commands may be unavailable when the programming GUI is started for the first time depending on the parameter file PR5 file selected or FP5 Manager setting Also if an HCUHEX file is selected the HCUHEX file is handled as master data so the Program Read Set Security Set Option bytes and Set ID Code commands are unavailable Note During command execution do not execute other commands or terminate the programming GUI 4 3 1 File menu The following pull down menu appears by clicking the File menu This menu includes commands related to program file operation File Programmer Dev Hex Editor Upload from FP5 Checksum Quit Figure 4 5 File Menu 1 Hex Editor command The Hex Editor menu allows you to edit a program file in Intel H
61. is selectable in programming area units That is files can be individually downloaded in each programming area and the area used can also be selected individually This command is used to select a valid programming area from the FP5 s programming areas x When this command is executed the programming area select dialog box is opened and the desired programming area can be selected The number of programming areas that can be selected with this command is the value defined in the Programming Area Setting area on the Target tab of the Device Setup dialog box which is opened by the Setup command in the Device menu Programming area Areato be used 0 bd Cancel Figure 4 15 Programming Area Select Dialog Box The currently selected programming area is displayed in the programming area selection dialog box To change the area select the relevant number from the list box and click the OKI button To check the contents set to each area or to change the division factor see the Target tab of the Device Setup dialog box Clicking the OK button selects the programming area selected in the programming area select dialog box Clicking the Cancel button closes the dialog box without changing the programming area 4 Buzzer command The Buzzer command is used to enable or disable the setting to output the buzzer sound from the FPS main unit When this command is executed the Buzzer command on t
62. judgment as to whether it can be put to practical use is entirely your own responsibility and should be based on evaluation of the device on which it is installed and other experiments 2 Inno event shall Renesas Electronics Corporation be liable for any consequence arising from the use of this product 3 Renesas Electronics Corporation strives to provide workarounds for and correct trouble with products malfunctions with some free and some incurring charges However this does not necessarily mean that Renesas Electronics Corporation guarantees the provision of a workaround or correction under any circumstances 4 This product covered by this document has been developed on the assumption that it will be used for program development and evaluation in laboratories Therefore it does not fall within the scope of applicability of the Electrical Appliance and Material Safety Law and protection against electromagnetic interference when used in Japan 5 Renesas Electronics Corporation cannot predict all possible situations and possible cases of misuse that carry a potential for danger Therefore the warnings in this user s manual and the warning labels attached to this product do not necessarily cover all such possible situations and cases The customer is responsible for correctly and safely using this product 6 The product covered by this document has not been through the process of checking conformance with UL or other safety standards and
63. key will start the upload See below FlashProParameterFile CHECKSUM SUM BA9F0491 EOF R20UTOOO8EJO0600 Rev 6 00 RENESAS Page 148 of 224 Sep 30 2013 PG FP5 V2 11 USAGE COMMUNICATION COMMANDS 8 4 23 upset command Uploads the ESF file Input format upset Description of the function If the ESF file has been downloaded to a valid programming area then executing this command will upload the ESF file Example of usage upset Press return to start continue output After the command is executed pressing the Return key will start the upload See below FlashproCustomerSettingFile CHECKSUM SUM F7D4A9E7 EOF 8 4 24 ver command Displays the FP5 version Input format 1 1 ver Description of the function Displays the FPS version firmware version board hardware version FPGA version and serial number Example of usage Command Screen output Firmware Version Vx xx Board H W Vx FPGA Vx Serial No xxxxxxxxxx Standard mode unsecured 8 4 25 version_up command Updates the firmware Input format version_up Description of the function Upgrades the firmware After this command is executed the firmware file must be downloaded to the FP5 in ASCII format using communications software If using HyperTerminal select Transfer T gt Transfer text file T and then select the firmware file After the firmware version has been updated th
64. new ESF file for the UPD78F1166 Save in FP5_PRJ X My Recent Documents Lg Desktop My Documents My Computer a My Network File name 79F1166 esf z Places Save as type FP5 setup files esf bnd Cancel Parameter file 78F1166 pr5 X New Figure 5 9 Creation of New ESF File lt 5 gt Select 78F1166 pr5 from the Parameter file list If this file is unlisted use New button Parameter file 78F1166 pr5 v New OE a72 D 70F3732 pr5 79F1166 0r5 78F9234 pr5 Figure 5 10 Selecting PR5 File lt 6 gt Type the name of the newly created ESF file and click the Save button File name 78F1166 esf v Save as type FP5 setup files esf ad Figure 5 11 Saving ESF File lt 7 gt Select the program file Click the button in the Object HEX file area Object HEX file D FP5 PRJ sample hex z m Tue Mar 08 07 57 06 2011 JV Erase memory before download Figure 5 12 Object HEX file Area lt 8 gt Select the program file and click the button In this example sample hex is selected R20UT0008EJ0600 Rev 6 00 RENESAS Page 107 of 224 Sep 30 2013 PG FP5 V2 11 EXAMPLE OF OPERATION USING PROGRAMMING GUI Look in E FP5_PRU 0e fe sample hex My Recent Documents Desktop d My Documents My Computer a i UMET File name sample hex Places Files of type S rec He
65. program file that were used last and displays the settings Settings for the items not dimmed can be changed in accordance with the user environment Switch the Target Standard and Advanced tabs for setting Target Standard Advanced Programming Area Setting Division pattern Unknown 4 division 4 MBZDIYV 8 division 2 MB DIV fo Target Settings Parameter file and Setting file DAFPS PRJ rer 166esf e New 78F1166 pr5 Save As Object HEX file D hex sample hex B E3 Tue Mar 08 07 57 06 2011 Unknown V Erase memory before download Information OK Cancel Figure 4 47 Device Setup Dialog Box When the OKI button button common to Target Standard and Advanced tabs is clicked program areas are cleared and PRS files ESF files and program files are downloaded for the FP5 After that the settings made on the Target Standard and Advanced tabs are saved into an ESF file These settings are reflected to the programming parameter window If there are settings which have not been updated the files related to the settings are not downloaded When a program file is downloaded the date and checksum An empty area will be supplemented by FFh when it is downloaded to FPS of that file are displayed in the action log window The checksum is calculated as shown below For details of the arithmetic specificat
66. same action as selecting the Verify command in the Device menu Executes the Set Security command This performs the same action as selecting the Set Security command in the Device menu Executes the Autoprocedure E P command This performs the same action as selecting the Autoprocedure E P command in the Device menu 4 5 Action Log Window This window displays the log of programming GUI actions R20UTOOO8EJ0600 Rev 6 00 7tENESAS Page 98 of 224 Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE gt ep Blank check Chip Not blank Erase needed Erase Program operation finished gt Figure 4 84 About FP5 Dialog Box 4 6 Programming Parameter Window This window displays the programming parameter settings R20UT0008EJ0600 Rev 6 00 RENESAS Page 99 of 224 Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE Programmer FP5GUI V2 07 Firmware V2 07 ProgArea 0 Mode Standard mode unsecured Parameter and Setting file Name 78F1166 pr5 Version 1 00 Name 78F1166 est Date Wed Dec 07 20 57 31 2011 Download file Name sample hex Date Tue Mar 8 07 57 00 2011 Type HEX file Address QO000000 0003FFFF File checksum Arithmetic checksum 16 bit 00000000 0003FFFF 248E Target device Name 78F1166 Port UART Pulse Num 0 Speed 1 000 000 bps Vdd 05 00 Y FP5 Freq Internal Osc Target Multiply 1 00 Mode Chip Range Fi
67. select Update Firmware the Update Firmware dialog box will then be opened File Programmer Device Help Setup host connection Loggine Select Programming area Buzzer Reset Self Test Update Firmware Update FPGA FP5 Manager Figure 3 1 Update Firmware Command Update Firmware 12210 Updating the Firmware will take several minutes ATTENTION The process of updating your firmware must NOT be interrupted Without Firmware this FPS GUI will NOT run properly Install new firmware in your programmer Cancel Figure 3 2 Update Firmware Dialog Box R20UT0008EJ0600 Rev 6 00 RENESAS Page 33 of 224 Sep 30 2013 PG FP5 V2 11 SOFTWARE INSTALLATION 2 Click the OK button to continue firmware update The Open firmware file dialog box is opened Open firmware file Lookin Qj fimwe S y e0 EB 2 f FpS_fw_v200 rec My Recent Documents Desktop rn My Documents My Computer My Network File name fp5_fw_v200 rec s Places Files of type S rec files rec Figure 3 3 Open firmware file Dialog Box Select the firmware file fp5_fw_vxxx rec and then click the Open button Note 1 Do not use FP5 firmware other than the one posted on the website otherwise a defect may occur 2 When a firmware of FP5 updates from V2 00 to V1 xx a serial number of FP5 is erased And FP5 can t operate in USB1 1 In addition the other functions do
68. this command depend on the settings of the Verify after Program Security after Program and Checksum after Program check boxes in the Command options area on the Advanced tab in the Device Setup dialog box For details on these check boxes refer to 4 3 3 15 c lt 2 gt Command options area 4 Verify command For the 78K V850 and RL78 family the Verify command transmits the memory contents program files in the FP5 valid programming area to the target device verifies the data written to the flash memory in the target device and receives the result For the RX family R8C family and SuperH family it reads data from the microcontroller and compares it with the memory content program file in the effective programming area of the FP5 The target area can be set in the Operation Mode area on the Standard tab in the Device Setup dialog box The progress status of this command is displayed as a percentage in the action log window When execution of this command is completed the programming GUI displays the result of command execution in the target device 5 Read command The Read command loads data on the flash memory in the target device and saves it as a file The target range of the flash memory is specified in the Operation Mode area on the Standard tab of the Device Setup dialog box When the View command is executed following this command 4 KB read data is displayed in the log window each time the ENTER ke
69. to the power supply connecter R20UTOOO8EJ0600 Rev 6 00 7tENESAS Page 165 of 224 Sep 30 2013 PG FP5 V2 11 CONNECTORS AND CABLES 9 2 Serial Connector The serial connector 9 pin D SUB male connector is laid out on the host interface side of the FPS Figure 9 4 Serial Connector Pin Assignment Table 9 1 Serial Connector Pin Configuration Note Part number of serial connector 9 pin D SUB male connector 070430MB009G200ZU Suyin Connector Corp 9 2 1 Serial cable The host cable is a standard shielded serial cable crossed approximately 3 meters long The connectors on both sides are 9 pin D SUB female connectors The following shows the connection OONDARWDNDY OONDABRWDNDY Figure 9 5 Serial Cable Connection R20UTOOO8EJ0600 Rev 6 00 7tENESAS Page 166 of 224 Sep 30 2013 PG FP5 V2 11 CONNECTORS AND CABLES 9 3 USB Connector The mini B type USB connector is laid out on the host interface side of the FP5 USB connector Figure 9 6 USB Connector lt FP5 Host Interface Side gt Part number of mini B USB connector UX60A MB S5ST made by Hirose Electric Co Ltd 9 3 1 USB cable The USB cable is approximately 2 meters long The cable is equipped with a USB mini B type connector and USB type A connector a O a ie USB mini B type USB type A Figure 9 7 USB Cable Outline R20UT0008EJ0600 Rev 6 00 RENESAS Page 167 of 224 Sep 30 2013 PG FP5 V2 11 CONNECTORS AND C
70. used follows the value set in the PRS file On Target check box Checked Command options area Blank check before Erase Selected Flash options area Sep 30 2013 PG FP5 V2 11 Not used lt 13 gt lt 14 gt Click the OK button in the Device Setup dialog box The programming GUI loads the PRS file ESF file and program file to the FP5 When setting is completed EXAMPLE OF OPERATION USING PROGRAMMING GUI the following window will be displayed Setting of the programming environment is then finished File Programmer Device Help la x MC10340174 Standard mode unsecured FP5 GUI Firmware Prog Area Mode Programmer V2 07 V2 07 0 Standard mode unsecured gt aee ris Command not found enter hlp for help Parameter and Setting file gt downprm Name 78F1166 pr5 Now loading Version 1 00 Name 78F1166 est Date Thu Dec 08 09 47 30 2011 Download file Name sample hex fname sample hex ftime 2011 03 08 07 57 Date Preparing storage S Now loading Address Address range 0x00000000 to Ox0003FFFF CRC32 OxCB6EA4B2 PASS Tue Mar 8 07 57 00 2011 Type HEX file 00000000 0003FFFF gt File checksum Target device Name 78F1166 Pott UART Pulse Num 0 Speed 1 000 000 bps Vdd 05 00 Y FP5 Freq Internal Osc Target Multiply 00 Mode Figure 5 16 Downloading of PR5 File ESF File and Program File 7 Execution of
71. using the AC adaptor lt 3 gt Press the POWERI button on the FP5 to turn on power Do not connect the program adaptor target device before turning on power Confirm that the POWER LED on the FPS is off and that Commands gt is displayed in the message display indicating that the FP5 is ready for operation If not the cause may be a defect in the FP5 so consult a Renesas Electronics sales representative or distributor 4 Connection of target system Be sure to turn on the FP5 power before connecting the target system lt 1 gt Connect the FP5 GND connector to the target system using a GND cable Note The FP5 and target system may be damaged if the voltage between the FP5 GND and the target system GND is different Use the GND cable to match the voltage before connecting the target cable lt 2 gt Connect the FP5 target connector to the target system using the target cable Note Connect the target system before supplying Vop Vpp2 power from the target system R20UTOOO8EJ0600 Rev 6 00 RENESAS Page 102 of 224 Sep 30 2013 PG FP5 V2 11 EXAMPLE OF OPERATION USING PROGRAMMING GUI 5 Startup of programming GUI lt 1 gt Click the Start menu All Programs point to Renesas Electronics Utilities Programming Tools and then select PG FP5 Vx xx of PG FP5 Vx xx to start the Programming GUI The valid communication modes are automatically detected in the order of the USB and then the seria
72. which file PRS or ESF is to be saved is selectable in programming area units That is files can be individually downloaded in each programming area and the area used can also be selected individually In this area the factor for dividing the programming area can be selected If the division factor is changed data on the programming area map is cleared In addition the valid programming area can be selected If the valid programming area is changed the focused area in the Programming area map area is also changed By default the division factor is set to 4 and programming area 0 is selected M Programming Area Setting Division pattern 2 division Area0 10MB Areal 6MB 0 4 division 4 MB DIV 8 division 2 MB DIV Figure 4 50 Programming Area Setting Area Division pattern radio buttons 2 division Area0 10MB Areal 6MB The division factor is set to 2 10 MB area and 6 MB 4 division 4 MB DIV The division factor is set to 4 4 MB per area 8 division 2 MB DIV The division factor is set to 8 2 MB per area Programming Area Setting list If 2 division Area0 1OMB Areal 6MB is selected the valid programming area is selected from areas 0 to 1 If 4 division 4 MB DIV is selected the valid programming area is selected from areas 0 to 3 If 8 division 2 MB DIV is selected the valid programming area is selected from areas 0 to 7 R20UTOOO8EJ0600 Rev 6 00 7tENESAS
73. 0 Rev 6 00 RENESAS Page 182 of 224 Sep 30 2013 PG FP5 V2 11 NOTES ON TARGET SYSTEM DESIGN lt 11 gt R8C family Target connecter 14 pin type Target device 7 SO TxD 13 RESET Jumper Notes 1 These pins do not need to be shorted when using FP5 Short them when using E1 E20 or E8a together 2 Set the R value to 4 7 KQ or higher when using E1 E20 or E8a together 3 Set the R value to 4 7 kQ 10 when using E1 E20 or E8a together Figure 10 11 Circuit Example for R8C Family lt 12 gt RX100 RX200 series FINE Target connecter 14pin type Target device VDD VDD VDD 7 SO TxD 13 RESET Jumper St cc Figure 10 12Circuit Example for RX100 RX200 series FINE Note Set the R value of FINED to 4 7 KQ when using E1 or E20 R20UTOOO8EJ0600 Rev 6 00 7tENESAS Page 183 of 224 Sep 30 2013 PG FP5 V2 11 SPECIFICATIONS OF TARGET INTERFACE CIRCUITS 11 SPECIFICATIONS OF TARGET INTERFACE CIRCUITS This chapter describes the target interface specifications signals connected to the FP5 and the target system by using equivalent circuits 11 1 SO TxD RESET and SCK When Vopp Vpnz are supplied from the target system for target device programming the FPS internal voltage regulator is protected so that user Vpp Von2 will not affect the SO TxD RESETand SCK signal lines In either case these signal lines output C MOS level signals When a 78KOR 78KOS Kx1 microcontrollers or the
74. 00 End so7FFF lt 4 gt gt option J Show data Cancel b When a V850 or RL78 family product with data flash memory is selected R20UT0008EJ0600 Rev 6 00 2tENESAS Page 48 of 224 Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE File Upload xi lt l gt gt Upload program file from FPS HEX file D FPS_PR3 sample_rx hex Save as lt 2 gt C Upload Parameter Setting files from FPS Parameter file D FP5_PRIJ RSF562TAA4 prS Setting file D FPS_PRIIRSFSEZTAA est JV User mat Range Hex Start FFFco000 End FFFFFFFF lt 3 gt V Data mat Range Hex Start 100000 End 107FFF JV UB mat Range Hex Start FF7Fco00 End FF7FFFFF lt 4 gt Option J Show data Cancel c When the RX family R8C family or SuperH family is selected Figure 4 9 Upload from FP5 Dialog Box in the HEX Editor lt 1 gt Upload program file from FP5 button The storage location and file name of the program file are specified in the HEX file box In order to change the file location or name click the Save as button and make the changes lt 2 gt Upload Parameter Setting files from FP5 button The Parameter file box specifies the storage location of the PRS file The Setting file box specifies the ESF file storage location and file name In order to change the file locations click the Save as button and make the changes The parameter file names cannot be chan
75. 006 Command Command aborted The Read command has been canceled aborted 008 Parameter Error PR5 file Error The parameter file may be damaged 011 Read Sig failed Check connection Addr Range err Device signature reading failed Connection check Address range error Check if the correct device is selected The FP5 cannot establish connection to the target device The cause may be a wrong connection between the device and the FP5 bad socket contacts or the oscillator not operating The address given in the command exceeds the device s address range RDY detect fail Device does not send RDY signal Wrong connection between device and FP5 or bad socket contacts Freq set failed Setting the Oscillator frequency failed Check if the oscillator frequency is allowed If yes contact Renesas Electronics support desk Baudrt set fail Setting the communication baud rate failed Unsupported baud rate specified Please consult the device manual ID coe chk err ID code does not match Set the security ID specified for the target device Inv Sig ID Invalid signature ID Check if the correct device is selected Inv Sig Code Invalid signature code Check if the correct device is selected Inv Sig func Inv Sig addr Invalid signature function Invalid signature address Check if the correct device is selected Check if the correct device is
76. 0UTOOO8EJ0600 Rev 6 00 Sep 30 2013 7tENESAS Page 117 of 224 PG FP5 V2 11 Table 6 3 Main Menu Option Setting gt Option Setting Menu 1 Submenu BLN before ERS USAGE IN STANDALONE MODE Description Displays the setting of the Blank check before Erase check box in the Command options area on the Advanced tab in the Device Setup dialog box on Selected off Not selected VRF after PRG Displays the setting of the Verify after Program check box in the Command options area on the Advanced tab in the Device Setup dialog box on Selected off Not selected SCF after PRG Displays the setting of the Security after Program check box in the Command options area on the Advanced tab in the Device Setup dialog box on Selected off Not selected SUM after PRG Displays the setting of the Checksum after Program check box in the Command options area on the Advanced tab in the Device Setup dialog box on Selected off Not selected OPB after PRG IDC after PRG Displays the setting of the Set Option bytes after Program check box in the Command options area on the Advanced tab in the Device Setup dialog box on Selected off Not selected Displays the setting of the Set OCD Security ID after Program check box in the Command options area on the Advanced tab in the Device Setup dialog box on Selected off Not selected Run after Disc Dis
77. 1231 0x0210 0x3273 0x2252 0x52B5 0x4294 0x72F7 0x62D6 0x9339 0x8318 0xB37B 0xA35A 0xD3BD 0xC39C 0xF3FF 0xE3DE 0x2462 0x3443 0x0420 0x1401 0x64E6 0x74C7 0x44A4 0x5485 OxA56A 0xB54B 0x8528 0x9509 0OxE5EE OxF5CF 0xC5AC 0xD58D 0x3653 0x2672 0x1611 0x0630 0x76D7 0Ox66F6 0x5695 0x46B4 OxB75B OXA77A 0x9719 0x8738 OxF7DF OXE7FE 0xD79D 0xC7BC 0x48C4 0x58E5 0x6886 0x78A7 0x0840 0x1861 0x2802 0x3823 OxC9CC OxD9ED 0OxE98E 0OxF9AF 0x8948 0x9969 OxA90A 0xB92B Ox5AF5 0x4AD4 0x7AB7 0x6A96 0x1A71 0x0A50 0x3A33 0x2A12 OxDBFD 0xCBDC 0xFBBF 0xEB9E 0x9B79 0x8B58 0xBB3B 0xAB1A O0x6CA6 0x7C87 0x4CE4 0x5CC5 0x2C22 0x3C03 0x0C60 0x1C41 OxEDAE OxFD8F 0xCDEC 0xDDCD 0xAD2A 0xBDOB 0x8D68 0x9D49 Ox7E97 0x6EB6 0x5ED5 0x4EF4 0x3E13 0x2E32 0x1E51 0x0E70 OxFF9F OxEFBE OxDFDD OxCFFC 0xBF1B 0xAF3A 0x9F59 0x8F78 0x9188 0x81A9 0xB1CA 0xA1LEB 0xD10C 0xC12D OxF14E 0xE16F 0x1080 0x00A1 0x30C2 0x20E3 0x5004 0x4025 0x7046 0x6067 0x83B9 0x9398 OxA3FB 0xB3DA 0xC33D 0xD31C 0xE37F OxF35E 0x02B1 0x1290 0x22F3 0x32D2 0x4235 0x5214 0x6277 0x7256 OxB5EA 0xA5CB 0x95A8 0x8589 OxF56E 0OxE54F 0xD52C 0xC50D 0x34E2 0x24C3 0x14A0 0x0481 0x7466 0x6447 0x5424 0x4405 OxA7DB OXB7FA 0x8799 0x97B8 OxXE75F 0OxF77E 0xC71D 0xD73C 0x26D3 0x36F2 0x0691 0x16B0 0x6657 0x7676 0x4615 0x5634 OxD94C OxC96D OxF90E 0OxE92F 0x99C8 0x89E9 0OxB98A OxXA9AB 0x5844 0x4865 0x7806 0x6827 0x18C0 0x08E1 0x3882 0x2
78. 15 a lt 3 gt button for the steps that follow R20UTO008EJO600 Rev 6 00 RENESAS Page 42 of 224 Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE Look in jo FP5_PRJ gt 78F1166 esf My Recent Documents Desktop My Documents My Computer My Network File name 79F 1166 esf 7 laces Files of type FPS setup files esf Cancel R20UT0008EJ0600 Rev 6 00 RENESAS Page 43 of 224 Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE 4 Next the device setup dialog box that is opened when Device menu gt Setup command is executed will be opened so make the settings Refer to 4 3 3 15 Setup for the steps that follow FPS 5 x Eile Programmer Device Help lt 4 gt Programmer parameter window Programmer BS e 2 09 FP5GUI V2 0 irmvare Version ii o V207 Board H W Vi FPGA V4 Tia ie MC10340174 lt 2 gt Toolbar hds unsecured Mode Standard mode unsecured Parameter and Setting file Name 78F1166 pr5 Version 1 00 Name 78F1166 est Date Wed Dec 07 20 57 31 2011 Download file Name sample hex i i Date Tue Mar 8 07 57 00 2011 lt 3 gt Action log window Tee Eye Address Q0000000 0003FFFF File checksum Arithmetic checksum 16 bit 00000000 0003FFFF 248E gt Target device Name 78F1166 Port UART Pulse Num 0 Speed 1 000 000 bps Vdd 05 00 V FP5 Freq Internal Osc Target Multiply 00 Mode lt 5
79. 2 Programmer menu Clicking the Programmer menu displays the following pull down menu This menu includes commands related to FP5 settings File Programmer Device Help 1 Setup host connection 2 m A 3 elect Programming area 4 7 Buzzer 5 Reset 6 gt Self Test 7 Update Firmware 8 Update FPGA 9 FP5 Manager Figure 4 12 Programmer Menu 1 Setup host connection command Running the Setup host connection command opens the Host Connection dialog box The channel for communication between the FP5 and the host machine can be selected and configured in this dialog box Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE Host Connection Serial Port Baud Figure 4 13 Host Connection Dialog Box USB can be selected as the communication channel if the USB interface is supported in the PC used When selecting Serial select the COM port and baud rate from the drop down list boxes COM ports that are recognized by the host machine are displayed in the Port list Up to 256 ports can be recognized When the button is clicked software tries to establish a connection between the FP5 and the host machine using the selected communication channels Clicking the Cancel button closes the window without making any changes 2 Logging command The Logging command saves information displayed in the action log window in the log file When this command is
80. 2 1 6 GND cable To reinforce the GND use a GND cable to connect the FP5 GND connector and the signal GND of the target system or program adaptor For details on the GND cable specifications refer to 9 CONNECTORS AND CABLES Note The FP5 and target system may be damaged if the voltage between the FP5 GND and the target system GND is different Use the GND cable to match the voltage before connecting the target cable 2 1 7 Target system The target system must be equipped with a device interface that complies with the target cable specifications For details on the specifications refer to 9 CONNECTORS AND CABLES 10 NOTES ON TARGET SYSTEM DESIGN and 11 SPECIFICATIONS OF TARGET INTERFACE CIRCUITS 2 1 8 Program adaptor The FP5 supports off board programming through which programs are written via a program adaptor without mounting the target device onto the target system R20UTOOO8EJ0600 Rev 6 00 7tENESAS Page 26 of 224 Sep 30 2013 PG FP5 V2 11 HARDWARE CONFIGURATION 2 2 Names and Functions on Main Unit This section describes the names and functions on the FP5 main unit 2 2 1 FP5 control panel Indicators and buttons are laid out on the FP5 top RENESAS O POWER LED POWERI button Message display Status LEDs Control buttons Figure 2 2 FP5 Top View lt Control Panel gt 1 Indicators e POWER LED LED that displays the FP5 power status A red LED is turned on when the FP5 is ON and is turne
81. 2CENESAS C D o mS 7 lt 3 v PG FP5 V2 11 Flash Memory Programmer User s Manual All information contained in these materials including products and product specifications represents information on the product at the time of publication and is subject to change by Renesas Electronics Corporation without notice Please review the latest information published by Renesas Electronics Corporation through various means including the Renesas Electronics Corporation website http www renesas com Renesas Electronics Rev 6 00 Sep 2013 www renesas com 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 a
82. 4 Sep 30 2013 PG FP5 V2 11 USAGE COMMUNICATION COMMANDS 8 5 14 read command Executes Read command Input format read hex srec lt start_address gt lt end_address gt Description of the function Executes a similar function to the programming GUI Device menu gt Read command hex Executes Read with the Intel HEX format srec Executes Read with the Motorola HEX format If neither hex nor srec is designated then the Read will be executed in hexadecimal format start_address Designates the starting address with a hexadecimal number end_address Designates the ending address with a hexadecimal number If neither the start_address nor end_address options are used then Read will be executed for the range set in the Operation mode Use as the start address and end address the start address of an arbitrary block and the end address of an arbitrary block of the target device Example of usage Command Status Status LED Message display Screen output read Display after executing the BUSY Read Press return to start continue command output Display after pressing the BUSY Read See below Return key Addr 0x000000 Display after Read ends PASS Returns to the display PASS When completed normally before executing the Read operation finished command Display after Read ends ERROR ERROR xxx ERROR Exxx lt text gt When terminated XXXXXXXXXXXXXXXX abnormall
83. 4 in 4 MB units or divided by 8 in 2 MB units e Device specific parameters required for programming can be saved in the FP5 internal flash memory by using the parameter file PR5 file together with programming settings ESF file e Multiple program files PRS files and ESF files can be saved e Supports CSI CSI HS UART I C and PORT as target device interfaces e Can supply Von and clocks to the target device e Supports USB interface and serial interface RS 232C as a host interface e Supports self testing function 1 2 Writing Quality Thoroughly confirm verify and evaluate the following points before using the FP5 in order to improve the writing quality e Design circuits as described in the user s manual for the target device and the FP5 e Use the device and the FP5 as described in the user s manual for each product e The power supplied to the target device is stable 1 3 Supported Devices The FP5 supports on chip 2 power supply flash memory microcontrollers and on chip single power supply flash memory microcontrollers FP5 parameter files PRS files corresponding to the supported devices are posted on the following website URLs e Except for Europe area http www renesas com pg_fp5 e For Europe area http www renesas eu update gt Section PG FP5 EE R20UTOOO8EJO0600 Rev 6 00 RENESAS Page 17 of 224 Sep 30 2013 PG FP5 V2 11 OVERVIEW 1 4 Package Components The package of this product
84. 8 bits e Parity none e Stop bit 1 bit e Flow control hardware The transfer speed is set to 9 600 bps by default but it can be changed For details on the serial connector specifications refer to 9 CONNECTORS AND CABLES 3 USB connector Communication is established by using a USB cable to connect the host machine USB port and the FPS USB connector mini B type This connector conforms with USB 2 0 standards For details on the USB connector specifications refer to 9 CONNECTORS AND CABLES 4 Target connector Connect the target connector to the target system using the target cable for on board programming Connect the target connector to the program adaptor using the target cable for off board programming For details on the target connector specifications refer to 9 CONNECTORS AND CABLES 5 GND connector To reinforce the GND connect the FP5 GND connector and the signal GND of the target system or program adaptor using a GND cable For details on the GND connector specifications refer to 9 CONNECTORS AND CABLES Note The FP5 and target system may be damaged if the voltage between the FP5 GND and the target system GND is different Use the GND cable to match the voltage before connecting the target cable 6 Remote connector The FP5 can be remote controlled by connecting the remote connector and external control device For details on the Remote operation refer to 7 USAGE THE REMOTE CONNECTOR 9 CONNECTORS AND CABLES
85. 852 2886 9022 9044 Renesas Electronics Taiwan Co Ltd 13F No 363 Fu Shing North Road Taipei Taiwan Tel 886 2 81 75 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 and Renesas Solutions Corp Colophon 1 3 PG FP5 V2 11 CENESAS Renesas Electronics Corporation R20UTO008EJ0600
86. 8A3 OxCB7D 0xDB5C 0xEB3F OxFB1E 0x8BF9 0x9BD8 0XABBB 0xBB9A 0x4A75 0x5A54 0x6A37 0x7A16 OxXOAF1 0x1AD0 0x2AB3 0x3A92 OxFD2E OxXEDOF 0xDD6C 0xCD4D 0xBDAA 0xAD8B 0x9DE8 0x8DC9 0x7C26 0x6C07 0x5C64 0x4C45 0x3CA2 0x2C83 0x1CE0 0x0CC1 OxEFI1F OxFF3E 0xCF5D OxDF7C 0OxAF9B OXBFBA 0x8FD9 Ox9FF8 Ox6E17 0x7E36 0x4E55 0x5E74 0x2E93 0x3EB2 0x0ED1 0x1EFO uintl6_t CalcMemoryCRC16 uint32_t address uint32_t length uint32_t i rd_ptr uintl6_t crc_accum uint8_t byte data 4 crc_accum 0x0000 Init Pattern for i 0 rd_ptr 0 i lt length i Check flash read buffer and fill if needed if rd_ptr 0 Memory_Read address 4 data rd_ptr 4 addresst 4 byte crc_accum gt gt 8 data rd_ptr erc_accum crc_accum lt lt 8 CRC16_Tab byte return crc_accum Figure B 5 16 bit CRC Calculation Specifications R20UTOOO8EJ0600 Rev 6 00 Sep 30 2013 RENES Page 206 of 224 PG FP5 V2 11 ELECTRICAL SPECIFICATIONS OF TARGET INTERFACE APPENDIX C ELECTRICAL SPECIFICATIONS OF TARGET INTERFACE This chapter explains the electrical specifications of target interface C 1 Absolute Maximum Ratings Ts 0 to 40 C Input supply voltage 0 5 to 6 8 Vop2 C Output supply voltage 0 5 to 13 Input voltage 0 5 to V00 0 5 VN T FLMD1 Output current 0 3 V lt Vo lt Vo0 0 5 V RESET SI RxD SO TxD SCK H S CLK PTA Operating a
87. ABLES 9 4 Target Connector The target connector 15 pin HD SUB female connector is laid out on the target connector side of the FPS Figure 9 9 Target Connector 15 Pin HD SUB Female Connector Pin Assignment Table 9 2 Target Connector Pin Configuration Target Connector Signal Name 1 SO TxD 2 SI RxD Note Part number of target connector 15 pin HD SUB female connector 070431FB015S200ZU Suyin Connector Corp R20UTOOO8EJ0600 Rev 6 00 7tENESAS Page 168 of 224 Sep 30 2013 PG FP5 V2 11 CONNECTORS AND CABLES 9 4 1 Target cable 16 pin type The target cable 16 pin type is a standard shielded cable approximately 42 centimeters long The target cable is equipped with a 15 pin HD SUB male connector and a 16 pin 2 54 mm pitch multipurpose female connector 15 pin HD SUB male connector 16 pin 2 54 mm pitch multipurpose female connector Figure 9 10 Target Cable 16 pin type Outline Figure 9 12 16 Pin 2 54 mm Pitch Multipurpose Female Connector Outline of Target Cable 16 pin type View from Socket Side Table 9 3 Target Connector 16 pin type Pin Configuration Signal Name 15 Pin HD SUB Male Connector 16 Pin 2 54 mm Pitch Multipurpose Female Connector SO TxD VDENete 1 RFU 1 Note 1 Not used Not used Notes 1 Reserved pins Leave these pins open 2 Left open in the target cable 16 pin type 3 No 9 pin of 15 pin HD SUB connector is not connect
88. ANGAL MOMS cxee sosiesci cid etieeissbaaseaten lt bostdedacscavadaleuaeed a a a a E 215 D 3 2 Bank MOdC w cece ccc ecccc cece cece ceceeececeee cece ceeeeuceaueeseeeeeuseauaaeeseeseeeuueauaesesseeeeseuaeaueeseeeeeeeeananeess 217 D323 Simple Moderni iiaa ebaccdastedeses seed teases a aai aa aaa 219 R20UT0008EJ0600 Rev 6 00 RENESAS Page 13 of 224 Sep 30 2013 PG FP5 V2 11 PREFACE User Registration For more information about user registration please contact your local distributor R20UT0008EJ0600 Rev 6 00 RENESAS Page 14 of 224 Sep 30 2013 PG FP5 V2 11 PREFACE Terminology The meanings of the terms used in this manual are as follows Term Meaning FP5 Abbreviation of the flash memory programmer PG FP5 Programming GUI Windows application to operate FP5 using programming GUI Target device Renesas Electronics on chip flash memory microcontroller Target system User designed board on which target device is mounted Program adaptor PR8 file Abbreviation of the parameter file for the PG FP5 The parameter file has parameter information required to write in the flash memory of the target microcontroller The extension of the file is pr5 Do not change the data in the file If the file is changed operation of the FP5 is not guaranteed ESF file Abbreviation of the setting file for the PG FP5 The setting file stores information required for writing For the FP5 settings regarding the writing environment such as tar
89. Autoprocedure E P command Execute the Autoprocedure E P command in the Device menu R20UT0008EJ0600 Rev 6 00 Sep 30 2013 2tENESAS Page 110 of 224 PG FP5 V2 11 EXAMPLE OF OPERATION USING PROGRAMMING GUI Toolbar File Programmer Device Help NI Blank check Erase Program Verify Read Set Security Checksum Autoprocedure EP on bytes D Security ID Gonnect Signature read Get Flash options Preparing stc Setup Figure 5 17 Autoprocedure E P Command When the Autoprocedure E P command is executed the Blank check Erase if the target area is not blank and Program commands are executed in that order for the UPD78F1166 Note Turn off power connect the target system to be newly written to and execute the Autoprocedure E P command after power is supplied before writing to another target system If execution of the Autoprocedure E P command is normally completed Erase Program operation finished is displayed in the action log window R20UT0008EJ0600 Rev 6 00 RENESAS Page 111 of 224 Sep 30 2013 PG FP5 V2 11 EXAMPLE OF OPERATION USING PROGRAMMING GUI ees aloix File Programmer Device Help m Programmer irnvare Version V2 07 Lien on Board H W vi FPGA V4 ProgArea 0 zoria l ae Prepon 4 Mode Standard mode unsecured AAEE Parameter and Setting file Name 78F1166 pr5 PASS Version 1 00 gt Name 78F1166 est gt downset
90. CRC Calculation Specifications R20UTOOO8EJ0600 Rev 6 00 7tENESAS Page 70 of 224 Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE lt RX family R8C family SuperH family gt Method 32 bit arithmetic addition mode Range Result of calculating all the areas user mat data mat user boot selected in the Operation Mode area on the Standard tab of the Device Setup dialog box gt sum User mat 0x03FCO0000 Data mat 0x00444588 User Boot mat 0x003FCO00 Total 0x04800588 PASS Checksum operation finished gt Figure 4 44 Action Log Window After Checksum Command Execution RX Family R8C Family SuperH Family Note With the 32 bit arithmetic addition mode the lower 8 digits of the result to which a value is added from OOh in 1 byte units are displayed 8 Autoprocedure E P command The Autoprocedure E P command executes the Erase and Program commands in succession Exiting from the flash memory programming mode is not possible between the Erase and Program commands For more information refer to the sections on the Erase and Program commands gt ep Blank check Chip PASS Erase skipped Program Chip 10 20 30 40 50 60 70 80 90 100 PASS Erase Program operation finished gt Figure 4 45 Action Log Window After Autoprocedure E P Command Execution 9 Set Option bytes command The Set Option bytes command specifies the settings
91. Data input data display area Move cursor in right direction Move cursor in left direction Move cursor in up direction Move cursor in down direction Tab Move cursor to next input field address 1 If any changes have been made to the file Save and Save As in the File menu in the HEX Editor main window become available for saving the modified data The Save As display varies whether or not the downloaded PRS file is for the target device that supports data flash Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE Save in O FP5_PRJ vl c E E sample hex Save as type HEX Files HEX 7 Cancel Intel HEX C Motorola SREC Start address End address sample hex Save as type HEX Files HEX Cancel Intel HEX C Motorola SREC MV Code flash area I Data flash area Start address ka End address b The downloaded PR5 file is for a target device that supports data flash Figure 4 8 Save As Dialog Box of HEX Editor Besides the file name and folder location a start address and an end address for the new file can be selected in the Save As dialog box The original start address and end address are displayed by default Select the file radio button for the format in which to save the data Select the same format as that of the loaded file Use of the saved file with other tool products is not supported R20UT0008EJ0600 Rev 6 00 RENESAS Pag
92. ER button CANCEL ENTER NEXT START VRF CLEAR R20UTOOO8EJO0600 Rev 6 00 RENESAS Page 215 of 224 Sep 30 2013 PG FP5 V2 11 ELECTRICAL SPECIFICATIONS OF REMOTE INTERFACE 2 trinsu Time from the fall of the VRF START 50 ms or ENTER signal until the rise of the BUSY signal tPBuin Time from the fall of the BUSY signal until the CLEAR signal can be input tPcLPE Time from the fall of the CLEAR signal until the fall of the PASS or ERROR signal trPein Time from the fall of the PASS or ERROR signal until the VRF START or ENTER signal can be input TPCLPE R20UTOOO8EJ0600 Rev 6 00 RENESAS Page 216 of 224 Sep 30 2013 PG FP5 V2 11 ELECTRICAL SPECIFICATIONS OF REMOTE INTERFACE D 3 2 Bank mode Rise time lo 8mA Fall time lo 8mA Low level width of input signal tepocn Time from switching on the FP5 POWER button until the rise of the CONN signal tecnpo Time from switching off the FP5 POWER button until the fall of the CONN signal FP5 POWER button Sep 30 2013 PG FP5 V2 11 ELECTRICAL SPECIFICATIONS OF REMOTE INTERFACE 2 tPBaIn Time from the fall of the BANK signal until the VRF or START signal can be input Time from the fall of the VRF START or ENTER signal until the rise of the BUSY signal tesuin Time from the fall of the BUSY signal until the CLEAR signal can be input tecLre Time from the fall of the CLEAR signal until the fall of the PASS or ERROR signal teresa Time
93. EX format or Motorola HEX format When this command is executed a program file select dialog box is opened and the file to be edited can be specified Note that HCUHEX files DDI files and program files for the RX family R8C family SuperH family cannot be loaded in this dialog box Look in FP5_PRJ v a e E A My Recent Documents Desktop My Documents 9 My Computer S a ee File name aed aces Files of type S tec Hex files rec s hex M Cancel Figure 4 6 Program File Select Dialog Box S rec Hex files rec s hex or All files may be selected from the Files of types list box After selecting a file to be opened the file selected in the HEX Editor main window is loaded At this time whether the file is of the Intel HEX format or Motorola HEX format is automatically recognized When loading is finished the HEX Editor main window is opened R20UTOOO8EJ0600 Rev 6 00 7tENESAS Page 45 of 224 Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE Hf Editor C HEX sample_hex File Go to address 0 1 2 3 4 5 6 7 8 9 4 B C D E F 0123456789ABCDEF g1 00 81 00 81 00 81 00 81 00 81 00 81 00 81 00 81 00 81 00 81 00 81 00 81 00 81 00 81 00 81 00 81 00 81 00 81 00 81 81 00 81 00 81 00 81 00 81 00 81 00 81 00 81 1 00 81 00 81 00 FF FF FF FF FF FF FF FF FF F FF FF FF FF FF FF FF Sn FF FF FF FF FF FF FF F FF FF FF FF FF FF FF Sn FF FF FF FF FF FF FF F EERCCCCCCCCERUNI FF F
94. F FF FF FF FF FF F LT 00 7B 1E 10 00 FC 99 1 Aiit i c il A2 00 13 Al 04 13 Al 3 Ci WMD ee t 97 86 C6 EA FF FE AD 3 Em EEDE DES D 01 13 2F 00 13 22 FF 8 71 7A 28 31 05 E2 02 A FF FF FF FF FF FF FF FF FF AA M got Mot az 1 JE EFt 00 00 FF FF FF FF 1C 05 F6 13 FA FF BOROORUANONINNI 8 F F F F A 1 1 2 F F Address display area Data display area ASCII display area ID Tag area Figure 4 7 HEX Editor Main Window The displayed file contents can be modified by placing the pointer in the data display area in the HEX Editor main window Data input via the keyboard is accepted for all shown memory locations The ID Tag area is the area used with the target device supporting data flash Only area indicating 0 or can be edited in this area Input 0 or 1 for the ID Tag area If 0 is input then 00000000h will be set and if 1 is input FFFFFFFFh will be used as the ID Tag For details on data flash and ID tags refer to the user s manual of the target device The HEX Editor only accepts hexadecimal data i e numbers 0 to 9 and letters Ato F All other data will be rejected The ASCII representation if any is shown in the ASCII display area This area is for reference only so no data can be input Use the scroll bar to move another address range into the visible area of the HEX Editor The following keys can be input using the keyboard Table 4 1 Key Functions That Can Be Input in HEX Editor Window Function
95. FSW Block start FFFFFCOO Show Address ID Code l FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF c When the RX100 series is selected Figure 4 69 Flash options Area R20UT0008EJ0600 Rev 6 00 Sep 30 2013 RENESAS Page 92 of 224 PG FP5 V2 11 PROGRAMMING GUI USAGE lt 4 gt Set Security command options area The security flag settings block protection settings and reset vector handling function setting can be set in this area When the Set Security command is executed the settings in this area will be reflected in the target device Set Security command options Security flag settings Disable Chip Erase Disable Block Erase Disable Program IV Disable Read Disable Boot block cluster reprogramming Block protection settings FSW Block end 511 FSW Block start Boot Block end Show Address Reset vector setting Figure 4 70 Security flag settings Area lt 5 gt Security flag settings area The security flag settings can be selected in this area Security flag settings Disable Chip Erase Disable Block Erase Disable Program JV Disable Read Disable Boot block cluster reprogramming Figure 4 71 Security flag settings Area Disable Chip Erase check box If the Set Security command is executed with this check box selected the Erase command will be disabled for the entire area of the flash memory in the target device W
96. GRAMMING GUI USAGE Host Connection USB Serial Port fc M1 Baud 115200 Y Cancel Figure 4 28 Host Connection Dialog Box The main window is opened Board H W V1 FPGA Vx is displayed in the action log window thus the version can be checked Eile Programmer Device Help Programmer FPSGUI 2 07 rs jon it 4 Board H W V1 FPGA V4 B A Serial No MCIO340174 Mode Standard mod d Standard mode unsecured h Hee gt Parameter and Setting file 78F1166 pr5 1 00 78F1166 esf Wed Dec 07 20 57 31 2011 Download file sample hex Tue Mar 8 07 57 00 2011 HEX file 00000000 0003FFFF File checksum Target device 78F1166 UART O 1 000 000 bps 05 00 V FP5 Internal Osc Target o0 Figure 4 29 Version Confirmation After FPGA Update Is Finished 9 FP5 Manager command The FP5 Manager command sets the FP5 management functions These functions include the following The password function the upload prohibit function the device setup prohibit function the bank mode enable function the simple mode enable function the checksum comparison function the program file size monitoring function unique code embedding function and the reset terminal property switching function When the FP5 Manager command is executed the following dialog will be opened Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE If a password is not registered the dialo
97. Get Flash options Setup Figure 4 38 Device Menu Table 4 3 Device Menu composition for microcontroller Command 78K V850 RL78 RX R8C SuperH 1 Blank check Display Display 2 Erase Display Display 3 Program Display Display 4 Verify Display Display 5 Read Display Display 6 Set Security Display Display 7 Checksum Display Display 8 Autoprocedure E P Display Display 9 Set Option bytes Display Not display 10 Set ID Code Display Not display 11 Set Lock bits Not display Display 12 Connect Display Display 13 Signature read Display Display 14 Get Flash options Display Display 15 Setup Display Display Note Some items will be grayed out or not displayed in accord with the type of MCU and other settings 1 Blank check command The Blank Check command performs blank check for the flash memory in the target device The target area can be set in the Operation Mode area on the Standard tab in the Device Setup dialog box If the flash memory has not yet been written PASS is displayed If the flash memory has already been written ERROR E051 Not Blank is displayed If this error is displayed erase the entire flash memory before starting programming 2 Erase command The Erase command erases the flash memory in the target device The target area can be set in the Ope
98. I is started A command execution is in progress or a PR5 file ESF file or program file is being downloaded A command execution or downloading of a PR5 file ESF file or program file is completed normally A command execution or downloading of a PR5 file ESF file or program file is terminated abnormal 4 8 Hint Bar By pointing to a command on the menu bar or a button with the pointer the hint for the command or button is displayed on the hint bar FPS File Programmer Device Help gt Programmer FPSGUI 2 07 Firmware 2 07 ProgA rea 0 Mode Standard mode unsecured Parameter and Setting file Name 78F1166 pr5 Version 1 00 Name 78F1166 est Date Wed Dec 07 22 08 00 2011 Download file Name sample hex Date Tue Mar 8 07 57 00 2011 Type HEX file Address 0O000000 0003FFFF File checksum Type Address Value Target device Name 78F1166 Pott UART Pulse Num 0 Speed 1 000 000 bps Vdd 05 00 Y FPS Freq Internal Osc T arget Multiply 00 Mode Erase and program the target device Figure 4 87 Hint Bar R20UT0008EJ0600 Rev 6 00 RENESAS Page 101 of 224 Sep 30 2013 PG FP5 V2 11 EXAMPLE OF OPERATION USING PROGRAMMING GUI 5 EXAMPLE OF OPERATION USING PROGRAMMING GUI This chapter explains a series of basic FP5 operations using the programming GUI taking a case where the UPD78F1166 is used as the target device as an example This c
99. IEC or other industry standards This fact must be taken into account when the product is taken from Japan to some other country 7 Renesas Electronics Corporation will not assume responsibility of direct or indirect damage caused by an accidental failure or malfunction in this product When disposing of this product Penalties may be applicable for incorrect disposal of this waste in accordance with your national legislation R20UTOOO8EJO0600 Rev 6 00 RENESAS Page 4 of 224 Sep 30 2013 PG FP5 V2 11 PREFACE Usage restrictions This product has been developed as a means of supporting system development by users Therefore do not use it as an embedded device in other equipment Also do not use it to develop systems or equipment for use in the following fields 1 Transportation and vehicular 2 Medical equipment that has an involvement in human life 3 Aerospace 4 Nuclear power control 5 Undersea repeaters If you are considering the use of this product for one of the above purposes please be sure to consult your local distributor About product changes We are constantly making efforts to improve the design and performance of our product Therefore the specification or design of the product or this user s manual may be changed without prior notice About rights 1 We assume no responsibility for any damage or infringement on patent rights or any other rights arising from the use of any information produ
100. Input format glb Description of the function Obtains the lock bit get for the target device Example of usage Command Status Display after executing the command When completed normally Status LED Message display Returns to the display before executing the command Screen output See below ERROR xxx XXXXXXXXXXXXXXXX Display after executing the ERROR Exxx lt text gt command When terminated abnormally LockBits CF1 FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF CF2 FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF UB FF PASS LockBits operation finished R20UTOOO8EJO0600 Rev 6 00 Sep 30 2013 RENESAS Page 156 of 224 PG FP5 V2 11 USAGE COMMUNICATION COMMANDS 8 5 8 gob command Obtains the information of option byte get for the target device Input format gob Description of the function Obtains the information set by executing the Set Option bytes command on the Device menu of the programming GUI Example of usage Command Status Status LED Message display Screen output gob Display after executing the PASS Returns to the display Display example ay When completed before oe the Option bytes xxxxxxxx normally command PASS Option Bytes operation finished Display after executing the ERROR ERROR xxx ERROR Exxx lt
101. K UART asynchronous communication port using external clock FP5 clock In the case of 78K0 All Flash UART X1 OSC UART asynchronous communication port using external oscillator In the case of 78KO All Flash UART Internal OSC UART asynchronous communication port using internal oscillator In the case of 78KO All Flash UART Single wire UART asynchronous communication port In the case of 78KO or 78KOR All Flash UART I O mode3 UART asynchronous communication port Standard serial I O mode 3 of the R8C family Fine D FINE RX100 RX200 series Note This might be 3 wire clocked communication port with handshake depending on the target device Pulse number Verr or the FLMDO count corresponding to the selected communication mode is displayed This item cannot be changed It is not displayed for the RX family R8C family and SuperH family Speed List box Select the communication rate of the selected communication channel Note For the available communication speed refer to the user s manual of the target device For the RX family R8C family and SuperH family communication speeds that can be selected in the Frequency box and PLL mode CKP box are displayed in the list box lt When UART ch0 UART ch1 UART ch2 UART ch3 UART Ext FP5CLK UART Ext OSC UART Internal OSC UART or Fine D is selected gt e 9600 Baud e 19200 Baud e 31250 Baud e 38400 Baud e 57600 Baud e
102. Level Indicates the voltage level of the clock signal as either of the following VDD VDD2 RESET Level The Reset Level displays the voltage level of the RESET signal VDD Also when the Enable target RESET check box in the Command options area of the device setup dialog Advanced is enabled VDD Reset TrigIn is displayed Serial Level Indicates the voltage level of the serial communication signals The high level of the serial communication signal is indicated as either of the following VDD VDD2 Indicates the value of Ver supplied to the target device connected to the FP5 in volts 6 3 5 Utility Misc menu The Utility Misc menu is used to reset the FPS main unit tune the LCD contrast check the firmware version check the name and version of the PR5 file downloaded check the name of the program file downloaded and check the checksum of program files The settings downloaded to the valid programming area are displayed The settings cannot be changed using this menu R20UTOOO8EJO0600 Rev 6 00 RENESAS Page 120 of 224 Sep 30 2013 PG FP5 V2 11 Table 6 5 Main Menu Utility Misc gt Utility Misc Menu Submenu Utility Reset FP5 USAGE IN STANDALONE MODE Description Displays the FP5 Manager mode settings lt Display example gt Std mode Sec Std mode unSec Pressing the ENTERI button resets the FP5 Set LCD Contr Tunes the contrast in t
103. N Caution to Be Taken for System Malfunctions Q If this product malfunctions because of interference like external noise do the following to remedy the trouble 1 Exit the programming GUI and shut OFF this product and the user system 2 After alapse of 10 seconds turn ON the power of this product and the user system again then launch the programming GUI Caution to Be Taken for Disposal Penalties may be applicable for incorrect disposal of this waste in accordance with your national legislation European Union regulatory notices The WEEE Waste Electrical and Electronic Equipment regulations put responsibilities on producers for the collection and recycling or disposal of electrical and electronic waste Return of WEEE under these regulations is applicable in the European Union only This equipment including all accessories is not intended for household use After use the equipment cannot be disposed of as household waste and the WEEE must be treated recycled and disposed of in an environmentally sound manner Renesas Electronics Europe GmbH can take back end of life equipment register for this service at http Awww renesas eu weee R20UTOOO8EJ0600 Rev 6 00 7tENESAS Page 9 of 224 Sep 30 2013 PG FP5 V2 11 PREFACE Contents PREFACE ceivssiih cottedees speczcadeeedauta chit i eevenastacede e AEE R AAEE E Eea a REEE E wena 3 PONa a E E E eerie errr reece trees 4 Precautions for Safety sieniin
104. O0x7ddc5da3 Ox8fe6dd8b Oxa9ee3033 Oxc3f 706fb Oxe5ffeb43 0x23431blc 0Ox054bf6a4 Ox6f 52c06c 0x495a2dd4 Oxbb60adfc 0x9d684044 Oxf 771768c 0xd1799b34 Ox7ec98b85 0x58c1663d 0x32d850f5 0x14d0bd4d Oxe6ea3d65 Oxc0e2d0dd Oxaafbe615 Ox8cf30bad Ox4a4ffbf2 0x6c47164a 0x065e2082 0x2056cd3a Oxd26c4d12 Oxf464a0aa 0x9e7d9662 Oxb8757bda Oxla864db2 Ox3c8ea00a 0x569796c2 0x709f7b7a 0x82a5fb52 Oxa4adl6ea Oxceb42022 Oxe8bccd9a O0x2e003dc5 0x0808d07d 0x6211e6b5 0x44190b0d 0xb6238b25 0x902b669d Oxfa325055 Oxdc3abded O0x738aad5c 0x558240e4 Ox3 9b762c 0x19939b94 Oxeba9lbbc Oxcdalf604 Oxa7b8c0cc 0x81b02d74 0x470cdd2b 0x61043093 0x0b1d065b Ox2d15ebe3 Oxdf2f 6bch 0xf9278673 0x933eb0bb 0xb5365d03 0x1e475005 0x384fbdbd 0x52568b75 0x745e66cd 0x8664e6e5 Oxa06c0b5d Oxca753d95 Oxec7dd02d Ox2acl12072 Ox0cc9cdca Ox66d0fb02 0x40d816ba Oxb2e29692 Ox94eaTb2a Oxfef34de2 Oxd8fba05a 0x774bb0eb 0x51435d53 Ox3b5a6b9b 0x1d528623 Oxef68060b Oxc960ebb3 0xa379dd7b 0x857130c3 0x43cdc09c 0x65c52d24 Ox0fdclbec 0x29d4f 654 Oxdbee767c Oxfde69bc4 Ox97ffad0c Oxb1f 740b4 if c return ll esa Ll e s Net Ll e arj Perform CRC sum algorithm use table for better speed CRC_accum gt gt 24 u32 c amp Oxff CRC_accum CRC_accum lt lt 8 CRC32_Tab is i Figure B
105. P5 CLK source Indicates either of the following as a source of the operating clock supplied to the target device Programmer Clock is supplied from the FP5 Target Clock is supplied from the user system PG CPU CLK Indicates the frequency of the clock supplied from the FP5 in MHz Target CPU CLK Indicates the frequency of the clock on the user system that is supplied to the target device in MHz Operation Mode Operation Range 6 3 3 Option Setting menu Indicates chip area or block as the operation mode when the Blank check Erase Program Verify Checksum or Autoprocedure E P command is executed Chip Area Block Block Code Block Data Block Code Data lt Display example gt Operation Mode Chip Indicates which of the areas in the target device connected to the FP5 is to be written to This menu shows a valid display only when the operation mode is not Chip when the operation mode is Area or Block lt Display example gt Operation Range Oto1 Inchip mode the display is always as follows lt Display example gt Operation Range 0 to 127 The Option Setting menu is used to check the command options and security settings currently set for the FP5 The settings downloaded to the valid programming area are displayed All the values displayed are those downloaded last time by the programming GUI The settings cannot be changed using this menu R2
106. P5 and target device Try the operation again 091 092 093 IVerify failed VGT Comm err SUM Comm err Internal verify error Device communication error Device communication error An error was occurred while the write data level was being checked The FP5 is not communicating properly with the target device Check that the FP5 is correctly connected to the target device The FP5 is not communicating properly with the target device Check that the FP5 is correctly connected to the target device 094 SCF Comm err Device communication error The FP5 is not communicating properly with the target device Check that the FP5 is correctly connected to the target device It is displayed when security setting is changed from prohibition to permission Set security setting to permission by chip erasure 095 GSC Comm err An error occurred during execution of the Security Get command The FP5 is not communicating properly with the target device Check that the FP5 is correctly connected to the target device 099 READ Comm err Device communication error It is a problem of communication between the FP5 and target device Improve the connection environment between the FP5 and the device It is displayed when read prohibition is set in security setting Set read permission by chip erasure 204 Not connected The target device was not connected to FP5 when a dcon command was iss
107. Page 146 of 224 Sep 30 2013 PG FP5 V2 11 USAGE COMMUNICATION COMMANDS 8 4 19 sound command Sets the buzzer Input format sound off on Description of the function Sets the buzzer Enabled or disabled is optionally designated If no option is designated the current setting is displayed off Disables the buzzer on Enables the buzzer Example of usage sound Sound is on sound off Sound is off 8 4 20 srec command Uploads the program file in Motorola HEX format Input format srec lt code_start address gt lt code_length gt lt data_start address gt lt data_length gt lt UB_start address gt lt UB_length gt Description of the function If a program file has been downloaded to a valid programming area executing this command will upload the program file in Motorola HEX format If this command is executed without any options the upload will be executed with the address size used during downloading If a program has not been downloaded then Invalid argument will be displayed The starting address and number of bytes are designated as options start address The starting address is designated as a hexadecimal number The code area data area and user boot area can be specified length The number of bytes is designated as a hexadecimal number The code area data area and user boot area can be specified Example of usage Command Screen output sre
108. Page 75 of 224 Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE lt 2 gt Target Setting area In this area ESF files can be created and selected and PRS files and program files can be selected A warning message will be displayed in the Information area if there is a mismatch between PRS files ESF files and program files saved in the FP5 and information held in the programming GUI Information of PRS files ESF files and program files which is set to the current valid programming area can be deleted Target Settings Parameter file and Setting file D FP5 PRJ 78F1166 est z e New Save As Object HEX file D A FP5 PRJ sample hex z x Tue Mar 08 07 57 06 2011 JV Erase memory before download Information Clear Figure 4 51 Target Setting Area lt 3 gt Parameter and Setting file area In this area ESF files can be created and selected and PR5 files can be selected Parameter file and Setting file D FP5 PRJ rari 166 esf X s New 78F1166pr5 Save As Figure 4 52 Parameter and Setting file Area ESF file selection list box Select the ESF file to be used If no ESF files are registered in the valid programming area ESF files stored in the FP5_PRJ folder in the programming GUI installation folder are displayed If the reference folder is changed by using the New or Save As button ESF files stored in the changed folder
109. Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE ees lolx Eile Programmer Device Help Programmer FP5GUI v2 07 Firmvare Version 2 07 Board H W V1 FPGA V4 alae ero Serial Na MC10340174 Mode Standard mode unsecured Mod m fffc0000 ffffffff 100000 107fff f F7fcO00 ff7F7fffff Parameter and Setting file Code FFFC0000 FFFFFFFF 03FC0000 Data 00100000 00107FFF 007F8000 Name R5F562TAA pr5 UB ROM FF 7FCOOO FF7FFFFF 003FC000 Version Y1 00 Total 04BB4000 Name R5FS62TAA est Date Mon Nov 28 12 06 04 2011 Download file Name sample_rx hex Date Wed Nov 215 33 00 2011 Type HEX file User mat FFFCOOOO FFFFFFFF Data mat 00100000 00107FFF UB mat FF7FCOOO FF7FFFFF File checksum Type Arithmetic checksum User mat 03FCO000 FFFCOOO0 FFFFFFFF Data mat O07F8000 00100000 001 07FFF UB mat OO3FCO00 FF7FCOO0 FF7FFFFF Total 04864000 c When RX Family R8C Family or SuperH Family Is Selected Figure 4 11 Checksum Result 4 Quit command The Quit command terminates the programming GUI The programming GUI can also be terminated by clicking the x button on the right end of the title bar in the main window When the programming GUI is terminated various settings are saved in the INI file FP5 ini and these settings are loaded when the programming GUI is started the next time 4 3
110. There is possibly a shortcut in the target hardware GOB Comm err An error occurred during execution of the Option bytes get command The FP5 is not communicating properly with the target device Check that the FP5 is correctly connected to the target device GID Comm err An error occurred during execution of the ID Code get command The FP5 is not communicating properly with the target device Check that the FP5 is correctly connected to the target device SLB Comm err IDC Comn err OPB Comn err An error occurred during execution of the Ser Lock Bit command Device communication error or illegal ID code Device communication error or illegal Option bytes The FP5 is not communicating properly with the target device Check that the FP5 is correctly connected to the target device The FP5 is not communicating properly with the target device Check that the FP5 is correctly connected to the target device Also check that the ID code is correct The FP5 is not communicating properly with the target device Check that the FP5 is correctly connected to the target device Also check that the Option bytes is correct R20UTOOO8EJ0600 Rev 6 00 Sep 30 2013 7tENESAS Page 202 of 224 PG FP5 V2 11 SUPPLEMENTARY INFORMATION APPENDIX B SUPPLEMENTARY INFORMATION lt HEX Editor gt address 0 1 2 3 4 5 6 7 8 9 A B C D E F ID Tag 400000 00 11 22 33
111. VV Ge E dee icc py sac acai Vase sh ategeas A Upaatlnd geneva vs aie svacdieedepasseteast tea ecaes 186 12 TROUBLESHOOTING vescties sccaecatescihedtaceatied awtedienus cabicid eee a ae aa aaa eiaa a iaa aa chants cetid ra Eaa eTe aati AEEA 187 12 1 Problems During Startup ccccccceeeeeeeceeeeeceaeeeeeaeceeeeeceaeeecaaeeeeaeeseeeeesaaeeesaaeseeaeeseaeeeseaeeeeeeteeeees 187 12 2 Problems During Operation ccccccesceceeeeeeceeeeeaeeeeneeceaeeeeaaeseeaeeseaeeeseaeeeeaaeseeneeseeeesaesseaaeesenees 188 13 MAINTENANCE AND WARRANT cee ceceeeeeeeeeeeeaeeeeaeeseaeeeceaeeeeaaeeneaeeseaeeecaaeseeaaeseeeeeseaeeesaeeseaeeeeaes 191 138A User REGIStratiOns s 3c div jects ete crates el nti ed aii ident eels anette REER 191 13 2 MAINGNANCE eeir iaria eie nida a E EA E TEENAA E EEA E EESE 191 EER EU a E EE E E E A T E rer rere er creer 191 13 4 Repar PFOVISIONS oes Dorana aE D S A E 191 13 5 How to Make Request for Repair 2 eeeccceeeeeneeeeeeeneeeeeeaeeeeeeaaeeeeesaaeeeeeeaaeeeeeeaaeeeseeaaeeeeteaeeeeneaaes 192 APPENDIX A MESSAGES szittotss cetedseneiiens ceceedievcterna aaa aae AEE Ea E Oa NaO ae eee nae 193 At Message FOM ab eernrrie nnn N 193 A 2 Error Warning Dialog Boxes for Programming GUI Operation ccccceceeeeeeeeeeeeeeeeteeeetaeeeeeeeees 194 A 3 Information Dialog Boxes for Programming GUI Operation cccceeeceeeeeeeeeeeseeeeeteeeeeeaeeeeeeeees 197 A 4 Error Messages Displayed in FP5 Message Dis
112. a tetascanvd aTa a EEEE AE NERA E E I E E ESE ENEE 137 Sd T MeS CONTAN es 138 84 8 paa Up COMMANA AE AA A S 139 B49 MEX COMM ANC e aa a S as et iaeSemeeveeees 140 B24 TO LIP COMM AM e E A E headed A dicen A E 141 Ea S Pe e Kea an e P odicentie E E E cou E E E 142 8AT2A PrmiiCOMMANE sarirane ie ee i ee ne 143 84 13 PrOGaread COMMANG ee vaste iedsceceeesnsec besante eesteead vedatandevsneaca pedseate ossevnna A ESE aA ENER A 143 84 14 pwr OTT commande necce edocs Sec teetee es des nested eed seeded cen tanec eee Ses nevteees deel ha sendagaes 144 84 15 TOS command sarsii ie e venues E aA E EEEE AEEA 145 Gd 1e neou COMMA ean a a N 145 gd 17 lt SOIMESHCOMMAN es aE E A E AE 146 S419 SEn COMMIT a T 146 824 192 sound COMAN naa RAEE RAEE ERATES AAAA 147 S20 aree COMMA n E de Sale cited dace ds Sevens etn beas eden ee eeaedeweas beg 147 B24 21 TS COMMAING oors N a EE A a ES 148 84 22 UPDIMT COMMANO osacs ccketenedesdeets ecseeeeevesdiateeesacata beddecls evsseaea beasscidessseniadssdiaieevsetneatedduatdessbentaes 148 8 4 23 UPSET command arenu E E ns eaeedla neatteas denbd a mene ne onned la neta ey 149 8 4 24 ver command sererken ineen natopi EEEE NAE SS EAEE SAE RS ENEE 149 8 4 25 version Up COMMANC acena E T ob veli oeevine eevee 149 8 5 Description of The FP5 Device COMMANAS ee eee eee eee teres tee eee taaeeaaeseaeseaeeeaeeeeeseeeseeeeeeeeeas 151 8 5212 DIM COMMAEMNG encra eS apenas ee ested es tee cl aeetlead ei dls beatiens i 151
113. abled or disabled Refer to 8 USAGE COMMUNICATION COMMANDS for details about the functions 13 Signature read command The Signature read command reads target device product information The read result is displayed in the action log window 14 Get Flash options command The Get Flash options command reads the settings for the flash options for the target device and displays the result in the Flash options area on the Advanced tab in the Device Setup dialog box When execution of this command is enabled execute this command before the Set Security command Set Option bytes command or Set ID Code command the settings for the security functions or the boot area can thus be checked For details on the flash option settings refer to 4 3 3 15 c lt 3 gt Flash options area Note When loading an HCUHEX file the HCUHEX file is handled as master data so even though the flash option settings specified for the device can be checked by executing the Get Flash Options command these settings cannot be applied to the device The OKI button in the Device Setup dialog box is therefore unavailable In this case click the Cancel button and close the Device Setup dialog box Note that the OK button becomes available if the HCUHEX file is changed to a HEX file in the Object HEX file area After changing the file the HCUHEX file information remains unchanged in the Command Options and Flash options areas TT 6 6 h ll
114. ach command is finished Enable target Reset check box the various commands FP5 will detect the leading edge of the signal entering the RESET terminal Until a signal is detected Waiting for RESET will be displayed in the action log window and the transition to the flash memory programming mode will be put on hold When the signal is detected the transition will be resumed And right before each commands are completed FP5 will detect the leading edge of the signal entering the RESET terminal Until a signal is detected Waiting for RESET will be displayed in the action log window and the termination of the flash memory programming mode will be put on hold When the signal is detected the flash programming mode is ended 2 Detect the falling edge of the signal entering the RESET pin Figure 4 68 Detection Timing of Target Reset R20UTOOO8EJ0600 Rev 6 00 7tENESAS Page 90 of 224 Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE Minimum Unit Programming check box This is a function for programming of the data flash memory in the minimum unit Placing a check mark in this box enables the function Once enabled writing to verifying and reading from the data area in the data flash memory in the minimum unit of the MCU s flash memory control are possible This function can be used when the V850E2 Fx4 L V850E2 FF4 G V850E2 FG4 G or V850E2 Px4 L is selected Lock bit disable after connect check box If this c
115. al port on the host machine and the other side of the cable to the USB connector or serial connector on the FP5 Plug in the AC adaptor and then connect to the FPS power supply connector Serial cable USB cable AC adapter Host machine D Outlet Figure 4 1 System Connection 2 FP5 startup After the cables are connected press the POWERI button on the FP5 When the FPS is correctly started the POWER LED is turned on and Commands gt is displayed in the message display If not the cause may be a defect in the FP5 so consult a Renesas Electronics sales representative or distributor 3 Startup of programming GUI Click the Start menu All Programs point to Renesas Electronics Utilities Programming Tools and then select PG FP5 Vx xx of PG FP5 Vx xx to start the Programming GUI The valid communication mode is automatically detected in the order of the USB and then the serial interface Infor mation Search Communication port Trying connect to COM3 with 9600 Please wait Figure 4 2 Port Scanning at Startup of Programming GUI The communication mode can also be selected by cancelling this operation by clicking the button and selecting the Setup host connection command in the Programmer menu R20UT0008EJ0600 Rev 6 00 RENESAS Page 41 of 224 Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE When communication is established and the programming GUI is cor
116. ale Connector Outline of Target Cable 14 pin type View from Socket Side Table 9 4 Target Connector 14 pin type Pin Configuration jews dP o e e E a ae RFU 1Note 1 101 Notes 1 Reserved pins Leave these pins open 2 Left open in the target cable R20UT0008EJ0600 Rev 6 00 RENESAS Page 171 of 224 Sep 30 2013 PG FP5 V2 11 CONNECTORS AND CABLES Note The following are the recommended connectors to be connected to 14 pin 2 54 mm pitch multipurpose female connectors e 7614 6002 Sumitomo 3M Limited straight type e 2514 6002 3M Limited straight type When using a self made cable because the target cable cannot be used due to the target system specifications the cable characteristics should be equivalent or higher than those of the target cable Note that communication may be performed at high speed depending on the communication settings Consequently communication errors may occur and causing abnormal operation R20UT0008EJ0600 Rev 6 00 RENESAS Page 172 of 224 Sep 30 2013 PG FP5 V2 11 CONNECTORS AND CABLES 9 5 GND Connector The banana jack GND connector is laid out on the target connector side of the FP5 GND connector Figure 9 16 GND Connector lt FP5 Target Connector Side gt Note Part number of GND connector banana jack PB4 HIRSCHMANN 9 5 1 GND cable The host cable is a standard shielded GND cable approximately 1 meter long The GND cable is equipped with a banana jack and a spad
117. am files PRS files and ESF files are retained even if the FP5 power is turned off Downloaded data will be self tested for accuracy when the FPS is started during downloads and when programming areas are changed lt Notification function gt When Autoprocedure E P is executed whether execution is completed normally is indicated by beeps lt Checksum calculation gt Checksum calculation for the download program files is possible R20UTOOO8EJ0600 Rev 6 00 7tENESAS Page 19 of 224 Sep 30 2013 PG FP5 V2 11 OVERVIEW 1 6 Operating Environment 1 6 1 Hardware environment 1 Host machines PC AT compatible Equipped with USB 2 0 ports compatible with 1 1 Equipped with RS 232C serial ports 1 6 2 Software environment 1 OS either of the following Windows XP 32 bit edition Windows Vista 32 bit edition 64 bit edition Windows 7 32 bit edition 64 bit edition Windows 8 32 bit edition 64 bit edition Microsoft NET Framework 4 Microsoft Visual C 2010 Redistributable Package x86 Internet Explorer 6 0 or later R20UTOOO8EJ0600 Rev 6 00 7tENESAS Sep 30 2013 Page 20 of 224 PG FP5 V2 11 OVERVIEW 1 7 Hardware Specifications Table 1 2 Hardware Specifications Hardware Specifications FP5 main Operating power Supplied via AC adaptor 15 V unit supply Operating environment Temperature 0 to 40 C ccondition Humidity 10 to 80 RH no condensation St
118. ample hex RRA TLEB PA FARbw File name sample hex Open Files of type S rec Hex files rec s 52 mot t a20 a w Cancel Figure 4 58 Download file Dialog Box lt 5 gt Information area and Clear button This area displays a warning message or is used to clear information on PRS files ESF files and program files R20UTO008EJ0600 Rev 6 00 RENESAS Page 79 of 224 Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE Information Figure 4 59 Information Area and Clear Button Information area A warning message will be displayed in this area if there is a mismatch between PRS files ESF files and program files saved in the FP5 and information held in the programming GUI Clear button Information of PRS files ESF files and program files which is set to the current valid programming area can be deleted Information of a programming area that is no longer required to be used can be deleted When the clear button is clicked deletion of the set information selected in the programming area settings will be specified When the OKI button is clicked programming areas that are currently valid will be downloaded and the internal memory information of the programming area for which deletion has been specified by using the clear button will be deleted Deleting the information of all programming areas cannot be performed Initialize the
119. and APPENDIX A MESSAGES In addition refer to 4 3 2 6 Self Test command and perform selftesting If this does not resolve the problem see the FAQ except for Europe area http www renesas com support for Europe area http www renesas eu update or access http www renesas com contact for inquiry Sep 30 2013 PG FP5 V2 11 USAGE IN STANDALONE MODE 6 USAGE IN STANDALONE MODE The FPS has a standalone mode in which the FP5 by itself can execute the Erase Program and Autoprocedure E P commands without a host machine This mode is useful for using the FP5 on the production line during mass production and for upgrading in the field 6 1 Before Starting Standalone Operation In standalone mode the FP5 can select any programming area based on PRS files ESF files and program files stored in the multiple internal flash memory areas programming areas and write it New PRS files ESF files and program files cannot be downloaded to the FP5 in this mode Programming is possible only in environments to which files were downloaded last time by the programming GUI 6 2 Description of Buttons Message Display and Status LEDs In standalone mode command menus are selected and executed using the control button NEXT ENTERI or on the top of the FP5 main unit The selected command menu is displayed in the message display and the result of command execution is indicated by the message display and status LEDs When the FP5 Manage
120. are displayed button Click this button when specifying an ESF file stored in a folder other than the FP5_PRJ folder in the programming GUI installation folder A dialog box for specifying the ESF file will be displayed Specify the relevant file and then click the Open button Note that the PRS file specified by the ESF file must be in the specified folder R20UTOOO8EJ0600 Rev 6 00 7tENESAS Page 76 of 224 Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE Look in FP5_PRJ e aa 2 E 78F 1166 esF My Recent Documents G Desktop My Documents My Network File name 78F1166 esf Places Files of type FP5 setup files esf Figure 4 53 ESF File Select Dialog Box New button Click this button to create a new ESF file The following dialog box will be displayed Save in C9 FP5_PRJ ce 2 E 78F 1166 esf My Recent Documents Desktop gt My Network File name 78F 1166 est Places Save as type FP5 setup files esf Cancel Parameter file 78F1166 pr5 v New Figure 4 54 New ESF File Creation Dialog Box The PRS file stored in the FP5_PRJ folder in the programming GUI installation folder is displayed in the Parameter file list Select the PR5 file for the target device used Clicking the New button will open the following dialog box The PRS file can be copied to the s
121. arget check box For the system configuration and specifications of the FL RL78 FP5 refer to the FL RL78 FP5 User s Manual 2 It must be connected when the E1 E20 emulator is used However it doesn t have to be connected when the PG FP5 is used R20UTOOO8EJ0600 Rev 6 00 7tENESAS Page 181 of 224 Sep 30 2013 PG FP5 V2 11 NOTES ON TARGET SYSTEM DESIGN lt 10 gt RX family SuperH family Target connecter 14 pin type Target device VCC VCC VCC VCC VCC VCC vcc R R R R R Note 4 Note 4 Note 4 Note 4 Note 4 E Clock circuit 13 RESET Jumper w Figure 10 10Circuit Example for RX Family and SuperH Family Circuit Example for RX62T Notes 1 For the serial communication interface SCI that can be used for writing refer to the user s manual of the target device 2 Connect the MDO and MD1 pins Mode Setting Pin of Operating Mode to any of the IO0 to 105 pins The signal settings for OO to 105 pins can be set in the I O Signal Settings area on the Advanced tab in the Device Setup dialog box Set MDO to High MD1 to Low and unused I O signals to High Z Normally use the initial settings in the I O Signal Settings area It is compatible with write circuit examples with Flash Development Toolkit 3 These pins do not need to be shorted when using FP5 Short them when using E1 E20 or E8a together 4 Set the R value to between 4 7 and 10 kQ when using E1 E20 or E8a together R20UT0008EJ060
122. ary file has failed The file may be corrupted E 1539 Caution Out of range The specified value is out of the valid range E 1601 R20UTOOO8EJ0600 Rev 6 00 Protect error Sep 30 2013 7tENESAS The on chip debug security ID and option byte settings cannot be read because read prohibited has been specified Page 196 of 224 PG FP5 V2 11 Message Please setup host connection again MESSAGES A 3 Information Dialog Boxes for Programming GUI Operation Description After FP5 reset communication with FP5 was attempted but failed Try Programmer Setup host connection in the menu Please open Setup form menu It will help you down load parameter amp setting files Parameter setting files are not matched Open Setup in the menu and then download the PR5 or ESF file Information does not match the one defined in the PR5 ESF file The cause may be the following 1 The PR5 or ESF file which is defined in the INI file is different from the one stored in the FP5 2 Information on the PR5 or ESF file is missing in the INI file but a valid PR5 or ESF file is stored in the FP5 3 No PR5 or ESF file is stored in the FP5 but valid PR5 or ESF file has been detected because they are defined in the INI file Parameter setting files are not find The PR5 or ESF file is missing No valid PR5 or ESF file is defined in the INI file Store a valid PR5 or ESF file in ins
123. ation area divisions valid programming areas maximum size of program file information code area data area e Program file information file name creation date size checksum e PR5 file and ESF file information in all programming areas PR5 file names PR5 file checksums ESF file checksums e Automatic connection information e Buzzer information e Automatic power supply OFF information e Security mode information e FP5 manager option setting information Progarea Used to specify the number of programming area sections 4x4 Divides the programming area into four sections 8x2 Divides the programming area into eight sections 10 6 Divides the programming area into two sections Example of usage Refer to the following pages R20UT0008EJ0600 Rev 6 00 7tENESAS Page 133 of 224 Sep 30 2013 PG FP5 V2 11 USAGE COMMUNICATION COMMANDS 1 Command Screen output conf progarea 4x4 If there are four sections before the command is executed OK INFO Same setting Configuration is not changed If there are eight sections before the command is executed OK INFO New configuration has been set INFO Progarea data is not valid any more Number of Program areas 4 Active Program Area 0 Size of Program Areas Code Data Area 0 0x400000 0x020000 Area 1 0x400000 0x020000 Area 2 0x400000 0x020000 Area 3 0x400000 0x020000 Area Filename Date Time Range CRC 0 unknown data 1 unknown data
124. ative or distributor 3 You can only order the AC adaptor that can be used in your region 1 9 HCUHEX Files HCUHEX files are files that are required when ordering flash memory products whose flash memories are pre written by Renesas Electronics HCUHEX files are generated by the HEX Consolidation Utility HCU after which they must be verified on a flash memory programmer before being submitted The PG FP5 handles HCUHEX files as master data and can therefore be used to check the written data and the option data settings HCUHEX lt files are supported in part of the RL78 78K0 78KOR V850 If they are supported it is described in the user s manual of the target microcontroller the SH RX and R8C do not support HCUHEX files For details see the functional descriptions in this manual For more information about HCU see the HCU user s manual or the manual of the target device The following websites describe details about HCU e Websites e Japanese version _ http japan renesas com hcu Mode Select Edit mode Check mode HCUHEX HCUHEX file submitted for Cancel file ordering pre written flash Operation memory products verified on PG FP5 Figure 1 2 PG FP5 Connection Diagram Sep 30 2013 PG FP5 V2 11 OVERVIEW 1 10 Regulatory Compliance Notices This equipment complies with the EMC protection requirements WARNING This is a Class A EN 55022 1998 equipment Th
125. bar A command can be executed just by clicking the relevant button Some commands may be unavailable depending on the PRS file selected or when the programming GUI is started for the first time Also if an HCUHEX file is selected the HCUHEX file is handled as master data so the Program Read and Set Security commands are unavailable By pointing to a button with the pointer the hint for the button is displayed on the hint bar Table 4 6 Toolbar Buttons Opens the File Upload dialog box This performs the same action as selecting the Upload from FP5 command in the File menu Opens the programming area select dialog box This performs the same action as selecting the Select Programming area command in the Programmer menu Opens the HEX Editor select dialog box This performs the same action as selecting the HEX Editor command in the File menu Executes the con command or dcon command This performs the same action as selecting the Connect command in the Device menu Executes the Blank Check command This performs the same action as selecting the Blank Check command in the Device menu Executes the Erase command This performs the same action as selecting the Erase command in the Device menu if Executes the Program command This performs the same action as selecting the Program command in the Device menu Executes the Verify command This performs the
126. ble or a USB cable The FP5 is connected to the target system via a target cable and a GND cable And the FP5 can be remote controlled by connecting the remote connector and external control device 2 1 1 Host machine A host machine is used to communicate with the FP5 The host machine must also be equipped with a serial port or a USB port 2 1 2 Serial cable Communication is established by using a serial cable to connect the host machine serial port and FPS serial connector RS 232C cross cable connection For details on the serial cable specifications refer to 9 CONNECTORS AND CABLES 2 1 3 USB cable Communication is established by connecting the host machine USB port and the FP5 USB connector mini B type using a USB cable For details on the USB cable specifications refer to 9 CONNECTORS AND CABLES 2 1 4 AC adaptor Connect the FP5 power supply connector to the AC adaptor included with the FP5 The AC adaptor differs depending on the region where the product is being used For details see Table 1 3 AC Adaptors for PG FP5 Used in Each Region An AC adaptor is required when using the PG FP5 so be sure to purchase an AC adaptor Sep 30 2013 PG FP5 V2 11 HARDWARE CONFIGURATION 2 1 5 Target cable A 16 pin connector or 14 pin connector is equipped on the tip of the target cable which is connected to the target system or the program adaptor For details on the target cable specifications refer to 9 CONNECTORS AND CABLES
127. c Press return to start continue output srec 0 3fff Press return to start continue output srec 0 3ffff 400000 20000 Press return to start continue output After the command is executed pressing the Return key will start the upload See below S0030000FC 3250000000081 0081 0081008100810081008100810081008100810081008100810081008100CA 32500000020810081008100810081008100810081008100810081008100810081008100FFFF2D S5030000FC S70500000000FA R20UTOOO8EJO600 Rev 6 00 RENESAS Page 147 of 224 Sep 30 2013 PG FP5 V2 11 USAGE COMMUNICATION COMMANDS 8 4 21 tre command Displays the communication information between the FP5 and target device Input format trc Description of the function Displays the communication information between the FP5 and target device stored in the FP5 trace memory Up to 1024 lines can be stored The FP5 has ring structure trace memory Example of usage Debug Output Number Timeus Send Rec 0214 0008675924 17 0215 0008678930 02 Total number of transmitted bytes 266282 Total number of received bytes 006212 8 4 22 upprm command Uploads the PRS file Input format upprm Description of the function If the PR5 file has been downloaded to a valid programming area then executing this command will upload the PRS file Example of usage upprm Press return to start continue output After the command is executed pressing the Return
128. ce is subject to command processing such as programming If Block is selected Specify the block range subject to command processing using the Start and End drop down lists These lists show the block numbers where flash memory in the target device is configured Note 1 For the R8C family a block cannot be specified with the Start End list box 2 For the SuperH family there are cautions on selection of User mat Data mat and User boot depending on the format of the program file Other than DDI files If the addresses of User mat Data mat and User boot overlap multiple items cannot be selected DDI files The restriction above does not exist R20UTOOO8EJ0600 Rev 6 00 7tENESAS Page 86 of 224 Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE If Area is selected Specify the Area number range subject to rewrite processing by using the Start and End lists The Start End lists display the Area number where the target device is configured Show Address check box Specifies whether numbers or addresses are displayed in the Start End lists If this check box is checked addresses are displayed If it is not checked numbers are displayed Selective programming Verify Read check box This item is not available lt 4 gt Defaults button The default settings stored in the PRS file are restored c Advanced tab in Device Setup dialog box On the Advanced tab the programming voltage options added to pr
129. ch and LED is shown PASS 3 ERROR 4 BUSY 2 snr 7a 1 GND Figure 7 3 External Switch and LED Connection Example R20UT0008EJ0600 Rev 6 00 RENESAS Page 125 of 224 Sep 30 2013 PG FP5 V2 11 USAGE COMMUNICATION COMMANDS 8 USAGE COMMUNICATION COMMANDS This chapter describes how to use communications commands from a host machine to operate the FP5 8 1 Starting the Communications Software In order to use communications commands for operation communications with the FP5 must be established with communications software In this chapter we shall describe how to use HyperTerminal which is a part of Windows to establish communications 1 Connecting the system Connect a serial cable to the serial port on your host machine and then connect the other end to the serial connector on the FP5 Next plug the AC adaptor into an outlet then connect it to the FPS power supply connector Serial cable AC adapter Host machine oai Outlet Figure 8 1 System Connections 2 Start the FP5 After the connections are made press the FP5 button to turn the power on If the unit starts correctly the POWER LED will light and Commands gt will be displayed on the message display If the unit does not come on in the manner described above then there may be a malfunction in the FP5 so consult a Renesas Electronics sales representative or distributor R20UT0008EJ0600 Rev 6 00 RENESAS Page 126 of 224 Sep
130. cts or circuits presented in this user s manual 2 The information or data in this user s manual does not implicitly or otherwise grant a license to patent rights or any other rights belonging to Renesas or to a third party 3 This user s manual and this product are copyrighted with all rights reserved by Renesas This user s manual may not be copied duplicated or reproduced in whole or part without prior written consent from Renesas About diagrams Some diagrams in this user s manual may differ from the objects they represent R20UTOOO8EJ0600 Rev 6 00 7tENESAS Page 5 of 224 Sep 30 2013 PG FP5 V2 11 PREFACE Precautions for Safety This chapter describes the precautions which should be taken in order to use this product safely and properly Be sure to read and understand this chapter before using this product Contact us if you have any questions about the precautions described here This chapter describes the precautions which should be taken in order to use this product safely and properly Be sure to read this chapter before using this product WARNING indicates a potentially dangerous situation that will cause death or heavy A WARN NG wound unless it is avoided CAUTION indicates a potentially dangerous situation that will cause a slight injury or A CAUTION a medium degree injury or property damage unless it is avoided In addition to the two above the following are also used as appropriate Z
131. curity Flag xx normally command Boot Block Number xx FS area xXXXX XXXX PASS Security operation finished Display after executing the ERROR ERROR xxx ERROR Exxx lt text gt command When terminated XXXXXXXXXXXXXXXX abnormally 8 5 11 idc command Executes the Set OCD Security ID command Input format idc Description of the function Obtains the information set by executing the Set OCD Security ID command on the Device menu of the programming GUI Example of usage Command Status Status LED Message display Screen output idc Display after executing the PASS Returns to the display Display example command When completed before executing the Set OCD ID normally command PASS OCD ID operation finished Display after executing the ERROR ERROR xxx ERROR Exxx lt text gt command When terminated XXXXXXXXXXXXXXXX abnormally R20UT0008EJ0600 Rev 6 00 7tENESAS Page 158 of 224 Sep 30 2013 PG FP5 V2 11 USAGE COMMUNICATION COMMANDS 8 5 12 opb command Executes the Set Option bytes command Input format opb Description of the function Obtains the information set by executing the Set Option bytes command on the Device menu of the programming GUL Example of usage Command Status Status LED Message display Screen output opb Display after executing the PASS Returns to the display Display example ay When complete
132. d If there are no options then the current valid programming area is displayed clear Clears the data in the valid programming area PR5 file ESF file and program file 0 Changes the valid programming area to 0 1 Changes the valid programming area to 1 2 Changes the valid programming area to 2 3 Changes the valid programming area to 3 Example of usage Command Screen output progarea Active Program Area 0 Max program size 4 MByte Max data size 512 kByte progarea clear 1 progarea 0 Active Program Area 0 R20UTOOO8EJO0600 Rev 6 00 RENESAS Page 143 of 224 Sep 30 2013 PG FP5 V2 11 USAGE COMMUNICATION COMMANDS 8 4 14 pwr_off command Turns off the FP5 power supply Input format pwr_off now auto off lt time minutes gt Description of the function Turns off the FP5 power supply Adjusts the off timing by designating the options If options are not used then the user can see if automatic power supply off is enabled or disabled now Turns off the power supply immediately auto After the designated time has elapsed automatic power supply off is enabled Once this is designated even if the automatic power supply turns off it will still be enabled if set to ON off After the designated time has elapsed automatic power supply off is disabled time Designates the automatic power supply off time The time can be 1 to 35791394 in minutes Note that 1 to 4 are set to
133. d before executing the Set Option bytes normally command PASS Option bytes operation finished Display after executing the ERROR ERROR xxx ERROR Exxx lt text gt command When terminated XXXXXXXXXXXXXXXX abnormally R20UTOO08EJ0600 Rev 6 00 7tENESAS Page 159 of 224 Sep 30 2013 PG FP5 V2 11 8 5 13 prg command Executes Program command Input format 1 prg Description of the function USAGE COMMUNICATION COMMANDS Executes a similar function to the programming GUI Device menu gt Program command Example of usage Command Status Status LED Message display Screen output prg Display while executing the BUSY Program Chip Program Chip command Chip mode Addr 0x000000 10 20 100 Display while executing the BUSY Program Block Program Block sss to eee command Block mode Addr 0x000000 10 20 100 or Program Block 000 10 20 100 Program Block 001 Program Block eee Display while executing the BUSY Program Area Program Area 000 command Area mode Addr 0x000000 10 20 100 Program Area 001 Program Area eee Display after executing the PASS Returns to the display PASS command When completed before executing the Program operation finished normally command Display after executing the ERROR ERROR xxx ERROR Exxx lt text gt command When terminated XXXXXXXXXXXXXXXK Program operation finished abnormally R20UTOO08EJ0600 Rev 6 00 7tENESAS Page 160 of 22
134. d off when the FP5 is OFF e Message display An LCD display of 16 x 2 characters that indicates the operating mode or menus It is mainly used when the FP5 operates in standalone mode e Status LEDs LEDs that show the FP5 operating status PASS green LED turned on indicates normal completion BUSY orange LED flashes indicates processing in progress and ERROR red LED turned on indicates abnormal completion 2 Buttons e POWER button Used to turn on off the power to the FP5 Press this button longer for about 1 minute when turning on off e NEXT button Proceeds to the next menu item at the same level in sequence e ENTER button Selects the item shown in the message display e CANCEL button Cancels the current selection and returns to the previous menu item The command currently running cannot be stopped except for the Read command e START button Executes the Autoprocedure E P command with a valid programming area setting Note The NEXT ENTER CANCEL and START buttons are mainly used in standalone mode When the FP5 Manager is used to switch to the bank mode or simple mode the button functions and message display functions will change Refer to 4 3 2 9 FP5 Manager command and 7 USAGE THE REMOTE CONNECTOR R20UTO008EJ0600 Rev 6 00 RENESAS Page 27 of 224 Sep 30 2013 PG FP5 V2 11 HARDWARE CONFIGURATION 2 2 2 FP5 connect
135. dOW ccccceeeeeeeeeeeeeeeeeeeeeeeeeeeaeeeeeeeaeeeeeseaeeeeeseaeeeeeeaeeeeeseneaeeeeeeaaeees 99 R20UTOO08EJ0600 Rev 6 00 7tENESAS Page 10 of 224 Sep 30 2013 PG FP5 V2 11 PREFACE 4 7 Status Baleeis coasts asanststeeeteaeiitl desis ciate hon disco dai dened dale neni eae 101 4 8 THING Balt vvoscccs tessncea est A ecadeaevecettienante ee eed enh havea ietsecnte EEE AEE EEEE REE 101 5 EXAMPLE OF OPERATION USING PROGRAMMING GUI eccccceeeeeeeeeeeeeeeaeeeeeeeseeeeeseaeeesaeeeeneeees 102 6 USAGE IN STANDALONE MODE 00 cccceeeceeeeeeeeeeeeeeeeeeeeeee cease ecaaeeeeaae scenes ceases viaas da iadd narodni id ddiaa 113 6 1 Before Starting Standalone Operation cccsccecececeeeeceeeeeeaeeeeeeeceeeeeaaeeeeaaeseeneeseaeeesaeseeaaeseeeeeeaas 113 6 2 Description of Buttons Message Display and Status LEDS c ceccceeeeseeeeeeeeseeeeeeeeeeeeeeseeeeetees 113 6 3 Standalone Operation MeNu ccsccceecceceeeeeeeeceeeeeceeeeeceaeeeeaaeeeeeeeceaeeeseaesesaaesseneeseaeeesaesseaeeeeneeeeaas 114 6 3 1 Commands MENU revcsecetes svecrenveste tes tan Gece aatasi aiae a EAE Naaa Eaa 114 6 3 2 Type Setting MENU reser cseccescsccvadees endaniednrnendanii dannedd aaa oiana diarina 116 6 3 3 Option Setting Menu sissano aa aa aE eS RE EEEE EERS 117 6 3 4 Voltage Setting menu cceeecececceeceeeeeeeeeeeeeeeeeeeeeeaaeeeeaaeseaeeeseaeeeeaaeseeaeeseeeeseaeeesaesseneeesaes 120 6 3 5 Uulit Mise MENU se
136. defined in the PR5 file 12413 Value is out of range The selected clock value is larger than the maximum value defined in the PR5 file 12414 Value is out of range The selected clock value is smaller than the minimum value defined in the PR5 file 12415 The selection is out of range The Voo value exceeds the range defined in the PR5 file 12416 The selection is out of range The Voz value exceeds the range defined in the PR5 file 12417 The selection is out of range The selected value is out of the valid range 12418 Input data is out of range The selected clock value exceeds the range defined in the PR5 file R20UTOOO8EJO0600 Rev 6 00 Sep 30 2013 7tENESAS Page 198 of 224 PG FP5 V2 11 MESSAGES No Message Caution Boot Block swapping will not be possible with this selection Anyhow boot block protection is possible 3 Description Boot swapping is not available because the selected block number is larger than half the total block numbers defined in the PR5 file Boot block protection can be enabled Illegal ID code The value in the ID code box is illegal Illegal option byte setting The value in the Option bytes setting box is illegal Welcome to FP5 Manager Yes Continue to set FP5 Manager No Return to Standard mode unsecured Initialize as shipment condition Warning After initialization all data and parameter settings in FP5 will be del
137. dress Check the start end address Caution End address should not smaller than start address The end address is smaller than the start address Check the start end address The file cannot be read No HEX data The file opened with the HEX Editor is invalid The program file format may be incorrect The file cannot be written Saving of the program file has failed Check if this file is occupied by another program Temporary file could not be created Abort Can not open lt file name gt Abort File load error Abort The temporary file cannot be created Creation was aborted Confirm that sufficient memory capacity is available in Windows lt file name gt cannot be opened An error occurred during file reading or writing E 1513 Memory cannot be allocated Memory reallocation error Confirm that sufficient memory capacity is available in Windows Confirm that sufficient memory capacity is available in Windows E 1514 Check sum error Continue It was detected that the checksum of the program file opened by the HEX editor was invalid Click OK to continue checksum verification Click Cancel to abort checksum verification E1515 Cannot open lt file name gt Abort The program file specified by the HEX editor cannot be opened E 1516 Error line lt line number gt Data error Abort DATA Check An illegal data exists in line ine number in the program file
138. e sig Description of the function Executes a similar function to the programming GUI Device menu gt Signature read command Example of usage Command Status Status LED Message display Screen output sig Display while executing the BUSY Signature lt Display example gt command Device name Dxxxxxxxxx Device data Xxx XX XX Xx Device end addr xxxxxxxx Security Flag xxxx Boot Block Number xxxx Device Version x xx Firmware Version x xx Display after executing the PASS Returns to the display PASS command When completed before executing the Signature operation finished normally command Display after executing the ERROR ERROR xxx ERROR Exxx lt text gt command When terminated XXXXXXXXXXXXXXXX abnormally R20UTOOO8EJ0600 Rev 6 00 RENESAS Page 162 of 224 Sep 30 2013 PG FP5 V2 11 8 5 17 slb command Executes Set Lock bits command Input format slb Description of the function USAGE COMMUNICATION COMMANDS Executes a similar function to the programming GUI Device menu gt Set Lock bits command The lock bit setting is according to the setting saved in the ESF file Example of usage Command slb Status Status LED Message display Screen output Display after executing the PASS Returns to the display lt Display example gt command before executing the Set LockBits When completed normally command PASS LockBits operation finished Dis
139. e and not checking it will set the normal mode If checked Enable Bank mode cannot be checked When in the simple mode the functions of the FPS control buttons and message display will change When the NEXT button is clicked the programming area will be switched Clicking the ENTER button or START button will execute the Autoprocedure E P command The message display will display 1 the programming area number 2 the program file name and 3 the checksum and 4 command name Immediately after the program file is downloaded the checksum will show H xxxxxxxx At this time the program file will be checked using 32 bit CRC calculations from the start to the end address After this executing File menu gt Checksum command will display F xxxxxxxx The default is not to have this box checked 1 2 O sample hex H AFE383BCO E P gt 3 Figure 4 35 Example of Message Display Checksum comparison check box When Device menu gt Checksum command is executed and the checksum of the target device is displayed the checksum of the program file stored in FP5 will be referenced and the results displayed Checking this box will cross reference the checksum and not checking it will not The default is not to have this box checked gt Sum Checksum 0x623E Checksum compare PASS Checksum operation finished Figure 4 36 Example of Action Log Window Program file size monitor function
140. e specifications lon lot eAfter turning on the FP5 power supply the states of the various terminals before and after command execution will be as follows The RESET pin will use Low output However it will be Hi Z if Hi Z is set with the FP5 Manager The pins other than the RESET pin and GND pin will be in the Hi Z state eObserve the waveforms of the terminals on the target device If the electrical specifications are not satisfactory then shape the waveforms by adding buffers and so on If using a cable other than the included target cable be sure to check the waveforms eBasically the power supply and clock for the target device should be supplied from the target system This however excludes some target devices which require supply from the FP5 When outputting the clock from the FP5 if the input specs of the target device are not satisfactory then be sure to shape the waveform eBe sure to consider contact quality such as conductivity durability of the connector connected to the target cable We recommend a mechanism that connects to the GND pin eUnused pins of the target device are set to input mode Leave them open the RESETsignal of the FP5 Do not generate RESETwhile the FP5 is connected This must be especially noted in a target system in which an external watchdog timer is used that of the CPU RESETpin are the same Correct connection lt 1 gt Target device FP5 RESET RESET IC is an open drain t
141. e 47 of 224 Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE Note Ina microcontroller that supports ID Tags of data flash for the saved program file contents of the data flash area refer to APPENDIX B SUPPLEMENTARY INFORMATION Figure B 1 Relationship Between HEX Editor and Saved Program File Mapping of the data flash memory may differ between normal operation and flash memory programming mode Refer to the user s manual of the MCU for more information on mapping when the flash memory programming mode is selected 2 Upload from FP5 command The Upload from FP5 command is used to upload the program file PR5 file and ESF file saved in a valid programming area File Upload E xj lt l gt P Upload program file from FPS HEX file D FPS_PR3 sample hex Save as lt 2 gt PC Upload Parameter Setting files from FPS Parameter file D FP5_PRJI 78F1166 pr5 Setting file D FPS_PRI 7EF1 166 esf lt 3 gt gt Range Hex Start jo End FFF lt 4 gt gt Option Show data a When a 78K product or V850 and RL78 family product without data flash memory is selected xl lt l gt Upload program file from FPS HEX file D FPS_PR3 sample hex Save as lt 2 gt P C Upload Parameter Setting files From FPS Parameter file D FP5_PRJ 70F3375 pr5 Setting file D FPS_PRIY70F3375 esF IV Code Range Hex Start fo End FrFF lt 3 gt gt JV Data Range Hex Start 4000
142. e FP5 will be reset Example of usage Refer to the following pages R20UTOOO8EJO0600 Rev 6 00 RENESAS Page 149 of 224 Sep 30 2013 PG FP5 V2 11 USAGE COMMUNICATION COMMANDS Command Status Status LED Message display Screen output version_up Display after executing Off BUSY Are you sure you want the command before to update the Firmware downloading y n Press y to continue Press n to cancel Display after pressing y Off BUSY Preparing storage OK Now loading Display during download Off BUSY Display after end of Off BUSY Refer to lt 1 gt below normal download Press y to continue Press n to cancel Display after pressing y Off Selfprogramming Refer to lt 2 gt below Firmware lt 1 gt OK kkkk CAUTION kkkk Now the Firmware will be written Please ensure that the correct Firmware Update file has been downloaded the Power is NOT disconnected during this operation the Programmer is NOT reset during this operation Do you want to continue y n R20UT0008EJ0600 Rev 6 00 7tENESAS Page 150 of 224 Sep 30 2013 PG FP5 V2 11 USAGE COMMUNICATION COMMANDS lt 2 gt FP5 Selfprogramming Vx xx Checking FLMDO level OK Erase flash OK Blank check OK Firmware Update succeeds Restarting FP5 FFFFFFF PPPPP 555555 F P P 5 F P P5 F P P 55555 PPPPP 5 P 5 5 5 P P 5 P 5555 Firmware Version Vx xx Board H W Vx FPGA Vx S
143. e PRS files pr5 stored in the FP5_PRu folder in the programming GUI installation folder ESF file Delete ESF files esf stored in the FP5_PRu folder in the programming GUI installation folder or other folder 3 4 Updating Programming GUI Firmware and FPGA The firmware and FPGA are programs embedded in the device for controlling the FP5 Updating the programming GUI firmware and FPGA enables the following e Addition of newly supported functions or devices e Correction of restrictions Use of the latest versions of the programming GUI firmware and FPGA are recommended to assure the FP5 operation The latest versions are available on the following websites URLs e Except for Europe area http www renesas com pg_fp5 e For Europe area http www renesas eu update gt Section PG FP5 EE Note If update of firmware and FPGA is improperly performed FP5 may no longer operate Refer to the following procedure or method for updating Note Ifthe firmware or FPGA is updated the PRS file ESF file or program file may be deleted In such cases download the PR5 file ESF file or program file again Be sure to follow the procedure below when updating the firmware and FPGA 1 Check the current version Refer to 3 4 1 Checking the current version 2 If not the latest version update the programming GUI Refer to 3 4 2 Installation of programming GUI 3 Update the firmware using the latest programming GUI Refer t
144. e area is complemented with FFh to 256 K bytes and 256 K bytes of range is calculated R20UTOOO8EJ0600 Rev 6 00 RENESAS Page 51 of 224 Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE LT xlnlx File Programmer Device Help Programmer FP5GUI Y2 07 Firmware Y2 07 ProgArea 0 Mode Standard mode unsecured Parameter and Setting file 78F1166 pr5 V1 00 78F1166 est Wed Dec 07 20 57 31 2011 Download file Name sample hex Date Tue Mar 8 07 57 00 2011 Type HEX file Address 00000000 0003FFFF File checksum Arithmetic checksum 16 bit 00000000 0003FFFF 2A8E a When a 78K product or V850 and RL78 family product without data flash memory is selected Eile Programmer Device Help Programmer y FP5GUI 2 07 Firmware Version V2 07 Firmware 2 07 v1 ProgArea 0 MC10340174 Mode Standard mode unsecured 90000000 0003FFFF Parameter and Seting fle 00400000 0040FFFF Name 7OF3375 pr5 Checksum Total 2A8E Version 1 00 Name 7OF3375 est Date Fri Nov 04 10 45 09 2011 m Download file Name sample hex Date Tue Mar 8 07 57 00 2011 Type HEX file Code flash O0000000 0003FFFF Data flash File checksum Arithmetic checksum 16 bit 248E 00000000 0003FFFF 0000 00400000 0040FFFF 2A48E b When a V850 or RL78 family product with data flash memory is selected R20UTO008EJO600 Rev 6 00 RENESAS Page 52 of 224
145. e opened The latest setting will be used Incorrect version information or an old version was detected Update the FP5 firmware Parameter area format is not match with initial file Do you want reset parameter area format The factor for dividing the programming area does not match the one defined in the INI file Select whether to reset the division factor If reset it is divided into four areas and the contents are deleted No invalid Parameter file defined GUI can not work properly No parameter file exists in this project folder Please select parameter files The GUI will not operate normally because no valid PR5 file has been defined Set it in the Device Setup dialog box There is no parameter file in user selected folder GUI waited user to find out one or more parameter files in other folder E 1201 Invalid file The specified file cannot be opened Set it in the Device Setup dialog box E 1202 lt Setting file name gt is not valid Using most recent An incorrect format or value was detected in the ESF file settings The ESF file defined in the INI file will be used instead Set it in the Device Setup dialog box E 1203 lt Parameter file name gt is not valid Using most recent settings An incorrect format or value was detected in the PR5 file The ESF file defined in the INI file will be used instead Set it in the Device Setup dialog box E 1204 Download of parameter file
146. e terminal Note The FP5 and target system may be damaged if the voltage between the FP5 GND and the target system GND is different Use the GND cable to match the voltage before connecting the target cable Banana Jack Spade terminal Figure 9 17 GND Cable Outline Note Part number of banana jack TJ 2167 made by Sato Parts Co Ltd Part number of spade terminal BPF1 25 3 red Daido Solderless Terminals Mfg Co Ltd 9 6 Remote Connector The remote connector a 15 pin D SUB female connector is laid out on the target connector side of the FPS Figure 9 19 Remote connector 15 Pin D SUB Female Connector Pin Assignment Note Part number of remote connector a 15 pin D SUB female connector 07433FB015S200ZU Suyin Connector R20UTOOO8EJ0600 Rev 6 00 RENESAS Page 173 of 224 Sep 30 2013 PG FP5 V2 11 NOTES ON TARGET SYSTEM DESIGN 10 NOTES ON TARGET SYSTEM DESIGN This chapter explains the basic notes on the target system for writing to the flash memory in the target device using the FPS 1 Target Device Pin Recommended Design Common item eWhen connecting the FP5 output signal pins refer to 11 SPECIFICATIONS OF TARGET INTERFACE CIRCUITS and pull up or pull down with a resistance in compliance with the device specifications Vin Vi eWhen connecting the FP5 input signal pins refer to 11 SPECIFICATIONS OF TARGET INTERFACE CIRCUITS and pull up or pull down with a resistance in compliance with the devic
147. eSuite and PG FP5 and USB driver for PG FP5 are installed the programming GUI for PG FP5 and USB driver for PG FP5 are included in the target software of the CubeSuite integrated uninstaller If you don t want to delete them remove them from the uninstallation targets 12 If a CubeSuite instance launched via Rapid Start is in the notification area system tray during installation the following error will appear Exit the application and run the installer again Question Q0140035 The Following applications in the installation folder are running Close these applications and click Retry to continue The application may display the icon in the notification area system tray CubeSuiteW exe i Cancel R20UTOOO8EJ0600 Rev 6 00 7tENESAS Page 31 of 224 Sep 30 2013 PG FP5 V2 11 SOFTWARE INSTALLATION 3 3 Uninstallation This section explains how to uninstall the programming GUI USB driver parameter file PR5 file customized setup file ESF file and setting information file INI file The uninstallation order is prescribed Table 3 2 Uninstallation Item Method Programming Open Add or Remove Programs or Add Remove Programs on the Control Panel and uninstall GUI USB driver this program The names are PG FP5 Vx xx and USB Driver x86 for PG FP5 or CubeSuite USB Driver x64 for Renesas MCU Tools Parameter files pr5 setting files esf and INI file FP5 ini are not deleted PR5 file Delet
148. eaae scenes seaeeesaaeeseaeeseeeeescaeeesaeeeeneeees 23 2 HARDWARE CONFIGURATION 0 ccecccececeeeeeeeceeeee eee eeeeaeedeeeeeeaeee cage eeeaaeseceeeeaeeeeaaeseeaeeseeeeescaeeesaeeneneeee 25 2l System Configuration cois teaie dedes ated eisliseadie detdede ates deeslclseetes dene di entes skein ndanete gies 25 2 AT THOSE machhe eearri inei iire NEEE EEEE E EEE S ERE ESES 25 212 S6rialcabl enerne e ae A EANN EAEE AEA RA 25 23 USB CADIC is scccuttt ceuvetat agiri adua ina aaie aa aie ae Caie aeea GEER 25 2 AA AC aAdaPtOT aeisi eaaa a a e a a a a a aa aiii 25 21o Target CAG vii scadetaescuee tas ctdehansdeegnasdeehenbascupy AERE AEAEE E ENEE E EE REE OE E 26 2 1 6 GND cables gimis itune a aaae i a E E TRE AEE EE AE a ER 26 eN EPDE E EE E E A E E A E E E E E A 26 eLa Programada plol soaa T 26 2 2 Names and Functions on Main Unit cece ee eeeeeeeeeeeeeeeeeeeeeeeeeaeeeeeseeeeeeesaeeeeeeeeeeeeeeneaeeeeeeeaeees 27 2 2 1s FPS Control paneleran iania EE EEE E EERE 27 2 2 2 FPO COMECON oranan AR A AA A E 28 3 SOFTWARE INSTALLATION 0 s0 iteseisse cesecdeaceeeeaness dadenscneesaeecnsedataccevnansanpesdeabeecsine savediencadeaaycasadentiadeeaiee caine 30 3 1 Obtaining Software a 23 4i ane eau inte de iadn dente eate dail eate deat diets nitiaisi ae 30 Bie WASTAN ATION EE ee vnntcc tenance eve nahcite febab E E cae evoandeedesdndverpeahats fhbadeseceshe de Arandeedendeeeeeee 30 3 22 le NOTES OM IMStAM Al OM secctidiccsdaasececd ozutcecede vied c
149. ecksum error has occurred in line line number The program file format may be incorrect Select whether to continue the operation Too large address Edit range 0 0x420000 The program file address is too large Set an address value in the range 0 to 420000h E 1532 Data Flash format error lt data address gt Invalid ID Tag Parameter of Start Address is invalid The data flash format is invalid Valid 4 bytes are followed by an ID tag of 4 byte FFh or 4 byte 00h in the data flash area An error occurs if the ID tag includes defects or FFh or 00h is included The value input as the start address is not a valid hexadecimal number E 1533 Parameter of End Address is invalid The value input as the end address is not a valid hexadecimal number E 1534 Temporary file could not be read Abort Dump Hex The temporary file cannot be read Opening of the HEX Editor was aborted E 1535 Can not open lt file name gt Abort Dump Hex lt file name gt cannot be opened Opening of the HEX Editor was aborted E 1536 File load error Abort Dump Hex A file load error Opening of the HEX Editor was aborted E 1537 Error line lt line number gt Check sum error Abort Check sum Check An incorrect checksum was detected in line ine number in the program file The program file format may be incorrect E 1538 Can not read temporary file Reading of the tempor
150. ecksum of the selected program file Selected calculation modes differ with the MCU R20UTO008EJO600 Rev 6 00 Sep 30 2013 2tENESAS Page 50 of 224 PG FP5 V2 11 PROGRAMMING GUI USAGE Table 4 2 Checksum calculation Checksum calculation Correspondence microcontroller Arithmetic 16 bit arithmetic 78K and V850 products and RL78 family products that support the checksum 16bit subtraction Checksum command Arithmetic 32 bit arithmetic RX R8C and SuperH families checksum addition CRC sum 16bit 16 bit CRC RL78 family products that support the CRC check command CRC sum 32bit 32 bit CRC 78K and V850 products RL78 family products that support the Checksum command RX R8C and SuperH families Note With the 16 bit arithmetic subtraction mode the lower 4 digits of the result from which a value is subtracted from 00h in 1 byte units are displayed With the 32 bit arithmetic addition mode the lower 8 digits of the result to which a value is added from O0Oh in 1 byte units are displayed With 16 bit mode the 4 digit result of CRC16 function calculation is displayed For details on arithmetic specifications refer to APPENDIX B SUPPLEMENTARY INFORMATION Figure B 5 16 bit CRC Calculation Specifications With 32 bit mode the 8 digit result of CRC32 function calculation is displayed For details on arithmetic specifications refer to APPENDIX B SUPPLEMENTARY INFORMATION Figure B 2 32 bit CRC Calculation
151. ed to a 16 pin 2 54 mm pitch multipurpose connector R20UTOOO08EJ0600 Rev 6 00 7tENESAS Page 169 of 224 Sep 30 2013 PG FP5 V2 11 CONNECTORS AND CABLES Note The following are the recommended connectors to be connected to 16 pin 2 54 mm pitch multipurpose female connectors e HIF3FC 16PA 2 54DS made by Hirose Electric Co Ltd right angle type e HIF3FC 16PA 2 54DSA made by Hirose Electric Co Ltd straight type e 7616 5002PL Sumitomo 3M Limited right angle type e 7616 6002PL Sumitomo 3M Limited straight type When using a self made cable because the supplied cable cannot be used due to the target system specifications the cable characteristics should be equivalent or higher than those of the supplied cable Note that communication may be performed at high speed depending on the communication settings Consequently communication errors may occur and causing abnormal operation R20UT0008EJ0600 Rev 6 00 RENESAS Page 170 of 224 Sep 30 2013 PG FP5 V2 11 CONNECTORS AND CABLES 9 4 2 Target cable 14 pin type The target cable 14 pin type is a standard shielded cable approximately 42 centimeters long The target cable is equipped with a 15 pin HD SUB male connector and a 14 pin 2 54 mm pitch multipurpose female connector 15 pin HD SUB male connector 14 pin 2 54 mm pitch multipurpose female connector Figure 9 13 Target Cable 14 pin type Outline Figure 9 15 14 Pin 2 54 mm Pitch Multipurpose Fem
152. ed with this check box Select to enable or clear to disable the function Note When the Voo pin power supply detection function is disabled the product can be used even if the Vpn pins in the FP5 and the target system are not connected In such a case make sure that Vop power generated in the target system always matches the output signal power supply generated in the FP5 Wide Voltage mode check box This check box can be used to select whether to use wide voltage mode or full speed mode If this check box is checked commands are executed in wide voltage mode If this check box is not checked commands are executed in full speed mode This check box becomes available when a device that supports this function is selected For details about wide voltage mode and full speed mode see the user s manual of the target device Note When loading an HCUHEX file the HCUHEX file is handled as master data so the HCUHEX file settings are applied to the target device The setting of this check box therefore cannot be changed FLMDO or Vpp V CLK RESET Serial Out and Serial In boxes Through the PRS file this box displays the various default terminal levels FLMDO or Vpp V uses volt V units CLK uses Vdd or Vdd2 RESET uses Vdd or VDD Reset TrigIn and Serial Out and Serial In use Vdd Note that VDD Reset TrigIn is displayed when the Enable target RESET check box of the Command options area is enabled lt 2 gt Command options a
153. elect Transfer T gt Transfer text file T and then select the PRS file Example of usage Command downprm Status Status LED Message display Screen output Display after execution of the BUSY BUSY Now loading command before downloading Display during downloading BUSY BUSY Display after normal ending of PASS Returns to the display before PASS the download executing the command Display after error ending of the ERROR Returns to the display before ERROR lt text gt download 8 4 5 downset command Downloads the ESF file Input format executing the command downset Description of the function Downloads the ESF file After this command is executed the ESF file must be downloaded to the FPS in ASCII format using communications software If using HyperTerminal select Transfer T gt Transfer text file T and then select the ESF file Example of usage Command Status Status LED Message display Screen output downset Display after execution of the BUSY BUSY Now loading command before downloading Display during downloading BUSY BUSY E Display after normal ending of PASS Returns to the display before PASS the download executing the command Display after error ending of the ERROR Returns to the display before ERROR lt text gt download executing the command R20UT0008EJ0600 Rev 6 00 7tENESAS Pa
154. ent used 2 Voo for the target system is supplied for the purpose of supplying power to the target device through which writing is performed so the specification cannot secure sufficient capacity to operate the target system Use the power source on the target system when performing on board programming 3 The AC adaptor differs depending on the region where the product is being used For details see Table 1 2 AC Adaptors for PG FP5 Used in Each Region An AC adaptor is required when using the PG FP5 so be sure to purchase an AC adaptor R20UTOOO8EJO0600 Rev 6 00 RENESAS Page 21 of 224 Sep 30 2013 PG FP5 V2 11 OVERVIEW 1 8 AC Adaptors for PG FP5 The specifications of the AC adaptor for the PG FP5 differ depending on the region where the product is being used Be sure to use the appropriate AC adaptor for your region Note that an AC adaptor is not included with the PG FPS5 The appropriate AC adaptor must be purchased separately Table 1 3 AC Adaptors for PG FP5 Used in Each Region Notes 1 2 Note 3 Part Number Region AC adaptor Japan QB COMMON PW JP sold separately USA QB COMMON PW EA China QB COMMON PW CN Hong Kong QB COMMON PW HK Korea QB COMMON PW KR Singapore QB COMMON PW SG Chinese Taipei QB COMMON PW TW Notes 1 The AC adaptor corresponding to the region from which the order was received will be shipped 2 For regions other than those listed above please contact a Renesas Electronics sales represent
155. erial No xxxXxxxxxxx Standard mode unsecured 8 5 Description of The FP5 Device Commands This section describes the FP5 device commands 8 5 1 bIn command Executes Blank check command Input format bln Description of the function Executes a similar function to the programming GUI Device menu gt Blank check command Example of usage R20UT0008EJ0600 Rev 6 00 RENESAS Page 151 of 224 Sep 30 2013 PG FP5 V2 11 USAGE COMMUNICATION COMMANDS Command Status Status LED Message display Screen output bln Display while executing the BUSY Blank chk Chip Blank check Chip command Chip mode ve Display while executing the BUSY Blank chk Block Blank check Block sss to eee command Block mode ee or Blank check Block 000 Blank check Block 001 Blank check Block eee Display while executing the BUSY Blank chk Area Blank check Area 000 command Area mode Bs Blank check Area 001 Blank check Area eee Display after executing the PASS Returns to the display PASS command For blank before executing the Blank check operation devices command finished Display after executing the ERROR ERROR 051 ERROR E051 Not Blank command For not blank Blank chk failed Blank check operation devices finished R20UTOOO8EJ0600 Rev 6 00 RENESAS Page 152 of 224 Sep 30 2013 PG FP5 V2 11 USAGE COMMUNICATION COMMANDS 8 5 2 con command Executes the processes from transition to t
156. ernal Direct mode Operation Mode area Chip lt 11 gt Click the Advanced tab Seu TTT Target Standard Advanced m Supply voltage Flash option s vdd V po Set Security command options r Security flag settings vad v foo 00 Disable Chip Erase On Target i Disable Block Erase Vdd monitoring VV E Disable Program Wide YWoltage mode ia ia Disable Read FLMDO pa tS Disable Boot block cluster reprogramming CLK vid CS RESET pa tS Block protection settings Serial Out fvdd FSW Block end fier z Serial In vad Command options JV Blank check before Erase Sages a Verify after Program E Set Security after Program J Checksum after Program Reset vector setting El Set Option bytes after Program Reset vector pooooooo h P Set GGD SecurityID after Prosram P Run after Disconnect OCD security ID setting Enable target RESET Option bytes setting a Cancel FSW Block start Show Address Figure 5 15 Device Setup Dialog Box Advanced Tab lt 12 gt Check the information in the Supply voltage area to make sure that they are set in accordance with the programming environment used In this example it is assumed that the following settings are made Supply voltage area Vdd V 5 00 V Follows the value set in the PRS file Vdd2 V 0 00 V Not
157. es a function similar to the programming GUI Programmer menu gt Self Test command Example of usage Command Screen output selftest CAUTION Remove any plugs from Target and Remote Connector before starting Any hardware attached to those connectors may be damaged by this test a CAUTION Target and Remote connector unplugged If yes press s to start the test s FPGA Test PASS Power Supply Test PASS Target and Remote Interface Test PASS Selftest PASSED 8 4 18 serno command Sets the unique code for embedding in the program file Input format serno lt start address gt lt pattern gt Description of the function Sets the unique code for embedding in the program file This command becomes available when the serial number mode function for embedding a unique code is enabled by the FP5 Manager setting Executing this command sets the unique code in the body of the FP5 The next time a device command that handles the program file such as ep prg and vrf is executed the unique code is embedded at the specified address in the program file The setting of the unique code in the FP5 is cleared on completion of the device command Start address Specifies the start address in hexadecimal Pattern Specifies the unique code in hexadecimal notation A maximum of 64 bytes can be specified Example of usage serno 8000 00010203 OK R20UTOOO8EJO0600 Rev 6 00 RENESAS
158. eted Buffer is modified Are you sure to close The HEX Editor temporary file has been changed This change is lost when the HEX Editor is closed This file is not valid The file selected by the HEX Editor is invalid End record not found created The end record is missing The HEX editor will add the HEX format end record 00000001FF to the file Save Select whether to save the data Click Ok to save the data Click Cancel to not save the data The file is modified Are you sure to quit The file has been modified Select whether to abort the operation Click Yes to abort without saving changes Click No to continue the operation The file is modified Save file The file has been modified Select whether to save changes R20UTOOO8EJ0600 Rev 6 00 Sep 30 2013 7tENESAS Page 199 of 224 PG FP5 V2 11 MESSAGES A 4 Error Messages Displayed in FP5 Message Display Message Invalid PRM data Error Condition Invalid PRM data Possible Workaround The parameter file may include invalid data or the file may be defective Perform setting again by using the correct PR5 file Not connected No device connected to FP5 Issue a con command before the command causing this error 005 Not supported The command issued is not supported on the device and thus cannot be used Check if the target device to be connected has been selected
159. f the boot area and execution of the Erase command with Chip selected in the Operation Mode area will no longer be possible for the device and the Disable Boot block cluster reprogramming function will no longer be able to be disabled R20UTOOO8EJ0600 Rev 6 00 7RENESAS Page 94 of 224 Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE lt 6 gt Block protection settings area In this area block settings when the Disable Boot block cluster reprogramming check box is selected and block settings for the flash shield window function can be performed Block protection settings FSW Block end 127 FSW Block start Boot Block end Show Address Figure 4 75 Block protection settings Area Boot Block end drop down list Select a block number from this list if the Disable Boot block cluster reprogramming check box is selected This list shows the block numbers where the flash memory in the target device is configured Refer to the user s manual of each target device for the setting method FSW Block start and FSW Block end drop down lists Select the block subject to the flash shield window function using these lists Only the specified range can be written through flash memory self programming This setting does not affect programming using the programmer This function can prevent areas out of the specified range from being written to by mistake during flash self programming These lists show the block numbers w
160. failed Downloading of the PR5 file has failed The PR6 file may be invalid Re set the connection between the host machine and FP5 E 1205 Download of setting file failed Downloading of the ESF file has failed The ESF file may be invalid Re set the connection between the host machine and FP5 E 1206 File name is not valid The specified file cannot be opened for writing Make sure that the file attribute is not set to read only E 1400 Password is invalid Effective password consists one to eight any alphanumeric character It is case insensitive The password does not match Yes Retry to input the password No Initialize the password and format to the shipment condition Password contains invalid character or out of size range Password is different with defined content R20UTOOO8EJO0600 Rev 6 00 Sep 30 2013 7tENESAS Page 194 of 224 PG FP5 V2 11 MESSAGES No Message This file is not valid Caution Data Flash access unit is DWORD 2 Description The file opened with the HEX Editor is invalid The data flash area can be accessed in double word units but an access was attempted in unsupported units Caution Out of range The address range for saving data is out of the code flash or data flash address range Check the start end address Caution Start address should not larger than End address The start address is larger than the end ad
161. for the target device s option byte When this command is executed the settings specified in the Option byte setting area on the Advanced tab of the Device Setup dialog box are applied to the target device For details of the option byte settings see 4 3 3 15 c lt 9 gt Option bytes setting area 10 Set ID Code command The Set ID Code command specifies the settings for the target device s option byte When this command is executed the settings specified in the OCD ID setting area on the Advanced tab of the Device Setup dialog box are applied to the target device For details of the OCD security ID settings see 4 3 3 15 c lt 8 gt OCD security ID setting area 11 Set Lock bits command The Set Lock bits command specifies the lock bits of the target device When this command is executed the settings specified in the Set Lock bits area on the Advanced tab in the Device Setup dialog box are reflected to the target device For detais about lock bit settings refer to 4 3 3 15 c lt 10 gt Lock bit setting area R20UTOOO8EJ0600 Rev 6 00 RENESAS Page 71 of 224 Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE 12 Connect command Executes the con command or dcon command When the con command is executed a check will be added and when the dcon command is executed the check will be removed When autocon off or autocon on is executed with the autocon command the connect command is en
162. from the fall of the PASS or ERROR signal until the BANK signal can be input L I I TPPEBA lt gt tPBUIN R20UTOOO8EJO0600 Rev 6 00 RENESAS Page 218 of 224 Sep 30 2013 PG FP5 V2 11 ELECTRICAL SPECIFICATIONS OF REMOTE INTERFACE D 3 3 Simple mode Rise time lo 8mA Fall time lo 8mA Low level width of input signal tepocn Time from switching on the FP5 POWER button until the rise of the CONN signal tecnpo Time from switching off the FP5 POWER button until the fall of the CONN signal FP5_POWER button CANCEL ENTER NEXT START VRF CLEAR R20UTOOO8EJO0600 Rev 6 00 RENESAS Page 219 of 224 Sep 30 2013 PG FP5 V2 11 ELECTRICAL SPECIFICATIONS OF REMOTE INTERFACE 2 tPBaIn Time from the fall of the NEXT signal until the VRF or START signal can be input teinsu Time from the fall of the VRF START or ENTER signal until the rise of the BUSY signal When the input signal is input after having changed the program area Time from the fall of the VRF START or ENTER signal until the rise of the BUSY signal When the input signal is input without changing the program aia tPcLPE Time from the fall of the CLEAR signal until the fall of the PASS or ERROR signal tPPene Time from the fall of the PASS or ERROR signal until the NEXT signal can be input R20UT0008EJ0600 Rev 6 00 RENESAS Page 220 of 224 Sep 30 2013 PG FP5 V2 11 ELECTRICAL SPECIFICATIONS OF REMOTE INTERFACE tPPENE i lt gt
163. g box in Fig 4 30 will open If a password is registered the dialog box in Fig 4 32 will open Welcome to FP5 Manager AN 12500 Welcome to FPS Manager Yes Continue to set FPS Manager No Return to Standard mode unsecured Figure 4 30 Welcome to FP5 Manager Dialog Box Clicking Yes will open the following dialog box Clicking No will close the dialog box Password setting ark PASSWORD Confirm PASSWORD Cancel Figure 4 31 Password setting Dialog Box In order to register a password input a password into the PASSWORD box and Confirm PASSWORD box and then click OK The password must be made up of up to eight alphanumeric characters Differences in upper and lower case are not recognized Clicking Cancel will close the dialog box Login to FP5 Manager Please enter your password PASSWORD Cancel Figure 4 32 Login to FP5 Manager Dialog Box Input the password into the PASSWORD box and then click OKI If the password is correct the dialog box in Figure 4 34 will open If the password is wrong then the dialog box in Figure 4 33 will open Clicking will close the dialog box Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE AN E1401 The password does not match Yes Retry to input the password No Initialize the password and format to the shipment condition Figure 4 33 FP5 Dialog Box Clicking Yes will
164. ge 136 of 224 Sep 30 2013 PG FP5 V2 11 USAGE COMMUNICATION COMMANDS 8 4 6 fcks command Executes the programming GUI File menu gt Checksum command Input format fcks lt type gt lt code start gt lt code end gt lt data_start gt lt data_end gt lt UB_start gt lt UB_end gt Description of the function Executes a similar function to the programming GUI File menu gt Checksum command Specifies the calculation method starting address and number of bytes in the options type Specifies the calculation method crc 32 bit CRC method crcl6 16 bit CRC method ari 16 bit subtraction calculation method When a V850 RL78 and 78K is selected 32 bit subtraction calculation method When a RX SuperH and R8C is selected kOs_sp Division method original start The starting address is specified in hexadecimal The code area data area and user boot area can be specified end Specifies the end address in hexadecimal The code area data area and user boot area can be specified Example of usage Command Screen output fcks crc O 3fffff Checksum Code 000000 3FFFFF 26218DD4 fcks ari O Sfffff Checksum Code 000000 3FFFFF 61C0 fcks kOs_sp 0 3fffff Checksum Code 000000 3FFFFF 060E fcks ari O 3fffff 400000 41 ffff Checksum Code 000000 3FFFFF 61C0 Checksum Data 400000 41FFFF 0200 Checksum Total 63C0 R20UT0008EJ0600 Rev 6 00 RENESAS Page 137 of 224 Sep
165. ged lt 3 gt Address range selection area This area is enabled with the Upload program file from FP5 button clicked Specify the address range of the program file that is to be saved When a V850 and RL78 family product with data flash memory is selected Code flash and Data flash are displayed For the RX family R8C family and SuperH family User mat Data mat and User boot are displayed lt 4 gt Option area When the Show data check box is checked the action log window will be displayed when the upload is executed Pressing the OK button will start the upload with the selected settings Pressing the Cancel button will close the dialog box without executing the upload 3 Checksum command The Checksum command calculates the checksum of the selected program file downloaded to FP5 and displays the result When this command is executed the Checksum dialog box appears Select the optional calculation method and the target address range and click the OK button The result will then be displayed in the File Checksum area in the action log window and programmer parameter window This command can be executed after the Setup command is executed If the Setup command is executed again after the Checksum command is executed the result displayed in the File Checksum area in the programmer parameter window will be cleared R20UTOOO8EJ0600 Rev 6 00 7tENESAS Page 49 of 224 Sep
166. get devices and operation option are stored The extension of the file is esf Do not change the data in the file If the file is changed operation of the FP5 is not guaranteed Conversion adaptor to write programs to target device Program file The program file is the program written to the microcontroller For the FP5 the following file formats are supported lt RL78 78K V850 gt a Intel HEX format HEX file b Intel HEX format HCUHEX file c Motorola S format HEX file d Motorola S format HCUHEX file lt RX family R8C family SuperH family gt a Intel HEX format HEX file b Motorola S format HEX file c DDI file Note Addresses may not be consecutive but they must be in ascending order Free space will be filled with FFH upon download to the FP5 When download is performed with the programming GUI it has the function to sort addresses in ascending order Note For details on the formats refer to How to Order ROM Code Information C10302E Note The program file name does not support 2 byte characters Flash options General term for microcontroller operation settings such as security settings Note2 Option data General term for flash options wide voltage mode and full soeed mode HEX file A HEX file of Intel HEX format type or Motorola HEX format type without option data HCUHEX file A HEX file that integrates option data into a HEX file generated by using the HEX Consolidation Utility HCU which is used to
167. gt Enter Click the button Data mat sum XXXXXXXX gt Enter Click the ENTER button UB mat sum XXXXXXXX gt Enter Click the ENTER button Total sum XXXXXXXX gt Enter The comparison result is also displayed if Enable checksum compare function in FP5 management setting is enabled Checksum Compare PASS or ERROR R20UTOOO8EJ0600 Rev 6 00 Sep 30 2013 7tENESAS Page 115 of 224 PG FP5 V2 11 Table 6 1 Commands Menu 2 Main Menu Commands gt Submenu Set OptionBytes Pressing the ENTER USAGE IN STANDALONE MODE Description button executes the Set Option bytes command Set ID Code Pressing the ENTER button executes the Set ID Code command Set Lock bits Blank check Pressing the Pressing the ENTER ENTER button executes the Set Lock bits command button executes the Blank check command Signature Pressing the ENTER button executes the Signature read command The device name is displayed in the message display Display example Sig nature D78F1166 Connect Pressing the ENTER button executes the con command Disconnect Progarea 6 3 2 Type Setting menu Pressing the ENTER button executes the dcon command Used to select the valid programming area The valid programming area can be changed by pressing the ENTER button l
168. gure 4 85 Programming Parameter Window Programmer area Displays information such as the programming GUI version FP5 firmware version valid programming area number and FP5 mode Parameter and Setting file area Displays information such as the PR5 file name and its version and the ESF file name and date set in the valid setting programming area Download file area Displays information such as the file name date type and start and end addresses of the program file set in the valid setting programming area If an HCUHEX file is selected HCUHEX file is displayed in Type If an HEX file without option data is selected HEX file is displayed in Type File checksum area Displays the checksum result for execution of the Checksum command in the File menu Target device area Displays information of the settings on the Standard tab in the Device Setup dialog box This area is updated after the OK button in the Device Setup dialog box is clicked and files are downloaded R20UTOOO8EJ0600 Rev 6 00 7tENESAS Page 100 of 224 Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE 4 7 Status Bar The status bar shows the progress as a color or with a message when a PRS file ESF file or program file is selected or when a command is executed for the target device PC i ___ ____ O Figure 4 86 Status Bar Table 4 7 Status Bar Displays Immediately after the programming GU
169. hapter covers how to start the system execute the Autoprocedure E P command and program the target device e Series of operations described in this chapter The operation conditions for this chapter are as follows Host machine interface USB Programming area Divided by 4 Area 0 Target device UPD78F1166 with program adaptor Communication channel UART 1MBaud Clock setting None Internal OSC Internal Direct mode Operation mode Chip Supply voltage Supplied from Target system 5 V Command option Blank check before Erase enabled Flash option Not used The operation steps described in this chapter are as follows 1 Installation of programming GUI and USB driver 2 Installation of PRS file 3 System connection 4 Connection of target system 5 Startup of programming GUI 6 Setting of programming environment 7 Execution of Autoprocedure E P command 8 System shutdown 1 Installation of programming GUI and USB driver Refer to 3 SOFTWARE INSTALLATION and install the programming GUI and USB driver in the host machine 2 Installation of PR5 file Refer to 3 SOFTWARE INSTALLATION download the PRS file for the UPD78F1166 and copy it to the FP5_PRJ folder in the programming GUI installation folder 3 System connection lt 1 gt Connect the USB connector of the FP5 to the USB port on the host machine using a USB cable lt 2 gt Plug the FP5 power supply connector into the AC outlet 100 to 240 V
170. he Device Setup dialog box will be reflected in the target device For details on the security functions refer to 4 3 3 15 c lt 4 gt Set Security command options area 7 Checksum command For the 78K V850 RL78 family RX family and SuperH family the Checksum command reads the checksum calculated in the target device and displays it in the action log window When using a 78KOS Kx1 microcontroller or the PD78F9334 this command also displays the checksum of the program file and compares both For the R8C family it reads the content of the flash memory of the target device and displays the checksum calculated in the FP5 on the action log window Note The checksum read by this command differs from the one displayed in the File checksum area in the programmer parameter window For details on the File checksum area refer to 4 3 1 3 Checksum command The checksum is calculated as follows Note that this is the result when the Enable Checksum Compare Function check box of the FP5 management Setting M dialog box is not selected R20UTOOO8EJ0600 Rev 6 00 7RENESAS Page 69 of 224 Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE lt When using 78K other than 78KOS Kx1 UPD78F9334 V850E1 V850ES RL78 family gt Method Subtraction 16 bit arithmetic Range Area set in the Operation Mode area on the Standard tab in the Device Setup dialog box gt sum Code flash Ox8FCD Data flash 0x1000 Total Ox9FCD
171. he firmware R20UTOOO8EJO0600 Rev 6 00 Sep 30 2013 Updating the FPGA will take several minutes ATTENTION The process of updating your FPGA must NOT be interrupted Without FPGA this FP5 GUI will NOT run properly Install new FPGA in your programmer 7tENESAS The FPGA update will take several minutes ATTENTION The FP5 may not operate normally if a proper FPGA is not installed Select whether to update the FPGA Page 197 of 224 PG FP5 V2 11 MESSAGES No Message 2 Description 2212 You must be careful before start Self test Note the following points before performing self testing ATTENTION ATTENTION Remove any plugs from Target and Remote Unplug all target connectors and remote connectors connector before starting If any hardware is connected it may be damaged by this Any hardware attached to those connectors testing may be damaged by this test Start Self test 12213 Project folder and parameter file is not defined Click button Yes if create the setting file newly Click button No if select the existing setting file 12214 Parameter setting file is not defined use most recent setting as default 12215 Selected parameter files are copied to specified User selected parameter files are copied to the project folder destination 12216 lt Parameter file name gt already exists Do you want
172. he flash memory programming mode to signature verification Input format con Description of the function Executes the processes from transition to the flash memory programming mode to signature verification In order to use this command manual off must be set with the autocon command beforehand Example of usage Command Status Status LED Message display Screen output con Display while executing the BUSY Connecting command Display after executing the PASS Returns to the display PASS command When completed before executing the DxxXXXXXX gt normally command Display after executing the ERROR ERROR xxx ERROR Exxx lt text gt command When terminated XXXXXXXXXXXXXXXX abnormally 8 5 3 dcon command Executes the process to end the flash memory programming mode Input format dcon Description of the function Executes the process to end the flash memory programming mode In order to use this command manual off must be set with the autocon command beforehand Example of usage Command Status Status LED Message display Screen output con Display while executing the BUSY Disconnecting command Display after executing the PASS Returns to the display Device disconnected command before executing the command R20UTOOO8EJ0600 Rev 6 00 7tENESAS Page 153 of 224 Sep 30 2013 PG FP5 V2 11 8 5 4 ep epv command Exec
173. he function If a program file has been downloaded to a valid programming area executing this command will upload the program file in Intel HEX format If this command is executed without any options the upload will be executed with the address size used during downloading If a program has not been downloaded then Invalid argument will be displayed The starting address and number of bytes are designated as options start address The starting address is designated as a hexadecimal number The code area data area and user boot area can be specified length The number of bytes is designated as a hexadecimal number The code area data area and user boot area can be specified Example of usage Command Screen output Press return to start continue output hex 0 3fff Press return to start continue output hex 0 3ffff 400000 20000 Press return to start continue output After the command is executed pressing the Return key will start the upload See below 200000008100810081008100810081008100810081008100810081008100810081008100D0 20002000810081008100810081008100810081008100810081008100810081008100FFFF33 00000001 FF R20UT0008EJ0600 Rev 6 00 RENESAS Page 140 of 224 Sep 30 2013 PG FP5 V2 11 USAGE COMMUNICATION COMMANDS 8 4 10 hlp command Lists available commands with brief descriptions Input format hip Description of the function Lists frequently used commands with brief description
174. he menu bar is checked and becomes valid When this command is executed again the check mark is cleared and the command becomes invalid The FP5 makes a double beep sound when the Autoprocedure E P command is completed normally or makes a buzzer sound when the command is completed abnormally 5 Reset command When the Reset command is executed a software reset can be applied to the FP5 After reset the current versions of the firmware FPGA the FP5 serial number and mode will be displayed in the action log window 6 Self Test command The Self Test command executes the FP5 self testing program The following three items are subject to self testing The self testing program does not affect the PR5 files ESF files and program files saved in the FPS lt l gt FPGA test lt 2 gt Power generation block test lt 3 gt Target remote interface I O test Since execution of the Self Test command involves I O testing a message that prompts the user to disconnect hardware connected the target connector or remote connector is displayed Remove hardware including target system and program adaptor connected to the target connector or remote connector if any Make sure that no hardware is connected and click the OK button self testing will then be executed If the Cancel button is clicked self testing will not be executed R20UTOOO8EJ0600 Rev 6 00 7tENESAS Page 55 of 224 Sep 30 2013 PG FP5
175. he message display After pressing the ENTER button the contrast can be tuned using the NEXT darken or CANCEL button lighten To fix the contrast click the ENTER button FP5 F W Version Displays the FP5 firmware version lt Display example gt FP5 F W Version V1 00 PRM Name Displays the name of the PR5 file stored in the FP5 valid programming area lt Display example gt PRM Name 78F1166 PRM File Version Displays the version of the PR5 file stored in the FP5 valid programming area lt Display example gt PRM File Version V1 00 HEX File Name File Checsum R20UTOOO8EJ0600 Rev 6 00 Sep 30 2013 Displays the name of the program file stored in the FP5 valid programming area lt Display example gt HEX File Name Sample hex n a is displayed if the program file is invalid File Checksum will display the results of executing the programming GUI File menu gt Checksum command lt Display example gt File Checsum 623E ARITHM 7tENESAS Page 121 of 224 PG FP5 V2 11 USAGE THE REMOTE CONNECTOR 7 USAGE THE REMOTE CONNECTOR This chapter describes the use of the remote connector The FP5 can be remote controlled by connecting the remote connector and external control device Remote control can be used to operate and check writing and PASS ERROR displays from the external control device 7 1 Remote Interface Mode The remote interface has
176. heck box is selected the command is executed and the lock bit is disabled after connection with the microcontroller Lock bit enable before disconnect check box If this check box is selected the command is executed and the lock bit is enabled after disconnection from the microcontroller Lock bit set after Program check box If this check box is selected the Set Lock bit command is executed when the Program command is finished Note For details of lock bits refer to the user s manual of the target device lt 3 gt Flash options area For the 78K V850 and RL78 family setting of the Set Security command options security flag settings block protection settings reset vector handling function setting on chip debug security ID setting and option byte setting can performed in this area For the RX family R8C family and SuperH family lock bit setting I O signal setting and ID code can be set When the Get Flash options command is enabled settings in this area can be confirmed by running the Get Flash options command before running the Set Security command Set ID Code command or Set Option bytes command Note 1 For setting of the flash options security flag settings block protection settings reset vector handling function setting on chip debug security ID setting and option byte setting lock bit and ID code refer to the user s manual of the target device 2 When loading an HCUHEX file the HCUHEX fi
177. hen this check box is selected the following dialog box appears Warning A 12401 Caution When Chip Erase is disabled chip cannot be erased and programmed any more Cancel Figure 4 72 Disable Chip Erase Warning Dialog Box Clicking the OK button determines the selection of the Disable Chip Erase check box Clicking the Cancel button cancels the selection of the Disable Chip Erase check box Note Ifthe Disable Chip Erase function is enabled erasure for the device will no longer be possible and the Disable Chip Erase function will no longer be able to be disabled Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE Disable Block Erase check box If the Set Security command is executed with this check box selected the Erase command is disabled for all the selected blocks in the flash memory selected with Block in the Operation Mode area on the Standard tab in the Device Setup dialog box This setting is cleared if the Erase command is executed with Chip selected in the Operation Mode area If this is selected when the RL78 family is selected the following dialog box is displayed 1 2403 Caution When Block Erase is disabled chip cannot be erased and Programmed any more 1 Seb Figure 4 73 Block Erasure Prohibition Warning Dialog Box Disable Program check box If the Set Security command is executed with this check box selected the Erase
178. here the flash memory in the target device is configured Refer to the user s manual of each target device for the setting method Show Address check box Specify the display format in the Boot Block end FSW Block start and FSW Block end drop down lists If this check box is selected the block address is displayed If this check box is cleared the block number is displayed lt 7 gt Reset vector setting area The reset vector handling function can be set in this area Reset vector setting Reset vector 000000 h Figure 4 76 Reset vector setting Area Reset vector text box If the Set Security command is executed with an arbitrary address value input the reset vector is changed to the specified address This setting is cleared if the Erase command is executed with Chip selected in the Operation Mode area lt 8 gt OCD security ID setting area The OCD security ID can be set in this area When the Set ID Code command is executed the settings in this area will be reflected in the target device OCD security ID setting FFFFFFFFFFFFFFFFFFFFFFFF Figure 4 77 OCD security ID setting Area OCD security ID setting text box If the Set ID Code command is executed after entering an on chip debug security ID in this box the on chip debug security ID is set This setting is cleared if the Erase command is executed with Chip selected in the Operation Mode area R20UTOOO8EJ0600 Rev 6 00
179. ic on or manual off The default setting is automatic on on The con command and dcon command are executed automatically off The con command and dcon command are executed manually When set to manual off the con command is executed then the device command can be executed Furthermore various device commands can be executed multiple times Execute the dcon command to terminate Note that the ep epv command will automatically execute the con command and dcon command even if this is set to manual off Example of usage Command Screen output autocon AutoCon is on off autocon on AutoCon is on autocon off AutoCon is off R20UT0008EJ0600 Rev 6 00 RENESAS Page 131 of 224 Sep 30 2013 PG FP5 V2 11 USAGE COMMUNICATION COMMANDS 8 4 2 brt command Confirms and changes the data transfer rate for serial communication with the host machine Input format brt 9600 19200 38400 57600 115200 Description of the function This command can be used with its options to change the data transfer rate for serial communications with the host machine When the data transfer rate is changed it will be necessary to change the data transfer rate of the COM port setting with HyperTerminal and reconnect If no options are used with this command then the current data transfer rate will be displayed If the serial connector is connected then the data transfer rate will be displayed If a USB c
180. icrosoft INET Framework its language pack and the runtime library of Microsoft Visual C which are provided by Microsoft Corporation are necessary The free evaluation version downloaded from our website include the processing for installing the above tools When installing the free evaluation version in the Windows XP or Windows Vista environment where the above tools have not been installed be sure to connect the host machine to the network before starting the setup procedure To set up programming GUI in the PC that is not connected to the network access the Microsoft Download Center and install Microsoft NET Framework 4 before starting the setup procedure 8 If the installer is started on a non Japanese version of Windows then if the path contains multi byte characters it will cause an error and the installer will not start 9 The following folders created after installation including the files under the folders contain files required for the tools to operate Do not delete them Windows is the 32 bit edition and the system drive is C C Program Files Common Files Renesas Electronics CubeSuite Windows is the 64 bit edition and the system drive is C C Program Files Common Files x86 Renesas Electronics CubeSuite 10 To change the folder of the installed tools uninstall all the CubeSuite related software and the programming GUI for PG FP5 and install them again 11 In the environment where the programming GUI for Cub
181. includes the items listed below Check the items Note that the package for the PG FP5 does not include an AC adaptor Purchase an adaptor separately refer to 1 8 AC Adaptors for PG FP5 Table 1 1 Package Components Item Quantity List of Package 1 PG FP5 USB cable Serial cable Target cable 16pin type Target cable 14pin type GND cable PG FP5 Setup Manual Japanese English Table of Toxic and Hazardous Substance and Elements EMC regulation VCCI FCC IE E as alas al aly a 1 5 FP5 System Overview The FP5 system overview is shown in the following diagrams Communications command operation Serial cable HEX editor changes the memory contents i Programming environment CHK ei Host machine setting oj ecksum calculation Self testing function Saved in FP5 internal Standalone operation 2G US 82 amp External control devices Target cable GND cable Manager function passwords security customization etc setting Target system Remote Operation Figure 1 1 FP5 Connection Image Sep 30 2013 PG FP5 V2 11 OVERVIEW lt Programming GUI operation gt The following operations can be performed with the programming GUI For USB connection the USB driver must be installed The settings on the host machine are saved in an INI file e ESF file creation e Downloading program files PRS files and ESF files saved into FP5 internal flash
182. ions refer to APPENDIX B SUPPLEMENTARY INFORMATION Figure B 2 32 bit CRC Calculation Specifications Method 32 bit CRC Range From the start to end addresses in the program file When the Cancel button button common to Target Standard and Advanced tabs is clicked the dialog box is closed without saving changed settings on the Target Standard and Advanced tabs into an ESF file R20UTOOO8EJ0600 Rev 6 00 2tENESAS Page 73 of 224 Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE File Programmer Device Help FS ER LS Bla Es poeta Gaia FP5GUI V2 07 1rnvare ersion Fi i Board H W V1 FPGA V4 Prog Albee aol Serial No s A Mode Standard mode unsecured Parameter and Setting file Name 78F1166 pr5 Now loading Version 1 00 PASS Name 78F1166 est Date Wed Dec 07 22 08 00 2011 Bii m Downloadfie sample hex gt lod_fname sample hex ftime 2011 03 08 07 57 Tue Mar 8 07 57 00 2011 Preparing storage PA HEX file H i 00000000 0003FFFF Address range 0x00000000 to Ox0003FFFF CRC32 OxCB6EA4B2 gt File checksum m Target device Name 78F1166 Pott UART Pulse Num 0 Speed 1 000 000 bps Vdd 05 00 V FP5 Freq Internal Osc Target Multiply 1 00 Mode Figure 4 48 Clearing of Programming Area PR5 Files and ESF Files and Download of Program File a Target tab in Device Setup dialog box Settings related to programming areas
183. is equipment can cause radio frequency noise when used in the residential area In such cases the user operator of the equipment may be required to take appropriate countermeasures under his responsibility EEDT ST 001 11 CAUTION This equipment should be handled like a CMOS semiconductor device The user must take all precautions to avoid build up of static electricity while working with this equipment All test and measurement tool including the workbench must be grounded The user operator must be grounded using the wrist strap The connectors and or device pins should not be touched with bare hands EEDT ST 004 10 For customers in the European Union only Redemption of Waste Electrical and Electronic Equipment WEEE in accordance with legal regulations applicable in the European Union only This equipment including all accessories is not intended for household use After use the equipment cannot be disposed of as household waste Renesas Electronics Europe GmbH offers to take back the equipment All you need to do is register at http www renesas eu weee R20UTOOO8EJ0600 Rev 6 00 7tENESAS Page 23 of 224 Sep 30 2013 PG FP5 V2 11 OVERVIEW EMC regulation VCCI FCC Please read the following notes about EMC regulation before using EREE A ESL CVT JAPAN ONLY TOREJ JAAATRRIPEE CT CORES RS CHATS BRR SAMO P IO EMSVET LOBES IIE AA DORE SEO BREANSZIERHVEF
184. isable Displays the setting of the Disable Read check box in the Security flag settings area on the Advanced tab in the Device Setup dialog box on Selected off Not selected Boot Blk PRG dis Displays the setting of the Disable boot block cluster reprogramming check box in the Security flag settings area on the Advanced tab in the Device Setup dialog box on Selected off Not selected Reset Vector Displays the setting of the Reset vector check box in the Reset vector settings area on the Advanced tab in the Device Setup dialog box Display example Reset vector Addr 0x000000 End Boot Blk FS area Displays the setting of the Boot Block end check box in the Block protection area on the Advanced tab in the Device Setup dialog box Display example End Boot Blk 0 Displays the setting of the FSW Block start and FSW Block end check boxes in the Block protection area on the Advanced tab in the Device Setup dialog box Display example FS area 0 to 127 OCD ID xxxxxxxx Displays the setting of the OCD security ID setting box in the OCD security ID setting area on the Advanced tab in the Device Setup dialog box Display example If 123456789ABCDEF 123456789 is specified in the OCD security ID setting box OCD ID 12345678 9ABCDEF 123456789 OPBTx x 0to8 R20UTOOO8EJ0600 Rev 6 00 Sep 30 2013 Displays the setting of the Option bytes
185. ited 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 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 PG FP5 V2 11 PREFACE PREFACE Thank you for purchasing the PG FP5 flash memory programmer The PG FPS is a flash memory programmer for
186. kes about 30 seconds File Programmer gt Programmer fpga_up nog y _ FPSGUI Y2 07 Preparing storag OK Firmware V2 07 Now loading OK ProgArea 0 Mode Standard mode unsecured Parameter and Setting file Name 78F1166 pr5 Version 1 00 Name 78F1166 esf Date Wed Dec 07 20 57 31 2011 gt Download file sample hex Tue Mar 8 07 57 00 2011 HEX file 00000000 0003FFFF K E100 Communication within host PC and FlashProgrammer is broken File checksum m Taget device Name 78F1166 Pott UART Pulse Num 0 Speed 1 000 000 bps Vdd 05 00 FPS Freq Internal Osc Target Multiply 1 00 Mode Figure 3 8 Action Log Window When FPGA Update Is Finished 4 Click the OK button in the error message dialog box and then press the POWER button on the FP5 to turn on power Sep 30 2013 PG FP5 V2 11 SOFTWARE INSTALLATION 5 Click the Programmer menu on the menu bar and select Setup host connection the Host Connection dialog box will then be opened Select the communication mode used and then click the button File Programmer Device Help Se tup ho onnection Logging Select Frogrammine area gt fpe v Buzzer Reset Self Test Update Firmware Update FPGA FPS Manager Figure 3 9 Setup host connection Command Host Connection USB C Serial Port cor z Baud 115200 Cancel Figu
187. l interface Infor mation Search Communication port Trying connect to COM3 with 9600 Please wait Figure 5 1 Connection Between Programming GUI and FP5 lt 2 gt The communication mode can also be selected by cancelling this operation with the Cancel button and selecting the Setup host connection command in the Programmer menu File Programmer Device Help a Setup host connection Logging Select Programmine area Update Firmware Update FPGA FES Manager Figure 5 2 Setup host connection Command lt 3 gt Perform settings according to the communication port connected to the FPS Host Connection Serial Port M v Baud 115200 Cancel Figure 5 3 Communication Parameter Setup lt 4 gt Click the OK button to enable the new port settings Sep 30 2013 PG FP5 V2 11 EXAMPLE OF OPERATION USING PROGRAMMING GUI lt 5 gt When the programming GUI is correctly started the main window will be opened The following message will be displayed if the programming GUI is started for the first time or valid programming areas have been cleared so click the OK button The Device Setup dialog box will be opened Infor mation Setup parameters is needed i 12208 Information defined in initial file is not enough or it is not matched with FPS Figure 5 4 Message Displayed at the First Startup of Programming GUI
188. le is handled as master data so the HCUHEX file settings are applied to the target device The setting of this check box therefore cannot be changed R20UTOOO8EJ0600 Rev 6 00 7tENESAS Page 91 of 224 Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE Flash options Flash options r Set Security command options m Lock bit setting r Security flag settings Disable Chip Erase Cuser mat Disable Block Erase O z890 Unlocked Disable Program O z251 Unlocked V Disable Read O z282 Unlocked Disable Boot block cluster reprogramming O ze3 Unlocked O eps Unlocked Dlepss Unlocked Block protection settings O zs6 Unlocked x FSW Block end 511 k 10 signal setting Low High High2 FSwBlockstart gt z m0 C C C e Boot Block end fo H 102 c C C I Show Address 103 C Cc Cc Reset vector setting 104 C C C Reset vector 105 C C C OCD security ID setting ID Code FFFFFFFFFFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF Option bytes setting oPBTo FFFFFFFF a When the 78K V850 or RL78 family is selected b When the RX family Except RX100 series R8C family or SuperH family is selected Flash options r I0 signal setting Low High High z 100 s O 101 Cc e O 102 io C 103 O C 104 C o 105 es Cc fe Block protection settings FSW Block end FFFFCBFF
189. level set in the PRS file is displayed in volts V This level can be changed by input Vdd2 V box The default Vpp2 level set in the PRS file is displayed in volts V If the target device specifications require two types of Vo for writing to flash memory specify a lower voltage for Vpop e g Vop 5 0V Vop2 3 3V This level can also be changed by input On Target check box Select this check box when supplying the Vpp Vpn2 voltages from the target system Note The target system may be damaged if proper values are not set The Vo pin power supply detection function varies depending on the setting of the On Target check box e When Vpn is set to be supplied from FP5 On Target check box not selected If the target system Vpp exceeds 0 2V before Von is supplied the message Target power detected Check Setup will be displayed in the action log window R20UTOO08EJ0600 Rev 6 00 7tENESAS Page 88 of 224 Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE e When Vpn is set to be supplied from the target system On Target check box selected If Von is outside the range of 5 of the Von set value immediately before communication starts the message No VDD applied or Voltage is out of range will be displayed in the action log window Vdd monitoring check box When supplying Von from the target system On Target check box selected whether to enable the Vpp pin power supply detection function can be select
190. mbient temperature PAO S to 40 Toe Storage temperature ee 5 to 60 Note Must be less than 6 8 V Note Product quality may suffer if the absolute maximum rating is exceeded even momentarily for any parameter That is the absolute maximum ratings are rated values at which the product is on the verge of suffering physical damage and therefore the product must be used under conditions that ensure that the absolute maximum ratings are not exceeded R20UTOOO8EJO0600 Rev 6 00 RENESAS Page 207 of 224 Sep 30 2013 PG FP5 V2 11 ELECTRICAL SPECIFICATIONS OF TARGET INTERFACE C 2 DC Characteristics Ts 0 to 40 C Vop2 Output TrA accuracy high EE 5 Vpp 5 lox 100MA Voo 3 0V lo 8mA Voo 4 5V ae Vor _ Outputvotage righ toeon veo Ve O al Voo 3 0V lon BMA Voo 4 5V lox 16mA Vop Output current high Voo 1 2V or fos _ Outpotcurent S a RO A fm lnputcurent nigh iY SY ima lon Output current high 200 mA Output current low Output current high SI RxD Input leakage current low H S Input leakage current high R20UTOOO8EJ0600 Rev 6 00 7tENESAS Page 208 of 224 Sep 30 2013 PG FP5 V2 11 ELECTRICAL SPECIFICATIONS OF TARGET INTERFACE C 3 AC Characteristics Ta 0 to 40 C C 0pF Unloaded Condition Rise time Voo 5 0V lox 200mA Rise time Voo 3 3V lox 200mA sme Voix stbizatontne _ 20 ns Ve fivwe Risotme SC i fre Fatine Ti to ae Highoverwah P OTs mie owe
191. means WARNING or CAUTION Example CAUTION AGAINST AN ELECTRIC SHOCK O means PROHIBITION Example DISASSEMBLY PROHIBITED means A FORCIBLE ACTION Example UNPLUG THE POWER CABLE FROM THE RECEPTACLE R20UTOOO8EJ0600 Rev 6 00 7tENESAS Page 6 of 224 Sep 30 2013 PG FP5 V2 11 PREFACE N WARNING Warnings for AC Power Supply If the AC power cable of the optional AC adapter does not fit the receptacle do not alter the AC power cable and do not plug it forcibly Failure to comply may cause electric shock and or fire Use an AC power cable which complies with the safety standard of the country Do not touch the plug of the AC power cable when your hands are wet This may cause electric shock This product is connected signal ground with frame ground If yours developing product is transform less not having isolation transformer of AC power this may cause electric shock Also this may give an un repairable damage to this product and yours developing product While developing connect AC power of the product to commercial power through isolation transformer in order to avoid these dangers If other equipment is connected to the same branch circuit care should be taken not to overload the circuit When installing this equipment insure that a reliable ground connection is maintained disconnect power immediately by unplugging the AC power cable from the outlet Do not use this as it is because of the dange
192. memory e Saving log files e Editing program files by using HEX editor e Checksum calculation e Programming command execution e Execution of self testing function e Manager function passwords security customization etc setting lt Standalone operation gt The FP5 can operate in standalone mode whereby commands such as Erase Program and Autoprocedure E P can be executed without using the host machine It is suitable for use in production lines during mass production or upgrading programs in the field The following can be performed in standalone operation e Execute programming command e Confirm contents of each downloaded file lt Communications Command Operation gt FP5 can be operated by communications commands from the host machine lt Remote Operation gt Writing and PASS ERROR displays can be operated and confirmed from external control devices lt FP5 internal flash memory gt The FP5 has a 16 MB flash memory area for saving program files This memory area can be used as two programming areas of 10 MB and 6 MB Area 0 to Area 1 four 4 MB programming areas Area 0 to Area 3 or eight independent 2 MB programming areas Area 0 to Area 7 Program files can be downloaded to each programming area and which file PRS or ESF is to be saved is selectable in programming area units That is files can be individually downloaded in each programming area and the area used can also be selected individually Progr
193. mming GUI Power OFF 1 Exit programming GUI 2 User system power OFF 3 This product power OFF Cautions to Be Taken for Handling This Product Use caution when handling the product Be careful not to apply a mechanical shock Do not touch the connector pins of this product and the target MCU connector pins directly Static electricity may damage the internal circuits When attaching and removing the cable hold the plug of the cable and do not touch the cable Do not pull this product by the communications interface cable or the flexible cable And excessive flexing or force may break conductors Do not use inch size screws for this equipment The screws used in this equipment are all ISO meter size type screws When replacing screws use same type screws as equipped before Note on Transporting the Product When sending your product for repair use the packing box and cushioning material supplied with the product when it was delivered to you and specify caution in handling handling as precision equipment If packing of your product is not complete it may be damaged during transportation When you pack your product in a bag make sure to use the conductive plastic bag supplied with the product usually a blue bag If you use a different bag it may lead to further trouble with your product due to static electricity Q R20UT0008EJ0600 Rev 6 00 7tENESAS Page 8 of 224 Sep 30 2013 PG FP5 V2 11 PREFACE CAUTIO
194. munications software If using HyperTerminal select Transfer T gt Transfer text file T and then select the program file The options are to delete or not to delete the file before downloading the file name and the creation date If this command is executed without any options then the file name and creation date will not be stored add Select this not to delete the data in the valid programming area before downloading program files When this is not designated the data will be deleted Please use this option when downloading and writing two program files Usually this is not designated NoteWhen this option is enabled and the lod command is executed the PG FP5 downloads data 512 bytes at a time without erasing its internal flash memory Note however that the download error ERROR NAND flash Ilegal Write Bit 0 gt 1 occurs if there is data other than FFh in the data being downloaded fname filename Designates the file name of the program file that is downloaded The maximum number of characters is 31 ftime date and time Designates the creation date and time of the downloaded program file The format is YY YY MM DD HH MM YYYY Year MM Month DD Date HH Hour MM Minute Example of usage Command Status Status LED Message display Screen output Display after execution of the BUSY Preparing storage PASS command before downloading Now loading Display during downloading
195. n t have any problem When FP5 revives consult a Renesas Electronics sales representative or distributor Sep 30 2013 PG FP5 V2 11 SOFTWARE INSTALLATION 3 Some commands are sent to the FP5 and the update progress status is displayed in the action log window The message Firmware Update succeeds which indicates normal completion of firmware update and Restarting FPS which is equivalent to RESET command processing is automatically performed The new version can then be checked as Firmware Version Vx xx The update takes about 10 seconds Note The action log window is a part of the main window of the programming GUI which shows the operation progress status TD i File Programmer Device Help Firmware Version 2 07 gt Programmer Board H W V1 FPGA V4 FP5GUI 2 07 Serial No MC10340174 Eea WEIN Standard mode unsecured ProgArea 0 gt gt version_up no_query Mode Standard mode unsecured Preparing storage OK Now loading Parameter and Setting file Name 78F1166 pr5 Version 1 00 FPS Selfprogramming O 94 Name 78F1166 esf Checking FLMDO level OK Date Wed Dec 07 20 57 31 2011 Erase flash OK Blank check OK Download file Write flash Name sample hex Margin checks OK Date Tue Mar 8 07 57 00 2011 OK Firmware Update succeeds Type HEX file Address 00000000 0003FFFF Restarting FPS File checksum FFFFFFF PPPPP 555555 Type E P 5 Addre
196. n the submenu level the first line in the message display shows the menu item and the second line shows the response from the FP5 if any A command prompt gt displayed at the end of a menu line indicates that it is selectable with the ENTER button or that the menu command can be executed If the command prompt gt is not displayed at the end of a menu line it means that the function is available only for display When power to the FP5 is turned on the POWER LED turns on and Commands gt is displayed in the message display The status LEDs indicate the status of communication with the device and the result of execution as follows Status LED Status The selected command has been executed correctly The command that has been correctly executed is displayed in the message display The selected command is under execution The detailed execution status is displayed in the message display The selected command has been terminated by an error The error details are displayed in the message display Note For details on the errors displayed in the message display refer to error message A 4 Error Messages Displayed in FP5 Message Display 6 3 Standalone Operation Menu In standalone mode the programming environment of the target device can be checked and then programs can be written by using the commands explained in this section 6 3 1 Commands menu The Commands menu provides variou
197. nd Block mode i Erase Block sss to eee or Blank check Skipped Erase Block 000 Erase Block 001 Erase Block eee Display while executing the BUSY Erase Area Blank check Skipped command Area mode as Erase Area 000 Erase Area 001 Erase Area eee Display after executing the PASS Returns to the display PASS command When completed before executing the Erase operation finished normally command Display after executing the ERROR ERROR xxx ERROR Exxx lt text gt command When terminated XXXXXXXXXXXXXXXX Erase operation finished abnormally R20UTOO08EJ0600 Rev 6 00 7tENESAS Page 155 of 224 Sep 30 2013 PG FP5 V2 11 USAGE COMMUNICATION COMMANDS 8 5 6 gid command Obtains the on chip debug security ID get for the target device Input format gid Description of the function Obtains the information set by executing the Set OCD Security ID command on the Device menu of the programming GUI Example of usage Command Status Status LED Message display Screen output gid Display after executing the PASS Returns to the display Display example command When completed before executing the OCD ID normally command XXXXXXXXXXXXXXXXXXXXXXXX PASS OCD ID operation finished Display after executing the ERROR ERROR xxx ERROR Exxx lt text gt command When terminated XXXXXXXXXXXXXXXX abnormally 8 5 7 glb command Obtains the lock bit get for the target device
198. nd VDE TALV 125 Signal output circuit Self testing TALV 125 circuit eal Sa o N m Target System Figure 11 4 FLMD0 FLMD1 RFU 1 and VDE Pins R20UTOOO8EJ0600 Rev 6 00 7tENESAS Page 185 of 224 Sep 30 2013 PG FP5 V2 11 SPECIFICATIONS OF TARGET INTERFACE CIRCUITS 11 5 Vbo and Vppe2 When supplying Vpp and Vpp gt from the target system the FP5 internal power supply and the external voltage regulator is protected by a transistor FP5_Vpp or FP5_Vpp2 Transistor g p Vpop or Vpp2 w N forar Voltage detector Target System Figure 11 5 Vpp and Vpp Pins 11 6 Vpp FP5_Vpp P T Transistor 3 01kQ im nF Voltage detector 1kQ Target System Figure 11 6 Ver Pin R20UTOOO8EJ0600 Rev 6 00 7tENESAS Page 186 of 224 Sep 30 2013 PG FP5 V2 11 TROUBLESHOOTING 12 TROUBLESHOOTING This chapter explains troubleshooting Note Using the self testing function the user can find out the reason why the FP5 does not operate normally such as a defect in the FP5 or problems in other hardware For how to use the tool refer to 4 3 2 6 Self Test command 12 1 Problems During Startup This section explains troubleshooting for problems that may occur between software installation and startup 1 The POWER button on FPS is pressed but the LED does not turn on Cause The cause may be a poor connection of the FP5 or AC adaptor or a possible defect Action Confi
199. nload Figure 4 57 Object HEX file Area Program file selection list Select the program file to be used If no program files are registered in the valid programming area program files stored in the bin folder in the programming GUI installation folder are displayed If the reference folder is changed by using the button program files stored in the changed folder are displayed Erase memory before download check box The Erase memory before download check box allows the user to select whether to delete the internal memory of the FP5 before downloading a new program file Under normal conditions check this box Note Clear this check box when downloading and writing two program files When a file is downloaded with this check box cleared the PG FP5 downloads data 512 bytes at a time without erasing its internal flash memory Note however that the download error ERROR NAND flash Illegal Write Bit 0 gt 1 occurs if there is data other than FFh in the data being downloaded button Click this button when specifying a program file stored in a folder other than the folder in the programming GUI installation folder The Download file dialog box will be displayed Specify the relevant file and then click the Open button From the File type T list box a program file rec s s2 mot a20 a37 hex ddi or all files can be selected Download file x Look in E FP5 PRJ e 0 ee Fee _ s
200. ny 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 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
201. o 3 4 3 Installation of firmware update 4 Update the FPGA using the programming GUI Refer to 3 4 4 Installation of FPGA update 3 4 1 Checking the current version 1 Open the main window of the programming GUI Refer to 4 1 Introduction 2 Check the versions of the programming GUI firmware and FPGA as shown below Programming GUI Help menu About Firmware Programmer menu gt Reset command FPGA Programmer menu Reset command Note Display example of Reset command Firmware Version Vx xx Firmware version Board H W Vx FPGA Vx lt FPGA version Serial No XXXXXXXXXX Standard mode usecured 3 The latest versions are available on the following websites URLs e Except for Europe area http www renesas com pg_fp5 e For Europe area http www renesas eu update Section PG FP5 EE R20UTOOO8EJ0600 Rev 6 00 7tENESAS Page 32 of 224 Sep 30 2013 PG FP5 V2 11 SOFTWARE INSTALLATION 3 4 2 Installation of programming GUI Run the downloaded executable file PG FP5_Package_Vxxx exe Perform installation following the directions on the installer screen 3 4 3 Installation of firmware update Install the latest firmware by using the latest programming GUI Decompress the file to any folder The firmware file fp5_fw_vxxx rec will be decompressed to the selected folder xxx indicates the firmware version 1 Click the Programmer menu on the menu bar and
202. o of the main clock in the CKM box and the multiplication ratio of the peripheral clock in the CKP box Note For the selectable multiply rate refer to the user s manual for the device used R20UTOOO8EJ0600 Rev 6 00 7tENESAS Page 85 of 224 Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE lt 3 gt Operation Mode area Switch the operation mode to execute commands such as flash memory programming for the entire flash memory area in area units or in block units The settings made here are valid for the Blank Check Erase Program Verify Read Checksum and Autoprocedure E P commands Note When loading an HCUHEX file the HCUHEX file is handled as master data so the Chip are selected The setting of this check box therefore cannot be changed Operation Mode Chip C Block 3 End r r m a When a product without data flash is selected from the 78K V850 RL78 family Operation Mode Chip IV v C Block Start Start 2 End End r r T Start Po p b When a product with data flash is selected from the 78K V850 RL78 family Operation Mode Chip JV User mat JV Data mat Block Start a1 Start fis z a Ares endfo a Endfo 8 J J Show Address JV User boot mat Start jo z End fo c When the RX family R8C family or SuperH family is selected Figure 4 64 Operation Mode Area If Chip is selected The entire flash memory area of the target devi
203. o the target device Action 4 lt 1 gt Check the settings in the Supply oscillator area on the Standard tab in the Device Setup dialog box For the correct settings refer to the supplementary materials for the PRS file or the user s manual of the target device lt 2 gt Check the clock supply on the target system by means such as waveform monitoring Cause 5 Power may not be supplied correctly to the target device Action 5 lt 1 gt Check the settings in the Supply voltage area on the Advanced tab in the Device Setup dialog box lt 2 gt Check that power is supplied from the target system If power is supplied from the FP5 a power shortage may occur because its maximum power supply is 200 mA In such a case supply power from the target system and then change the setting R20UTOOO8EJ0600 Rev 6 00 7tENESAS Page 189 of 224 Sep 30 2013 PG FP5 V2 11 TROUBLESHOOTING Cause 6 UART communication may not be synchronized Action 6 When UART is used communication may not be synchronized due to a baud rate error of the target device In this case change the CPU clock or baud rate or change the communication channel to another communication mode Cause 7 If using a 78KOS Kx1 microcontroller or the UPD78F9334 it is possible that the wrong connection procedure was implemented Action 7 With devices that using program files in which use the RESET pin as the input only port P34 is set by the option
204. ogramming commands and security settings can be configured CT j x Target Standard Advanced m Supply voltage ey Flash option s vdd W 0330 m Set Security command options ____ Security flag settings r vad v jo 20 Disable Chip Erase On Target Disable Block Erase Vdd monitoring Disable Program Wide Voltese mode Iv Disable Read FLMDO fvdd tS Disable Boot block cluster reprogramming CLK vid CS RESET fvdd tS r Block protection settings Serial Out pa t S FSW Block end 511 SerialIn vaa o Command options JV Blank check before Erase Boot Blook end Verify after Program JV Set Security after Program J Checksum after Program Reset vector setting IV Set Option bytes after Program Reset vector pooooooo h J Set OCD Security ID after Program J Run after Disconnect m OCD security ID setting FSW Block start J Show Address Enable target RESET FFFFFFFFFFFFFFFFFFFFFFFF Option bytes setting Joreto 7 FFFFFFFF Cancel Figure 4 65 Operation Mode Area This tab consists of the following items lt 1 gt Supply voltage area lt 2 gt Command options area lt 3 gt Flash options area The Flash options area consists of the sections shown below in accord with the type of MCU Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE Table 4 5 Contents of the Flash options area in MCUs
205. on of the command Example of usage Presents an example of using the command Note The symbols used to describe the input format are defined below Notation Description Characters within single quotation marks Characters that must be input as displayed Characters within angle brackets lt gt Information that must be provided Characters within parentheses Optional items Options separated by vertical bars Options where only one option can be selected R20UTOO08EJ0600 Rev 6 00 RENESAS Page 130 of 224 Sep 30 2013 PG FP5 V2 11 USAGE COMMUNICATION COMMANDS 8 4 Description of FP5 Control Commands This section will describe the FP5 control commands 8 4 1 autocon command Selects and confirms automatic or manual execution of the processes from transition to flash memory programming mode to signature verification and the termination of the flash memory programming mode Input format autocon on off Description of the function Selects either automatic on or manual off execution to be executed before and after the device command completion of the processes from transition to the flash memory programming mode to signature verification con command and termination of the flash memory programming mode dcon command The initial value is automatic on If this command is executed without an option the current status is displayed automat
206. onnector is used then the USB version will be displayed e USB HS USB 2 0 e USB FS USB 1 1 The default data transfer rate is 9600 bps 9600 Changes the data transfer rate to 9600 bps 19200 Changes the data transfer rate to 19200 bps 38400 Changes the data transfer rate to 38400 bps 57600 Changes the data transfer rate to 57600 bps 115200 Changes the data transfer rate to 115200 bps Example of usage Command Screen output When the serial connector is connected at 115200 bps Current Baudrate is 115200 When the USB connector is connected at High speed Current Baudrate is USB HS brt 9600 New Baudrate is 9600 brt 19200 New Baudrate is 19200 brt 38400 New Baudrate is 38400 brt 57600 New Baudrate is 57600 brt 115200 New Baudrate is 115200 R20UTOOO8EJO0600 Rev 6 00 RENESAS Page 132 of 224 Sep 30 2013 PG FP5 V2 11 USAGE COMMUNICATION COMMANDS 8 4 3 conf command Displays a list of the information stored in the FP5 and changes the number of programming area sections Input format conf progarea 4x4 8x2 10 6 Description of the function Divides the programming area into eight four or two areas depending on the selected option If an option is not specified then the following information stored in the FP5 will be displayed e Version information firmware version board hardware version FPGA version serial number FP5 mode e Program area inform
207. open the dialog box to input the password again Figure 4 32 Clicking Noj will initialize the FP5 to its default settings When initialized the following stored information will be deleted or reset to their defaults e Password e FP5 Manager setting e PRS file e ESF file e Program file Clicking Cancel will close the dialog box FPS Manager x J Disable Device Setup J Enable Bank mode J Enable Simple mode J Checksum comparison J Program file size monitor Function Enable Serial Number mode Reset option of Run after Disconnect C Pul up Hi z Change the PASSWORD INIT cencel_ Figure 4 34 FP5 Manager Dialog Box After making any changes to the settings and clicking OKI the dialog box will close and the settings will be enabled Clicking Cancel will close the dialog box and discard the changes The FP5 Manager settings are described below e Displaying Mode Contents The mode contents that indicate the FP5 state is displayed in the Programmer area of the programming parameter window e Standard mode unsecured The FP5 Manager has not been set e Standard mode secured The FP5 Manager has been set However the bank mode or the simple mode have not been set e Bank mode secured The FP5 Manager and bank mode have been set e Simple mode secured R20UTOOO08EJ0600 Rev 6 00 7tENESAS Page 64 of 224 Sep 30 2013 PG
208. or 16 pin type 77T JUMPER m Figure 10 2 Circuit Example for 78K0S Single wire UART Target device Note These pins do not need to be shorted when using the FP5 Short them if necessary R20UT0008EJ0600 Rev 6 00 RENESAS Page 177 of 224 Sep 30 2013 PG FP5 V2 11 NOTES ON TARGET SYSTEM DESIGN lt 3 gt 78KOR Single wire UART Target connector 16 pin type Target device JUMPER m Figure 10 3 Circuit Example for 78KOR Single wire UART Note These pins do not need to be shorted when using the FP5 Short them if necessary lt 4 gt PC Target connector 16 pin type 2 1 RESET GND 3 Voo Target device JUMPER Figure 10 4 Circuit Example for I C R20UT0008EJ0600 Rev 6 00 RENESAS Page 178 of 224 Sep 30 2013 PG FP5 V2 11 NOTES ON TARGET SYSTEM DESIGN lt 5 gt 78K0 TOOLCx TOOLDx TOOLDx TOOLCx Target device JUMPER Figure 10 5 Circuit Example for 78K0 TOOLCx TOOLDx Note These pins do not need to be shorted when using the FP5 Short them if necessary lt 6 gt V850E2 Single wire UART Target connecter 14 pin type Target device VDD VDD VDD VDD Clock circuit 4 FLMDO 9 FLMD1 7 SO TxD 13 RESET Jumper Figure 10 6 Circuit Example for V850E2 Single
209. orage environment Temperature 15 to 60 C ccondition Humidity 10 to 80 RH no condensation Package size 140 x 90 x 30 mm not including projections Weight Approximately 230 g Internal flash memory Program file save area 16 MB Other PR5 file save area ESF file saved area firmware area and FPGA area Operation mode Programming GUI operation standalone operation remote operation communication command operation AC adaptor Specifications AC adaptors used in each region Host Target host machine PC AT compatible machine USB connector Type mini B USB 2 0 compatible with 1 1 interface USB cable Approximately 2 m Serial connector 9 pin D SUB male connector for RS 232C 9600 19200 38400 57600 115200 bps Serial cable Approximately 3 m cross cable Target Target connector Connector 15 pin HD SUB female connector interface Protected function Internal over voltage input protection circuit Note 1 Target cable Two cables 16 pin type and 14 pin type Cable length Approximately 42 cm Power supply 1 2to5 5V Power supply Available Current consumption 1 mA or less detection CPU clock supply 1 MHz 2 MHz 4 MHz 5 MHz 6 MHz 8 MHz 9 MHz 10 MHz 12 MHz 16 MHz 20 MHz GND cable Approximately 1 m Remote Remote connector 15 pin D SUB female connector interface Notes 1 The maximum communication speed in the interface may vary depending on the device and environm
210. ors The power supply connector serial connector and USB connector are laid out on the host interface side The target connector GND connector and remote connector are laid out on the target connector side When the FP5 Manager is used to switch to the bank mode or simple mode the button functions and message display functions will change Refer to 4 3 2 9 FP5 Manager command and 7 USAGE THE REMOTE CONNECTOR USB connector Serial connector Power supply connector RENESAS Target connector GND connector Remote connector Figure 2 3 FP5 Top View lt Connector gt Power supply connector Serial connector USB connector Figure 2 4 FP5 Host Interface Side Target connector GND Remote connector connector Figure 2 5 FP5 Target Connector Side R20UTO0008EJ0600 Rev 6 00 RENESAS Page 28 of 224 Sep 30 2013 PG FP5 V2 11 HARDWARE CONFIGURATION 1 Power supply connector Connect the power supply connector to the AC adaptor included with the FP5 For details on the power supply connector specifications refer to 9 CONNECTORS AND CABLES Note Do not use an AC adaptor other than that included with the PG FP5 2 Serial connector Communication is established by using a serial cable RS 232C cross cable connection to connect the host machine serial port and FP5 serial connector The data transfer conditions are as follows e Data transfer speed 9 600 bps 19 200 bps 38 400 bps 57 600 bps or 115 200 bps e Data bit
211. pecified folder of the ESF file with this dialog box R20UT0008EJ0600 Rev 6 00 RENESAS Page 77 of 224 Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE Select parameter files to copy Look in 9 FP5_PRJ m 2 E 78F1166 pr5 My Recent Documents G Desktop My Documents My Network File name Re Places Files of type FPS5 parameter file pr5 Figure 4 55 Select parameter files to copy Dialog Box After selecting the PRS file input the new ESF file name and then click the Save button Save As button Clicking this button opens the dialog box for overwriting the current settings made in the Device Setup dialog box to the existing ESF file or saving as another file Specify the file and then click the Openi button Note that the PRS file is also copied to the destination folder Look in FP5_PRJ e amp E 78F1166 esf 4 My Recent Documents Desktop i My Documents My Computer My Network File name 79F1166 esh T Places Files of type FP5 setup files esf Cancel Figure 4 56 Save as Dialog Box lt 4 gt Object HEX file area Select the program file in this area If an HCUHEX file is selected HCUHEX file is displayed in this area Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE Object HEX file DAFP5 PRJ sample hex X Tue Mar 08 07 57 06 2011 JV Erase memory before dow
212. play cceeeceeeeeeeeeeeeeneeeeeeeaeeeeeeaeeeseenaeeeeeenaes 200 APPENDIX B SUPPLEMENTARY INFORMATION 0 0 cccceeeeeeceeeeeeeaeeeeeeeseneeecaeeesaaeeseneeseaeeesaeeesaaeeeenees 203 APPENDIX C ELECTRICAL SPECIFICATIONS OF TARGET INTERFACE cccceceeeseeeeeeeeseeeeeeneeeeenees 207 C 1 Absolute Maximum Ratings TA 0 to 40 C ceeeceeeseceee eect eeeeee scenes sage eeeeaeeseeeeseeeetaeeesaeseeneeees 207 C 2 DC Characteristics TA 0 to 40 C 0 eeeccecceceeeeeeeeeceeeee cae eeeaaeeeeaee scenes caaeeeeaaeseeeeeseeeesaeeseaeseeneeees 208 C 3 AC Characteristics TA 0 to 40 C C OpF Unloaded Condition 0 ccceeeceeeeeeeeeeeeeeeeeeeeeees 209 C 3 1 CLK output characteristics TA 0 to 40 C C 0pF unloaded condition 0 cceeeeeees 211 C 3 2 Serial transfer timing TA 0 to 40 C C OpF unloaded Condition ccccceeeeeeseeeeees 212 APPENDIX D ELECTRICAL SPECIFICATIONS OF REMOTE INTERFACE cecececeeeeeeeeeeeneeeeeeees 213 D 1 Absolute Maximum Ratings TA 0 to 40 C ecceeecceeseeeeeeeeeeaeeeeeeeseeeeceaeeesaaeeeeeeeseaeeesaeseeaeeeeenees 213 D 2 DC Characteristics TA 0 to 40 C C OpF Unloaded Condition ccceeeesceceeeeseeeeeeneeeeeeees 214 D 3 AC Characteristics TA 0 to 40 C C OpF Unloaded Condition c ceeeceeeeceeeeeeeseteeeeneeeeeeees 215 R20UTOO08EJ0600 Rev 6 00 RENESAS Page 12 of 224 Sep 30 2013 PG FP5 V2 11 PREFACE D3 tie St
213. play after executing the ERROR ERROR xxx ERROR Exxx lt text gt command XXXXXXXXXXXXXXXX When terminated abnormally 8 5 18 sum command Executes the programming GUI Device menu gt Checksum command Input format sum lt start_address gt lt end_address gt Description of the function Executes a similar function to the programming GUI Device menu gt Checksum command start_address Designates the starting address as a hexadecimal number end_address Designates the ending address as a hexadecimal number If the start_address and end_address options are not used Checksum C is executed for the range specified in the operation mode Set the start address and end address to the start address of a block and the end address of a block of the target device respectively Example of usage Command Status Status LED Message display Screen output sum Display while executing the BUSY Checksum command Display after executing the PASS Checksum xxxx 0XXXXX command When completed PASS normally Checksum operation finished Display after executing the ERROR ERROR xxx ERROR Exxx lt text gt command When terminated XXXXXXXXXXXXXXXX abnormally R20UT0008EJ0600 Rev 6 00 7tENESAS Page 163 of 224 Sep 30 2013 PG FP5 V2 11 USAGE COMMUNICATION COMMANDS 8 5 19 vrf command Executes Verify command Input format yrf Description of the function Executes
214. plays the setting status of the Run after Disconnect check box in the Command options area of the device setup dialog Advanced tab On Checked Off Not checked When on the FP5 Manager Reset option of Run after Disconnect setting will also be displayed lt Display example gt On Hi Z Enable targetRes Displays the setting status of the Enable target Reset check box in the Command options area of the device setup dialog Advanced tab On Checked Off Not checked Prog Area Displays the valid programming area Display example in the case where the valid programming area is Area 0 Prog Area On 0 Chip ERS dis Displays the setting of the Disable Chip Erase check box in the Security flag settings area on the Advanced tab in the Device Setup dialog box on Selected off Not selected Block ERS dis R20UTOOO8EJ0600 Rev 6 00 Sep 30 2013 Displays the setting of the Disable Block Erase check box in the Security flag settings area on the Advanced tab in the Device Setup dialog box on Selected off Not selected PG FP5 V2 11 Table 6 3 Main Menu Option Setting gt Option Setting Menu 2 Submenu PRG disable USAGE IN STANDALONE MODE Description Displays the setting of the Disable Program check box in the Security flag settings area on the Advanced tab in the Device Setup dialog box on Selected off Not selected READ d
215. properties of the RESET signal after the write command is completed can be set to Pull up or Hi Z The default is Hi Z Change the PASSWORD button Clicking the Change the PASSWORD button will open the following dialog box Password setting OLD PASSWORD NEW PASSWORD Confirm PASSWORD Cancel Figure 4 37 Password setting Dialog Box This dialog box allows the user to change the registered password Input the current password into the OLD PASSWORD box input the new password into the NEW PASSWORD box and Confirm PASSWORD box and then click OK When 7 ancell is clicked the dialog box will be closed and the password will not be changed INIT button Resets the FP5 to its default settings Initializing the FP5 will reset or delete the following stored information e Password e FPS Manager setting e PRS file e ESF file e Program file R20UTOOO8EJ0600 Rev 6 00 7RENESAS Page 66 of 224 Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE 4 3 3 Device menu The following pull down menu appears by clicking the Device menu This menu includes commands mainly related to programming to the target device such as erase write and verify File Programmer Device Help Blank check q Erase K 3 T EN Program Verify White Intel HEX file Set Security Write Motorola SREC file Checksum gt Autoprocedure EP Set Option bytes Set OCD Security ID y Connect Signature read
216. r dialog box is used to enable Enable Bank mode or Enable Simple mode the functions of the control buttons and message display will change Refer to 4 3 2 9 FP5 Manager command and 7 USAGE THE REMOTE CONNECTOR This chapter will describe usage in the normal mode The command menu consists of two levels of menus a main menu and submenu The NEXT button is used to display the next menu on the same level The ENTER button is used to select or execute the menu item currently displayed The CANCEI button is used to cancel the current selection and return to the previous menu level The command currently running cannot be stopped except for the Read command The START button executes the Autoprocedure E P command It can be executed from any command menu and the display returns to the same command menu after execution Main menu Submenu ENTER button Commands Type Setting CANCEL button Type Setting Option Setting Option Setting Voltage Setting Voltage Setting Utility Misc Utility Misc NEXT button ENTER button Reset FP5 gt Command execution NEXT button Figure 6 1 Menu Status Transition by Button Input R20UTOOO8EJO600 Rev 6 00 RENESAS Page 113 of 224 Sep 30 2013 PG FP5 V2 11 USAGE IN STANDALONE MODE On the main menu level the FP5 shows the menu items that can be selected O
217. r of electric shock and or fire In this case contact your local distributor If you smell a strange odor hear an unusual sound or see smoke coming from this product then am Before setting up this product and connecting it to other devices turn off power or remove a power cable to prevent injury or product damage Warnings to Be Taken for Handling Do not modify this product Personal injury due to electric shock may occur if this product is modified Modifying the product will void your warranty Warning for Installation Do not set this product in water or areas of high humidity Make sure that the product does not get wet iS Spilling water or some other liquid into the product may cause un repairable damage Warning for Use temperature Care should be taken that a maximum ambient temperature is not exceeded when this product is to be used R20UTOOO8EJO0600 Rev 6 00 RENESAS Page 7 of 224 Sep 30 2013 PG FP5 V2 11 PREFACE CAUTION Cautions to Be Taken for the AC Adapter Use only the optional dedicated AC adapter for this product Do not use the AC adapter for other equipment Cautions to Be Taken for Turning On the Power Q Observe the following specified order for the power on and power off procedures of the user system and this product Doing otherwise may cause the user system or this product to fail Power ON 1 This product power ON 2 User system power ON 3 Start progra
218. ration Mode area on the Standard tab in the Device Setup dialog box If this command is executed with Chip selected security command options are initialized at the same time While erasing the flash memory is in progress the progress status is displayed in the action log window When execution of this command is completed the result of command execution in R20UTOOO8EJ0600 Rev 6 00 7tENESAS Page 67 of 224 Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE the target device is displayed Whether to perform the Blank Check command before executing this command depends on the Blank check before Erase check box setting in the Command options area on the Advanced tab in the Device Setup dialog box If this command is executed for the target device that has already been erased with the Blank check before Erase check box selected OK Erase skipped is displayed and erasure is not performed 3 Program command The Program command transmits the memory contents program files in the FP5 valid programming area to the target device and writes the programs to the flash memory The target area can be set in the Operation Mode area on the Standard tab in the Device Setup dialog box The progress status of this command is displayed as a percentage in the action log window When execution of this command is completed the programming GUI displays the result of command execution in the target device Command options after execution of
219. re 3 10 Host Connection Dialog Box R20UT0008EJ0600 Rev 6 00 RENESAS Page 39 of 224 Sep 30 2013 PG FP5 V2 11 SOFTWARE INSTALLATION 6 Communication with the host machine is established FPGA Vx is displayed in the action log window thus the version can be checked File Programmer Device Help Programmer 0 FP5GUI Y2 07 TEPGA V4 Firmware 2 07 ae 5 y4 i ProgAtea 0 Standard mode unsecured Mode Standard mode unsecured gt Parameter and Setting file Name 78F1166 pr5 Version 1 00 Name 78F1166 est Date Wed Dec 07 20 57 31 2011 gt Download file Name sample hex Date Tue Mar 8 07 57 00 2011 Type EX file Address OO000000 0003FFFF File checksum Target device 78F1166 UART 0 1 000 000 bps 05 00 FP5 Internal Osc Target 1 00 Chip Figure 3 11 Version Confirmation After FPGA Update Is Finished R20UT0008EJ0600 Rev 6 00 RENESAS Page 40 of 224 Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE 4 PROGRAMMING GUI USAGE This chapter explains functional details on windows and dialog boxes of the programming GUI 4 1 Introduction Make sure that the programming GUI USB driver and the FP5 parameter file PR5 file for the target device are installed For the installation method refer to 3 SOFTWARE INSTALLATION 4 2 Startup of Programming GUI 1 System connection Connect a USB cable or serial cable to the USB port or seri
220. rea In this area set options to be added to the Erase Program and Autoprocedure E P commands Note When loading an HCUHEX file the HCUHEX file is handled as master data The settings of Blank check before Erase Set Security after Program becomes enabled and they cannot be changed Also Set Option bytes after Program and Set OCD Security ID after Program cannot be changed Command options Command options V Blank check before Erase ae ns i 5 He Jura Eras Verify after Program E i Sr Meeps eros J V Set Security after Program BEAN Prosren Checksum after Program ie Set Option bytes after Program V Set Option bytes after Program Set OCD Security ID after Program l Set OCD Security ID after Program P Run after Disconnect Run after Disconnect Enable target RESET Enable target RESET Hl Lock bit disable after connect J Lock bit enable before disconnect a When the 78K V850 or RL78 family is selected J Lock bit set after Program b When the RX family R8C family or SuperH family is selected Figure 4 67 Command options Area Blank check before Erase check box If this check box is selected the Blank Check command is automatically executed before the Erase and Autoprocedure E P commands are executed Verify after Program check box If this check box is selected the Verify command is automatically executed after the Program and Autoprocedure E P commands are e
221. rectly started the main window will be opened Note that when the programming GUI is started for the first time the valid programming area is cleared or once FP5 unit from a number of units has been connected the following message will be displayed so download the following ESF file PRS file or program file This message means that ESF file and program file in the FP5 unit and the information stored in the programming GUI INI file do not match Infor mation Setup parameters is needed i 1 2208 Information defined in nnal file is not enough or it is not matched with FP5 Figure 4 3 Message Displayed at the First Startup of Programming GUI 1 Click the OK button in the dialog box 2 The following dialog box will be displayed Click Yes or No Information Project Folder and parameter file is not defined 12213 LD Click button Yes if create the setting file newly Click button No if select the existing setting File 3 Clicking Yes will open a dialog box to make a new ESF file Refer to 4 3 3 15 a lt 3 gt New button for the steps that follow Save in O FP5_PRJ E 78F1166 esf My Recent Documents My Network File name 78e1 166 est Places Save as type FP5 setup files esf ba Cancel Parameter file 78F1166 pr5 X New Clicking No will open a dialog box to select a previously created ESF file Refer to 4 3 3
222. renas AAN 120 7 USAGE THE REMOTE CONNECTOR cccccceeceeeeee cece tees eeeeaeeeeeeeceaeeeeaaeedeaeeseaeeeseaeeseaaeseneeeseaeeesaeeeeneeees 122 7A Remote Interface MOde visect sects ec scteecesnettee erie deasentee ce eettedeenebtee se dettedaedihtee se feitedesteitee sented eaten ee 122 7 2 Remote Connector PINS siises secseccs ceca sataietechdein avatenes secteid endiiea cia aaa aAa an a aana aa a 122 7 8 Equivalence Circuits i082 eset eaan ee elie dee aisles 123 7 4 External Connection Example cress ccseivandeavsacccnstendaihesstensianvercuniseensstesdecliesseenes ave enaccenneneesinatd 125 8 USAGE COMMUNICATION COMMANDS 0 ccccceeecceeeceeeeeeceeeee eee eeeaaeeeeaeeseeeeesaaeeseaaeseneeeseaeeesaeeeeneeee 126 8 1 Starting the Communications Software ccccccececeeeeeceeeeeeeaeeeeeee sense ceaeeeeaaeseeeeeseeeeseaeeseaeeeeneeees 126 8 2 Command List spierien eh geeda avis dices a aN ai aa aad iaa aaa a aa aaa aaa sete 128 8 3 Description of COMMANAS Sienassa a a a aA Ei 130 8 4 Description of FP5 Control COMMANAS ccccceeececeeeeeceeeeeeaeeeenee scenes caaeeeeaaeseeeeeseeeeseaeeseaeeeeneeees 131 8 41 autocon command ie ccc sevctee Petes ccte tees E NERE 131 84 2 DI COMIMANG ereinen iE EE aE ficken EEE E E A E E 132 8A Sconf COMMMAN eno AROA TORE 133 84 4 COWMPIMCOMIMANG eiriad deeeiaraisi eie i endai aE EErEE NE i 136 8 4 5 downset command cscrcrccrinuciren iiri EA ANES EEE R 136 84 6 TEKS COMMAMNG orees
223. rm that the AC adaptor is plugged in firmly If this does not resolve the problem consider repair 2 When the USB cable is connected and power to the FP5 is turned on the driver is not recognized by Plug and Play Cause The USB connector may not be inserted properly into the USB port Action Confirm that the USB connectors are fully inserted into the USB ports of the host machine and the FPS Alternatively disconnect the USB connector and insert it again after a short time 3 The USB driver file cannot be found at a specified location Cause The USB driver may not have been installed correctly Action Refer to 3 SOFTWARE INSTALLATION and reinstall the USB driver 4 The Add New Hardware Wizard screen appears when FP5 is connected with the host machine via a USB port Cause If the USB connector is not inserted into the USB port used during USB driver installation but into another USB port the FP5 may be recognized as a new hardware item Action Refer to 3 SOFTWARE INSTALLATION and install the USB driver again R20UT0008EJ0600 Rev 6 00 RENESAS Page 187 of 224 Sep 30 2013 PG FP5 V2 11 TROUBLESHOOTING 12 2 Problems During Operation This section explains troubleshooting for problems that may occur during operation Note For causes and actions for the messages displayed in the error dialog box information dialog box or action log window refer to APPENDIX A MESSAGES 1 Error Message
224. rmal voltages etc e Failure or damage attributable to modifications repairs adjustments or other acts made to the product by other than Renesas Electronics Corporation 3 Consumables e g sockets and adapters are not covered by the aforementioned repair In the above cases contact your local distributor If your product is being leased consult the leasing company or the owner 13 4 Repair Provisions 1 Repairs not covered by warranty Problems arising in products for which more than one year has elapsed since purchase are not covered by warranty 2 Replacement not covered by warranty If your product s fault falls into any of the following categories the fault will be corrected by replacing the entire product instead of repairing it or you will be advised to purchase a new product depending on the severity of the fault Faulty or broken mechanical portions Flaws separation or rust in coated or plated portions Flaws or cracks in plastic portions Faults or breakage caused by improper use or unauthorized repair or modification Heavily damaged electric circuits due to overvoltage overcurrent or shorting of power supply Cracks in the printed circuit board or burnt down patterns A wide range of faults that make replacement less expensive than repair Faults that are not locatable or identifiable R20UTOOO8EJO0600 Rev 6 00 RENESAS Page 191 of 224 Sep 30 2013 PG FP5 V2 11 MAINTENANCE AND WARRANTY
225. rmware Update FPGA FP5 Manager Figure 3 5 Update FPGA Command Update FPGA 12211 Updating the FPGA will take several minutes ATTENTION The process of updating your FPGA must NOT be interrupted without FPGA this FPS GUI will NOT run properly Install new FPGA in your programmer Figure 3 6 Update FPGA Dialog Box R20UT0008EJ0600 Rev 6 00 RENESAS Page 36 of 224 Sep 30 2013 PG FP5 V2 11 SOFTWARE INSTALLATION 2 Click the OK button to continue FPGA update The Open FPGA file dialog box is opened Open FPGA file Lookin Bra S H enam My Recent Documents 3 Desktop My Documents My Computer My Network File name tp5_tpaa_v2 rec Places Files of type S rec files rec z Figure 3 7 Open FPGA file Dialog Box Select the FPGA file fp5_fpga_vx rec and then click the Open button Note Do not use an FP5 FPGA other than the one posted on the website otherwise a defect may occur R20UT0008EJ0600 Rev 6 00 RENESAS Page 37 of 224 Sep 30 2013 PG FP5 V2 11 SOFTWARE INSTALLATION 3 Some commands are sent to the FP5 and the update progress status is displayed in the action log window The message FPGA Update succeeded which indicates normal completion of firmware update and FP5 Power will be switched OFF now which is equivalent to processing when the button is turned off is automatically executed The update ta
226. ry depending on the device so refer to the user s manual of the target device for setting these items This tab consists of the following items lt l gt Communication interface to device area lt 2 gt Supply oscillator area lt 3 gt Operation Mode area lt 4 gt Defaults button Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE Target Standard Advanced Communication interface to device Supply oscillator Port fae ters Frequency 5000000 Pulse number 11 On Target Hz Iv Speed 5000kHz hd Multiply rate Internal Direct mode PLL mode 4 00 Operation Mode Chip Block Start fe End r r mo p Defaults Cancel Figure 4 61 Device Setup Dialog Box Standard Tab lt 1 gt Communication interface to device area In this area select the channel and speed for communication between the FP5 and target device Communication interface to device Port SI0 ch0 z Pulse number 0 Speed 625kHz v se Figure 4 62 Communication interface to device Area Port list Select the mode of communication between the FP5 and target device The communication mode is determined by the number of Vrr output from the FPS or the FLMDON pulse count The selectable communication mode differs depending on the target device Refer to the user s manual of the target device used and select a mode With some devices the channel number may start from 1 In this case the corresponding number is shif
227. s Example of usage See below downprm downset Download parameter customer settings upprm upset Upload parameter customer settings lod Download Intel Hex or Motorola S record file hex srec Upload Intel Hex Motorola S record file progarea Change Progam area files Show downloaded HEX SREC files in FP5 memory prm Show Parameter file PRM SET information conf Show Modify FP5 configuration security Show Modify FP5 Security settings brt Set baudrate to host fcks Calculate file checksum FP5 memory fill Fill memory ver Show firmware version res Reset FP5 pwr_off Switch OFF FP5 immediately set auto Power OFF sound Enable Disable sound generation trc Show Device communication trace version_up Update firmware version fpga_up Update FPGA version selftest Perform a Selfcheck Device commands Blankcheck Erase Program Verify Read Erase and Program Show device signature Get device checksum Set security information R20UTOOO8EJO0600 Rev 6 00 RENESAS Page 141 of 224 Sep 30 2013 PG FP5 V2 11 USAGE COMMUNICATION COMMANDS 8 4 11 lod command Downloads program files Input format lod add fhame filename ftime date and time Description of the function Downloads the program file to a valid programming area After this command is executed the program file must be downloaded to the FP5 in ASCII format using com
228. s commands required for programming the target device Select a command from this menu and press the ENTER button the FP5 will then execute the command for the target device based on the settings downloaded to the valid programming area For details on command execution refer to 4 3 3 Device menu Sep 30 2013 PG FP5 V2 11 USAGE IN STANDALONE MODE Table 6 1 Commands Menu 1 Main Menu Commands gt Submenu E P Program Description Pressing the ENTERI button executes the Autoprocedure E P command Pressing the ENTERI button executes the Program command Erase Verify Pressing the ENTERI button executes the Erase command Pressing the ENTERI button executes the Verify command Set Security Checksum Pressing the ENTERI button executes the Set Security command Pressing the ENTER button executes the Checksum command The checksum value read from the target device is displayed in the message display lt When a product with no data flash is selected from the 78K V850 RL78 family gt Checksum xxxx lt When a product with data flash is selected from the 78K V850 RL78 family gt Code Flash sum XXXX gt Enter Click the button Data Flash sum XXXxX gt Enter Click the button Total sum XXXX gt Enter lt When RX family R8C family or SuperH family is selected gt User mat sum XXXXXXXX
229. s3uceettewvayet egudeeed Suveelcefeducestpemasttosulsee devant sasdusreceiie 31 Bp U MIMS TAN ATOM acelcvaadesiccencdcteanaterti andes feteden A EA 32 3 4 Updating Programming GUI Firmware and FPGA cc ccccccceceeeceeeeeceeeeeseaeeeeaaeseeeeeseaeeeseaeeeeeeeeaes 32 3 4 1 Checking the Current Version cccecceceeeeeeeneeeeaeeeeeeeeceaeeseaaeseeeeecaeeeeaaeseeeaeseeeeseaeeeeaaesseneeees 32 3 4 2 Installation of programming GUI 00 eeecceecceceeeeeeeeeeeeeee cee eeeeaeeeeeeeseeeeeseaeeeeaaeseeeeeseaeeesaeeeeeeeeed 33 3 4 3 Installation of firmware update cece eeeeeeee ee eeteeeeeeaeee sete aaa R N N 33 3 4 4 Installation of FPGA update eeeeceeceeeceeeeeeaeeeeeeeceaeeeceaeeeeaeeseeeeceaeeesaaesseaeeseeeeeseaeessaaeseneees 36 4 PROGRAMMING GUI USAGE s cic eis dedeiiiie reteelicnnihe raieedaceeie a a a iaia 41 A1 MOC TON eriaren iue dvs ney ashe tance tance pa nde eae od S EEEE IEEE 41 4 2 Startup of Programming GUl irssssennnieniinr niinniin aa aa eaaa ea aa anaia 41 AB Menu Bal erarerpadisniaroi inaa EaR E AE SENERARE EEES EAE E AEAEE EITE iN 45 4 3 1 File MEM nannu EAA 45 453 2 Programmer MONU sss aaia a RA Aa EA AARAA EKAA aS ARAA 53 da Device MEN a E used weed deoesnicuee weate bocetvunteewesddedtiueesteays 67 ae Wa eI T A A E A A A A Dueuseveneely 97 AA TOODA a a eee sen 98 45 Action Cog WINDOW wccescsctcncits cecdestacectteaecietaateutitetecdnctanttiis EEA RERA ie AAA 98 4 6 Programming Parameter WiN
230. se 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 treatment for aging degradation or any other appropriate measures Because the evaluation of microcomputer software alone is very difficult please evaluate the safety of the final products or 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 lim
231. select the FPGA file After the FPGA version has been updated the FP5 power supply will be automatically turned off Example of usage Command Status Status LED Message display Screen output fpga_up Display after executing the Off BUSY Are you sure you want command before downloading to update the FPGA Press y to continue Press n to y n cancel Display after pressing y Off BUSY Preparing storage OK Now loading Display during download Off BUSY Display after end of normal Off BUSY Refer to lt 1 gt below download Press y to continue Press n to cancel Display after pressing y Off Programming Refer to lt 2 gt below FPGA lt 1 gt OK CAUTION Now the FPGA will be written Please ensure that the correct FPGA Update file has been downloaded the Power is NOT disconnected during this operation the Programmer is NOT reset during this operation Do you want to continue y n lt 2 gt Starting FPGA programming 100 done FPGA Update succeeded PG FP5 Power will be switched OFF now R20UTOOO8EJ0600 Rev 6 00 7tENESAS Page 139 of 224 Sep 30 2013 PG FP5 V2 11 USAGE COMMUNICATION COMMANDS 8 4 9 hex command Uploads the program file in Intel HEX format Input format hex lt code_start address gt lt code_length gt lt data_start address gt lt data_length gt lt UB_start address gt lt UB_length gt Description of t
232. selected Inv device name Inv Signature Invalid device name Invalid signature Check if the correct device is selected Check if the correct device is selected Inv Dev Firm ver Unkn Signature Invalid device firmware version Unknown Signature Check if the correct device is selected Check if the correct PRM file is used Inv Devicelnfo Invalid device information Check if the correct device is selected Prewrite Timeout Prewrite failed Prewrite timed out Prewrite retry error A communication problem occurred between the FP5 and target device Try the operation again The device may be damaged Erase Timeout Erase timed out A communication problem occurred between the FP5 and target device Try the operation again Erase failure Erase failed The device may be damaged Ers time exceed Erase timed out The device may be damaged Ers Timeset err Erase time setting error The PR5 file may contain invalid data Contact Renesas Electronics R20UTOOO8EJ0600 Rev 6 00 Sep 30 2013 7tENESAS Page 200 of 224 PG FP5 V2 11 MESSAGES No Message Error Condition 2 Possible Workaround 050 Bin Timeout Blank check timed out A communication problem occurred between the FP5 and target device Try the operation again 051 Blank chk failed Blank check failed The device connected is not empty Use
233. setting box in the Option bytes setting area on the Advanced tab in the Device Setup dialog box If the NEXT button is clicked the display changes from OPBT0 to OPBTx Display example If FFFFFFEQ is specified for OPBTO in the Option bytes setting area OPBTO FFFFFFE9 7tENESAS Page 119 of 224 PG FP5 V2 11 USAGE IN STANDALONE MODE 6 3 4 Voltage Setting menu The Voltage Setting menu is used to check the voltage level setting used when programming the target device currently connected to the FP5 The settings downloaded to the valid programming area are displayed The settings cannot be changed using this menu Table 6 4 Voltage Setting Menu Main Menu Submenu Description Voltage Setting gt Displays the value of Voo supplied to the target device connected to the FP5 in volts Displays the value of Voo2 supplied to the target device connected to the FP5 in volts Vdd Source Indicates the source of Voo supplied from the target device as either of the following Voo from PG Voo is supplied from the FP5 Voo from device Vo is supplied from the user system Vdd Monitoring Displays the setting of the Vdd monitoring check box in the Supply voltage area on the Advanced tab in the Device Setup dialog box on Selected off Not selected WideVoltage mode Displays the setting of the Wide Voltage Mode check box FLMDO Level The FLMDO Level displays the voltage level of the FLMDO signal CLK
234. ss F P P 5 Value F P P 55555 FFFFF PPPPP 5 F P 5 5 5 5 m Target device 5555 Name 78F1166 Port UART Pulse Num 0 Firmware fermion teat Speed 1 000 000 bps gt MC10340174 fee eee aah et Standard mode unsecured Head ewe iele Multiply 1 00 Mode Firmvare Version V2 0 WW Vi FPGA V4 MC10340174 Standard mode unsecured gt Figure 3 4 Action Log Window When Firmware Update Is Finished Note Depending on the changes made the following dialog box will be displayed In this case the information stored in the FP5 PR5 file ESF file program file will have been deleted so please download those files again Refer to 4 2 Startup of Programming GUI Infor mation i 12208 Information defined in initial file is not enough or it is not matched with FlashProgrammer J Setup parameters is needed Sep 30 2013 PG FP5 V2 11 SOFTWARE INSTALLATION 3 4 4 Installation of FPGA update Install the latest FPGA by using the latest programming GUI Decompress the file to any folder The FPGA file fp5_fpga_vx rec will then be decompressed into the folder so copy it to any folder x indicates the FPGA version 1 Click the Programmer menu on the menu bar and select Update FPGA the Update FPGA dialog box will then be opened File Programmer Device Help Setup host connection Logging Select Programming area gt vel v Buzzer Firt Reset Self Test Update Fi
235. t Display example gt if ENTER button is pressed Commands Prog Area now 1 Changes the valid programming area from Area 0 to Area 1 The currently selected programming area can be checked in the Programmer area in the programming parameter window of the programming GUI The factor for dividing the programming area is the value set in the Programming Area Setting area in the Device Setup dialog box The Type Setting menu is used to check information target device programming environment settings contained in the ESF file downloaded to the FP5 The settings downloaded to the valid programming area are displayed All the values displayed are those downloaded last time by the programming GUI The settings cannot be changed using this menu R20UTOOO8EJ0600 Rev 6 00 Sep 30 2013 7tENESAS Page 116 of 224 PG FP5 V2 11 Table 6 2 Main Menu Type Setting gt Type Setting Menu Submenu Device Port USAGE IN STANDALONE MODE Description Displays any of the following to indicate which mode is selected for communication between the target device and the FP5 SIO 0 SIO 1 SIO 2 SIO W S IIC 0 IIC 1 IIC 2 IIC 3 UART 0 UART 1 UART 2 UART 3 PORT 0 PORT 1 PORT 2 Multiply Rate Displays the multiplication rate of the operating clock for the target device Serial CLK Displays the serial clock rate in Hz that is used for communication between the target device and the F
236. tallation foldeAFP5_PRu Are you sure you want to update the Firmware Select whether to update the firmware Click Ok to update the firmware Click Cancel to cancel the operation Are you sure you want to update the FPGA Select whether to update the FPGA Click Ok to update the FPGA Click Cancel to cancel the operation Do you really want change parameter area format All data will lost after this action Select whether to change the factor for dividing the programming area After this operation all data will be lost Information defined in initial file is not enough or it is not matched with FlashProgrammer Setup parameters is needed Information defined in initial file is not complete matched with FlashProgrammer Do you want to go Setup dialog Updating the firmware will take several minutes ATTENTION The process of updating your firmware must NOT be interrupted Without firmware this FP5 GUI will NOT run properly Install new firmware in your programmer The settings in the ESF file are insufficient or do not match the settings made in the FP5 Device setup is required The contents of the ESF file do not match those stored in the FP5 Select whether to open the Device Setup dialog box The firmware update will take several minutes ATTENTION Firmware update cannot be aborted The FP5 may not operate normally if proper firmware is not installed Select whether to update t
237. ted for example chO shown in the screen corresponds to ch1 of the device and the displayed channel number must be shifted accordingly Note FLMDO in a single power supply flash memory microcontroller or FLMD1 in a two power supply flash memory microcontroller Note For the available communication channel refer to the user s manual of the target device based on the pulse count displayed for Pulse number R20UTOOO8EJ0600 Rev 6 00 7RENESAS Page 82 of 224 Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE Table 4 4 Channels for Communication Between FP5 and Target Device Item on Screen Description SIO ch0 SIO 3 wire clocked communication port channel 0 SlO ch1 SIO 3 wire clocked communication port channel 1 lO ch2 SIO 3 wire clocked communication port channel 2 SIO H S SIO 3 wire clocked communication port with handshake pin IIC ch0 C channel 0 IC ch1 IC channel 1 IIC ch2 C channel 2 IIC ch3 C channel 3 UART cho UART asynchronous communication port channel 0 UART ch1 UART asynchronous communication port channel 1 UART ch2 UART asynchronous communication port channel 2 UART ch3 UART asynchronous communication port channel 3 Port chO Port pseudo 3 wire A Port ch1 Port pseudo 3 wire B Port ch2 Port pseudo 3 wire C CSl Internal OSC SIO 3 wire clocked communication port using internal oscillator In the case of 78KO All Flash UART EXCL
238. text gt command When terminated XXXXXXXXXXXXXXXX abnormally 8 5 9 gos command Obtains the information of flash option get for the target device Input format gos Description of the function Obtains the information set by executing the Get Flash options command on the Device menu of the programming GUL Example of usage Command Status Status LED Message display Screen output gos Display after executing the PASS Returns to the display Display example ald When completed before executing the Security Flag xx nr commen Boot Block Number xx FS area XxXxx XXXX OCD ID XXXXXXXXXXXXXXXXXXXXXXXX Option Bytes xxxxxxxx PASS Get Option Setting operation finished Display after executing the ERROR ERROR xxx ERROR Exxx lt text gt command When terminated XXXXXXXXXXXXXXXX abnormally R20UTOOO8EJ0600 Rev 6 00 RENESAS Page 157 of 224 Sep 30 2013 PG FP5 V2 11 8 5 10 gsc command Obtains the information of security get for the target device Input format gsc Description of the function USAGE COMMUNICATION COMMANDS Obtains the information set by executing the Set Security command on the Device menu of the programming GUI Example of usage Command gsc Status Status LED Message display Screen output Display after executing the PASS Returns to the display Display example command When completed before executing the Se
239. 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 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 Plea
240. the erase command before programming 060 Wrb Timeout Writeback timed out There was a communication problem between the FP5 and target device Or the device may be defective 061 Writeback failed Writeback failed A device defect is most probably causing this error 062 Wrb retry exceed Writeback retry timed out A device defect is most probably causing this error 063 Wrb Timeset err Writeback time setting error The parameter file may contain invalid data Contact Renesas Electronics 070 Write timeout Write timed out There was a communication problem between the FP5 and target device Try the operation again 071 Write failed Write operation failed Either the device was not blank before writing or a device defect is causing this error 072 Write retry err Write retry error Either the device was not blank before writing or a device defect is causing this error 073 Wrt Timeset err Write time setting error The parameter file may contain invalid data Contact Renesas Electronics 080 Vrf Timeout Verify timed out There was a communication problem between the FP5 and target device Try the operation again 081 Verify failed Verify failed The data in the target device s flash memory is not the same as in the FP5 090 IVrf Timeout Internal verify timed out There was a communication problem between the F
241. the Open firmware file dialog box R20UTO008EJ0600 Rev 6 00 7RENESAS Sep 30 2013 Page 57 of 224 PG FP5 V2 11 PROGRAMMING GUI USAGE Open firmware file Look in O fimwae ce Ee gt fe fps_fw_v200 rec My Recent Documents Desktop Ss p My Network File name fp5_fw_v200 rec Places Files of type S rec files rec Cancel Figure 4 22 Open firmware file Dialog Box Select the firmware file fp5_fw_vxxx rec and then click the Open button Note 1 Do not use FP5 firmware other than the one posted on the website otherwise a defect may occur 2 When a firmware of FP5 updates from V2 00 to V1 xx a serial number of FP5 is erased And FP5 can t operate in USB1 1 In addition the other functions don t have any problem When FP5 revives consult a Renesas Electronics sales representative or distributor Some commands are sent to the FP5 and the update progress status is displayed in the action log window The message Firmware Update succeeds which indicates normal completion of firmware update and Restarting FP5 which is equivalent to RESET command processing is automatically performed The new version can then be checked as Firmware Version Vx xx The update takes about 10 seconds Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE File Programmer Device Help Programmer FP5GUI 2 07 Firmware V2 07 ProgArea 0 Mode
242. ting of this command displays the following dialog box Sep 30 2013 PG FP5 V2 11 Update FPGA PROGRAMMING GUI USAGE 12211 Updating the FPGA will take several minutes ATTENTION The process of updating your FPGA must NOT be interrupted Without FPGA this FPS GUI will NOT run properly Install new FPGA in your programmer Figure 4 24 Update FPGA Dialog Box To continue the FPGA update click the OK button Clicking the Cancel button cancels the FPGA update Clicking the OKI button opens the Open FPGA file dialog box Open FPGA file Look in fpga ey FE Fes_foge_v2 rec My Recent Documents Desktop Places e My Network File name fp5_fpga_v2 rec hi Files of type S rec files rec v Cancel Figure 4 25 Open FPGA file Dialog Box Select the FPGA file fp5_fpga_vx rec and then click the Open button Note Do not use FP5 FPGA other than the one posted on the website otherwise a defect may occur Some commands are sent to the FP5 and the update progress status is displayed in the action log window The message FPBGA Upload succeeded which indicates normal completion of firmware update and FP5 Power will be switched OFF now which is equivalent to processing when the POWER button is turned off is automatically executed The update takes about 30 seconds
243. ued 210 Already conn A con command was issued when the target device was already connected to FP5 R20UTOO08EJ0600 Rev 6 00 Sep 30 2013 7tENESAS Page 201 of 224 PG FP5 V2 11 MESSAGES No Message Security ID err HEX range err Error Condition Security ID does not match Program file size error 3 Possible Workaround Set the security ID specified for the target device The address range of the downloaded program file is outside the address range set in the Operation Mode area on the Standard tab of the Device Setup dialog box Invalid ID Tag The format of the ID Tag is not correct Download the correct file Targ power det Target power detected Check Setup FP5 should supply Voo power but supply voltage has been detected to be already present on the target board Please change Setup uncheck Voo On Target FP5 int Vpp fail FP5 int Vdd fail FP5 Power failure FP5 Power failure Please contact Renesas Electronics support desk Please contact Renesas Electronics support desk FP5 int Vdd2 fail FP5 Power failure Please contact Renesas Electronics support desk Targ power fail No Voo applied or Voltage is out of range Voo is supplied from target board but Voo voltage does not match the Voo value in FP5 Setup Check if the Voo power settings are OK Power failure A supply voltage failure has been detected
244. utes Autoprocedure E P command Input format ep or epv Description of the function USAGE COMMUNICATION COMMANDS Executes a similar function to the programming GUI Device menu gt Autoprocedure E P command Example of usage Command Status Status LED Message display Screen output ep Display while executing the BUSY See below or command epy Display after executing the PASS Returns to the display PASS command When completed before executing the Erase Program operation normally command finished or PASS EPV operation finished Display after executing the ERROR ERROR xxx ERROR Exxx lt text gt command When terminated XXXXXXXXXXXXXXXX Erase Program operation abnormally finished or ERROR Exxx lt text gt EPV operation finished Display example Blank check Skipped Erase Chip PASS Program Chip 10 20 100 R20UT0008EJ0600 Rev 6 00 RENESAS Page 154 of 224 Sep 30 2013 PG FP5 V2 11 USAGE COMMUNICATION COMMANDS 8 5 5 ers command Executes Erase command Input format ers Description of the function Executes a similar function to the programming GUI Device menu gt Erase command Example of usage Command Status Status LED Message display Screen output ers Display while executing the BUSY Erase Chip Blank check Skipped command Chip mode re Erase Chip Display while executing the BUSY Erase Block Blank check Skipped comma
245. wire UART Note The pin names might differ depending on the target device For details about the actual pin names see the user s manual of each target device R20UT0008EJ0600 Rev 6 00 RENESAS Page 179 of 224 Sep 30 2013 PG FP5 V2 11 NOTES ON TARGET SYSTEM DESIGN lt 7 gt V850E2 CSD Target connecter 14 pin type Target device Clock circuit 4 FLMDO FLMDO 9 FLMD1 FLMD1 FPOT Epon FPcK Note RESET Jumper Note The pin names might differ depending on the target device For details about the actual pin names see the user s manual of each target device Figure 10 7 Circuit Example for V850E2 CSD R20UTOOO8EJ0600 Rev 6 00 7tENESAS Page 180 of 224 Sep 30 2013 PG FP5 V2 11 NOTES ON TARGET SYSTEM DESIGN lt 8 gt RL78 family VDD EVDD Figure 10 8 Circuit Example for RL78 Family VDD EVDD Note It must be connected when the E1 E20 emulator is used However it doesn t have to be connected when the PG FP5 is used lt 9 gt RL78 family VDD EVDD 8 VDD 9 FLMD1 2 GND 12 GND FL RL78 FP5 13 RESET Figure 10 9 Circuit Example for RL78 Family VDD EVDD Notes 1 To perform write when VDD EVDD connect the conversion adaptor FL RL78 FP5 a product of Naito Densei Machida Mfg Co Ltd On the Advanced tab in the Device Setup dialog box enter the voltage value of VDD in the Vdd V box enter OV in the Vdd2 V box and select the On T
246. x files rec s s2 mot a20 a3 Y Cancel Figure 5 13 Selection of Program File lt 9 gt Click the Standard tab Target Standard Advanced Communication interface to device _ Supply oscillator Port i Frequency Internal OSC Pulse number 0 On Target Hz V Speed 1Mbps z Multiply rate Internal Direct mode IIG Address joo PLL mode fi 00 Operation Mode Chip Block Start C Area End SCY Show Address J Selective Programmine Verify Read Start End sF FFF Defaults Figure 5 14 Device Setup Dialog Box Standard Tab lt 10 gt Set the items in accordance with the programming environment used In particular set the Communication interface to device area and Supply oscillator area in accordance with the specifications of the device selected R20UT0008EJ0600 Rev 6 00 RENESAS Page 108 of 224 Sep 30 2013 PG FP5 V2 11 EXAMPLE OF OPERATION USING PROGRAMMING GUI Specify a flash memory range to be manipulated in the Operation Mode area the flash memory range that can be set is defined by the PRS file according to the specifications of the device In this example it is assumed that the following settings are made Communication Interface to device area Port UART Speed 1M Baud Supply oscillator area On Target Unavailable using internal oscillator Frequency Unavailable Internal OSC Multiply rate Unavailable Int
247. xecuted Set Security after Program check box If this check box is selected the Set Security command is automatically executed after the Program and Autoprocedure E P commands are executed R20UTOO08EJ0600 Rev 6 00 7tENESAS Page 89 of 224 Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE Checksum after Program check box If this check box is selected the Checksum command is automatically executed after the Program and Autoprocedure E P commands are executed Set Option bytes after Program check box If this check box is selected the Set Option bytes command is automatically executed after the Program and Autoprocedure E P commands are executed Set OCD security ID after Program check box If this check box is selected the Set ID Code command is automatically executed after the Program and Autoprocedure E P commands are executed Run after Disconnect check box If this check box is selected the RESET signal level changes from low level to Hi Z after each command Note that when the Reset option of Run after Disconnect is set to Pull up with the FP5 Manager dialog box the signal will go from low level to Pull up If this check box is not selected the RESET signal changes to low level after each command is finished This check box becomes available if the On Target check box in the Supply voltage area is selected If selected the written program can be automatically executed after e
248. y lt ln the case of read hex 0 1000 gt 10000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFO0O 10001000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFO 100F FOOOFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFOt 00000001 FF lt In the case of read srec 0 1000 gt S0030000FC S31500000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA 31500000010FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEA S31500000FFOFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFB S70500000000FA lt In the case of read 0 1000 gt 000000 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 000010 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF OOOFFO FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF R20UTOOO8EJO0600 Rev 6 00 RENESAS Page 161 of 224 Sep 30 2013 PG FP5 V2 11 USAGE COMMUNICATION COMMANDS 8 5 15 scf command Executes Set Security command Input format scf Description of the function Executes a similar function to the programming GUI Device menu gt Set Security command Example of usage Command Status Status LED Message display Screen output scf Display while executing the BUSY Set Security Fla Set Security Flags command Display after executing the PASS Returns to the display PASS command When completed before executing the Security operation finished normally command Display after executing the ERROR ERROR xxx ERROR Exxx lt text gt command When terminated XXXXXXXXXXXXXXXX abnormally 8 5 16 sig command Executes Signature read command Input format ac
249. y is pressed When the Write Intel HEX file or Write Motorola SREC file command is executed following this command the read data can be saved in the Intel HEX format or Motorola HEX format Use of the saved file with other tool products is not supported Note The folder in which program data was saved the last time is displayed in the program data save dialog box Look in FP5_PRJ E sample hex My Recent Documents 3 My Network File name Po Places Files of type Hex files hex Cancel Figure 4 39 Program Data Saved Dialog Box lt When Write Intel HEX file Command Is Executed gt R20UT0008EJ0600 Rev 6 00 7RENESAS Page 68 of 224 Sep 30 2013 PG FP5 V2 11 PROGRAMMING GUI USAGE Look in 9 FP5_PRJ amp eX Ee 3 B sample s My Recent Documents My Documents 8 My Computer M yN moi File name laces Files of type Sec rec s Cancel Figure 4 40 Program Data Save Dialog Box lt When Write Motorola SREC file Command Is Executed gt Clicking the Open button saves the program data into a file and closes the dialog box Clicking the Cancel button closes the program data save dialog box without saving the program data into a file 6 Set Security command The Set Security command sets the security functions for the target device When this command is executed the settings made in the Set Security command options area on the Advanced tab in t
250. ype circuit Connect a resistor to the portion above enclosed in the dotted line as necessary R20UTOOO8EJ0600 Rev 6 00 RENESAS Page 174 of 224 Sep 30 2013 PG FP5 V2 11 NOTES ON TARGET SYSTEM DESIGN 2 Target Device Pin Recommended Design Correct connection lt 2 gt Target device FP5 RESET Correct connection lt 3 gt Target device FP5 RESET Correct connection lt 4 gt Target device FP5 RESET Correct connection lt 5 gt Target device FP5 RESET R20UTOOO8EJO0600 Rev 6 00 RENESAS Page 175 of 224 Sep 30 2013 PG FP5 V2 11 Target Device Pin NOTES ON TARGET SYSTEM DESIGN 3 I O pins Recommended Design When a target device pin used by the FP5 is also connected to the input of an external device and if that target device malfunctions disconnect the external device as shown in the portion below enclosed in the dotted line or make it output high impedance like dotted line Example Target device FP5 input pin External device Adverse effect If a target device pin used by the FP5 is also connected to the output of an external device like dotted line and a signal collision occurs disconnect the external device as shown in the portion below enclosed in the dotted line Example Target device FP5 output pin gt Conflict External device Keep the wiring between the FP5 connector and the target device Ver pin as thick and as short as possible

Download Pdf Manuals

image

Related Search

Related Contents

DV-7215HFD Navman user manual face.060921.cdr  Avis Technique Schücosol KS CSTB    Télécharger la Gariguette n°29 - Plougastel  myAIRVO™2  HP ENVY 17-2280NR  Unit 2 User Manual - Cambridge School Classics Project  Learning Resources Three Bear Family User's Manual  

Copyright © All rights reserved.
Failed to retrieve file