Home
Data FLASH Converter - Renesas Electronics
Contents
1. E001 Could not create output file E002 Could not open Data FLASH EEPROM file E003 Could not open Code FLASH Program file E004 Could not open Data FLASH Program file E005 Illegal combination of command line options E006 Illegal command line option detected E007 E008 Please specify correct file type SREC HEX E009 Data FLASH program file is not of type HEX E010 Data FLASH program file is not of type SREC E011 Code FLASH program file is not of type HEX E012 Data FLASH EEPROM file Address is not in range of Data FLASH area Code FLASH program file is not of type SREC E013 Data FLASH EEPROM file has invalid file format type Only XML supported E014 E015 Data FLASH program file has invalid file format type Only SREC HEX supported Code FLASH program file has invalid file format type Only SREC HEX supported E016 E017 Data FLASH EEPROM file Length validation error Data length must be a size 4 n with n gt 0 Affected record ID id Data FLASH EEPROM file Data length mismatch error Given length and data length do not match Affected record ID lt id gt E018 Data FLASH EEPROM file RecordID lt id gt was used more than one time error E019 Data FLASH EEPROM file Section size validation error Section size must be a size of 2048 2
2. formats The output format of the Data FLASH converter is always the same as the chosen input file format for program code mapped to the Data FLASH as well as the program code mapped to the Code FLASH In case a Data FLASH image should be created from EEPROM emulation data exclusively the output format can be chosen between Intel hex and Motorola S record 4 00 RENESAS 2 Data FLASH Converter Software Installation Chapter 4 Software Installation The Data FLASH Converter requires Windows 2000 Windows XP Windows Vista or Windows 7 operating system installed on your personal computer To start the installation please run the setup exe installation program During initialization phase of the setup program a progress bar is shown InstallShield Wizard Preparing to Install DataFLASHConverter Setup is preparing the InstallShield Wizard which will guide you through the program setup process Please wait Checking Operating System Version Cancel Figure 6 Install preparation After the setup program has finished initialization a welcome screen appears Click the Next button to continue the installation iS DataFLASHConverter InstallShield Wizard Welcome to the InstallShield Wizard for DataFLASHConverter The InstallShield R Wizard will allow you to modify repair or remove DataFLASHConverter To continue click Next mesi Cancel Figure 7 Welcome screen RO1UT0175ED0400 Rev 4 00 AS 23 User Ma
3. lt and ending with gt The values defining the ID length or data information must have the following C like notation o Leading 0x denotes a hex value o Leading zeros within a hex value are interpreted by the Data FLASH Converter and do also determine the width of a Data value Example 0x00 data width 1 Byte 0x0012 data width 2 Byte 0x00000023 data width 4 Byte o All other notation is interpreted as decimal value Values have to be separated by either space or comma RO1UT0175ED0400 Rev 4 00 RENESAS 17 User Manual Data FLASH Converter Input files formats 2 3 5 EEPROM XML file format for RL78 Tiny EEL Type T02 The XML input format and the corresponding XML tags for RL78 devices in MF3 FLASH Technology in combination with the RL78 Tiny EEPROM emulation library Type T02 is shown below lt xml version 1 0 gt lt DataFlash gt lt AdministrativeSection gt lt FAL_CONFIG_DATAFLASH_SIZE gt 16 lt FAL_CONFIG_DATAFLASH_SIZE gt lt FAL_CONFIG_BLOCK_SIZE gt 0x400 lt FAL_CONFIG_BLOCK_SIZE gt lt EEL CONFIG BLOCK CNT gt 4 lt EEL CONFIG BLOCK CNT gt lt TYPE TINY gt 1 lt TYPE TINY gt lt COMPILER gt IAR lt COMPILER gt lt AdministrativeSection gt lt Record gt lt ID gt 0x01 lt ID gt lt IDName gt Name 1 lt IDName gt lt Length gt 2 lt Length gt lt Data gt 0x20 0x30 lt Data gt lt Record gt lt Record gt lt ID gt 0x02 lt ID gt lt IDName gt Nam
4. Intel HEX Motorola SREC I Code FLASH area W Data FLASH area Start address 1F8000 End address 1FA7FF Figure 19 Hex Editor Save as dialog RO1UT0175ED0400 Rev 4 00 AS 32 User Manual ENES Data FLASH Converter Data FLASH Converter GUI 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 The relationship between the HEX Editor and saved File for the Data FLASH can bee seen in the figure below lt HEX Editor gt 5 6 7 8 9 A B C D E F 55 66 77 88 99 AA BB CC DD EE FF lt Saved program file gt ID Tag DataFlash 1 ID Tag poo 11 22 33 l FF FF FE FF 44 55 66 771 FF FF FF FF 188 99 AA BB 00 00 00 oof rec DD EE FF 00 00 00 00 ID Tag 1100 0 1 42 3 4 00 11 22 33 44 Figure 20 Hex Editor format of saved Data FLASH file 2 Open Device Parameter File The Open Device Parameter File menu allows to setup the corresponding PG FP5 FLASH programmer device parameter file Before further settings and DevPrS operations can be made within the Data FLASH Converter GUI the corresponding pr5 file has to be specified Look in O DataFL amp 5HConverter et ER
5. LENESAS Data FLASH Converter Conversion tool for 78KOR RL78 V850 and RH850 based Data FLASH memory image generation 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 Corp without notice Please review the latest information published by Renesas Electronics Corp through various means including the Renesas Technology Corp website http Awww renesas com ay www renesas com Notice 1 All information included in this document is current as of the date this document is issued Such information however is subject to change without any prior notice Before purchasing or using any Renesas Electronics products listed herein please confirm the latest product information with a Renesas Electronics sales office Also please pay regular and careful attention to additional and different information to be disclosed by Renesas Electronics such as that disclosed through our website 2 Renesas Electronics does not assume any liability for infringement of patents 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 Ren
6. be specified Only hexadecimal input values are allowed The entered start address should be equal to the physical start address of the Data FLASH area of the corresponding devices The size of the Data FLASH can be specified by the pull down menu Supported sizes are 32 Kbyte and 64 Kbyte Setup Data FLASH Data FLASH area Start Address Ox001F8000 Size 64 KB Cancel Set Data FLASH size R01UT0175ED0400 Rev 4 00 TENESAS 35 User Manual Data FLASH Converter Data FLASH Converter GUI By closing the dialog pressing the lt OK gt button the specified memory area is displayed in the Data FLASH area box of the main window Data FLASH area Start address 0x001F8000 End address 0x001FFEFF Size 32 KB Figure 24 Config window Data FLASH area box Additional to the file menu and toolbox button the Data FLASH area can be specified by pressing the lt Set gt button within the Data FLASH area box RO1UT0175ED0400 Rev 4 00 AS 36 User Manual ENES Data FLASH Converter Data FLASH Converter GUI 4 Open Data FLASH EEPROM file The Open Data FLASH EEPROM file menu allows selecting and loading an EEPROM emulation data file by the Data FLASH Converter After downloading the EEPROM emulation data the corresponding memory area within the Data FLASH is shown in the address map window EEPROM Look in O DataFLASHConverter Soutput R EEPROM My Recent EEPROM Documents My Co
7. depending on the specified device parameter file Data FLASH area definition or the loaded program files or loaded EEPROM file lt 2 gt Toolbar lt 3 gt Config window lt 4 gt Address map window Y DataFl ASHConverter J fm Ea E f e EEpRoM code code mrg df Device Parameter File Address Map Device 70F3638 Data FLASH Ox001FAFFF Data FLASH area EEPROM 101 xml Start address Ox001F8000 0x001F9000 End address OxOD1FFFFF Ox001F8D76 Size 32 KB DF Program 101 hex Data FLASH EEPROM File EEPROM_101 xml KML File 0x001F8000 Data FLASH Code FLASH Program File DF Program 101 hex Intelhex File OxOOOZCEES CF Program 101 hex Code FLASH Ox00000000 Program File CF Program 101 hex Intelhex File Generate Data FLASH file Generate merged Data FLASH Code FLASH file Clear All Figure 14 Data FLASH Converter main window RO1UT0175ED0400 Rev 4 00 AS 27 User Manual ENES Data FLASH Converter Data FLASH Converter GUI The main window consists of the following areas Name Displayed items lt 1 gt Menu bar Menu items executable by the Data FLASH Converter lt 2 gt Toolbar Frequently used commands as buttons lt 3 gt Config window Configuration settings lt 4 gt Address map window Address map information for Code FLASH and Data FLASH memory images lt 5 gt Process window Controls to start conversion merging or reset of all configura
8. 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 S record format is automatically recognized When loading is finished the HEX Editor main window is opened RO1UT0175ED0400 Rev 4 00 AS 30 User Manual RENES Data FLASH Converter Data FLASH Converter GUI C DataFLASHConverter output df_output dbg hex 0 1 2 3 4 5 6 7 8 19 A 8123456789ABCDEF FETT 01F8010 91F8028 01F8030 81F8040 91F8050 81F 8068 81F8070 01F8080 ETTE 01F8090 FETT 81F80A0 TITITITITITIJTI 81F80B0 MTs 91F80C0 FETE 91F89D8 CO 01F80E0 O1F80F 01F8100 01F8110 01F8120 01F8130 01F8140 AO 81F8158 COTO 01F8160 PT 01F8170 FETE 01F8180 TUL 81F8198 KNNNNNNNNNNNNNNN 81F81A0 FETE 61F81B8 91F81C0 91F81D8 91F81E0 O1F81F 01F8200 91F8218 01F8220 PTOI 01F8230 TOs 01F8240 P 01F8250 Patt FLL LS Te Address area Data area ASCII area ID Tag area Figure 18 Hex Editor main window The displayed file contents can be modified by placing the cursor 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 an area used for target devices supporting Data FLASH It is available only for the address space of the Data FLASH area specified within the Dat
9. FLASH file Supported file formats 1 CodeFLASH program file DataFLASH program file EEPROM file HEX SREC XML Supported combinations of input files 2 CodeFLASH program file DataFLASH program file HEX SREC 3 CodeFLASH program file EEPROM file HEX SREC XML 4 DataFLASH program file EEPROM file HEX SREC XML DataFLASH program file HEX SREC EEPROM file Table 2 Supported combinations of input files 2 2 Program Code for Data FLASH or Code FLASH The program code has to be available in an Intel hex or Motorola S record format For Intel hex the extended linear address record and extended segment address record formats are supported With regard to the Motorola S record type the S2 and S3 record formats are supported for program code mapped to the Data FLASH memory For program files mapped to the Code FLASH the S1 S2 and S3 record formats are supported The term Program File in combination with Data Flash may mean either program code not supported for all device series and or any constant data 2 3 EEPROM emulation data To specify the EEPROM emulation data the Data FLASH converter supports the standard XML file format eXtensible Markup Language as input format Please also consult the manual of the EEPROM Emulation library that you are using for further details about the XML tags and their meaning RO1UT0175ED0400 Rev 4 00 AS 9 User Manual RENES Data FLASH Converte
10. 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 RO1UT0175ED0400 Rev 4 00 AS User Manual RENES Regional Information Some information contained in this document may vary from country to country Before using any Renesas Electronics product in your application please contact the Renesas Electronics office in your country to obtain a list of authorized representatives and distributors They will verify Device availability Ordering information Product release schedule Availability of related technical literature Development environment specifications for example specifications for third party tools and components host computers power plugs AC supply voltages and so forth Network requirements In addition trademarks registered trademarks export restrictions and other legal issues may also vary from country to country Visit http www renesas com to get in contact with your regional representatives and distributors RO1UT0175ED0400 Rev 4 00 AS User Manual ENES Contents Chapter 1 Introduction ssovarnionaiacr aora ica 6 11 PARR VIACOM ti e 6 1 2 Main features of Data FLASH Converter c cecceeeeeeeeeeeeeee
11. certain use conditions Further Renesas Electronics products are not subject to radiation resistance design Please be sure to implement safety measures to guard them against the possibility of physical injury and injury or damage caused by fire in the event of the failure of a Renesas Electronics product such as safety design for hardware and software including but not limited to redundancy fire control and malfunction prevention appropriate treatment for aging degradation or any other appropriate measures Because the evaluation of microcomputer software alone is very difficult please evaluate the safety of the final products or system manufactured by you 11 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 12 This document may not be reproduced or duplicated in any form in whole or in part without prior written consent of Renesas Electronics 13 Please contact a Renesas Electronics sales office if you have any questions regarding the information contained in this document or
12. memory is accessed for reading and writing via the FLASH Control Block macro FCB of the corresponding V850E1 ES device By writing or reading via the FCB the start address of the Data FLASH memory is always 0x0400000 regardless of the used V850E1 ES device This address differs to the physical mapping of Data FLASH used within normal mode or expected during debugging where the Data FLASH memory is accessed via the instruction fetch or data bus of the V850E1 ES device V850 EEL By generating a Data FLASH file one output file will be generated which can be Type 05 used for FLASH programming and for debugging purpose For V850E2 type based devices using V850 EEL Type 05 the Data FLASH area is fixed to address 0x2000000 Please refer also to Figure 39 Additionally to this two header files for the EEL will be generated The name of the header files is fixed to EEL Descriptor h and FDL_Descriptor h EEL Descriptor h Header file for the EEPROM Emulation Library for Renesas V850 devices FDL_Descriptor h Header file for the Data Flash Access Library for Renesas V850 devices V850 EEL By generating a Data FLASH file one output file will be generated which can be Type TO6 used for FLASH programming and for debugging purpose For V850E2 type based devices using V850 EEL Type T06 the Data FLASH area is fixed to address 0xFE000000 Please refer also to Figure 41 Additionally to this two header files for the EEL will be gen
13. needed for the file generation FAL_CONFIG_DATAFLASH_SIZE Number of Data FLASH blocks or accessible by the FAL Typical number of FAL CONFIG POOL SIZE available Data FLASH blocks Data FLASH block size in bytes note FAL_CONFIG_BLOCK_SIZE different values for 78KOR and RL78 EEL 1st block of the EEL pool It is fixed to 0 This tag can be neglected EEL_CONFIG_BLOCK_CNT Number of blocks for the EEL pool Threshold for minimum number of prepared blocks EEL_CONFIG_BLOCK_START EEL_CONFIG_BLOCK_CNT_REFRESH_THRESHOLD Record Defining the start of a ID L record ID Identifier for the data record 8bit Format is fixed to two digits in hex IDName Defining the name off the record Length Length definition of the data record In the range of 1 FFh Data Any hexadecimal or decimal value The line length is not fixed The number of data in a record should not large as length information Comments have to be added as specified in XML definition starting with lt and ending with gt The values defining the ID length or data information must have the following C like notation o Leading 0x denotes a hex value o Leading zeros within a hex value are interpreted by the Data FLASH Converter and do also determine the width of a Data value Example 0x00 gt data width 1 Byte 0x0012 gt data width 2 Byte 0x00000023 data width 4 Byte o All other notation i
14. pow n Total size is lt size gt E020 Data FLASH EEPROM file Section size is bigger than Data FLASH area size E021 Data FLASH EEPROM file Missing opening bracket E022 Data FLASH EEPROM file Missing closing bracket E023 Data FLASH EEPROM file Wrong codeword or wrong data format found in file E024 Data FLASH EEPROM file Missing carriage return and line feed E025 Data FLASH EEPROM file Missing codeword or missing bracket E026 Data FLASH EEPROM file Missing element within lt AdministrativeSection gt tag of XML file E027 Data FLASH EEPROM file Missing element within lt Record gt tag of XML file E028 Data FLASH EEPROM file Missing element within lt DataFlash gt tag of XML file E029 Data FLASH EEPROM file Wrong tag lt tag gt found within XML file E030 Data FLASH EEPROM file Error detected for tag lt tag gt within XML file E031 Data FLASH EEPROM file Data size mismatch error Data size is larger than section size Data size lt size gt Section size lt size gt E032 Data FLASH EEPROM file Offset SectionSize 2 lt size gt exceeds Data FLASH area end address E033 Data FLASH program lt start address gt lt end address gt not in range of Data FLASH area E034 Code FLASH program lt start address gt lt end address gt overlaps Data FLASH area R01UT017
15. 0000 Additionally to this two header files for the EEL will be generated The name of the header files is fixed to EEL Descriptor h and FDL Descriptor h Header file for the EEPROM Emulation Library for Renesas V850 devices EEL Descriptor h FDL_Descriptor h Header file for the Data Flash Access Library for Renesas V850 devices RO1UT0175ED0400 Rev 4 00 AS 56 User Manual RENES Data FLASH Converter Command line interface Example for 78KOR EEL Type T03 78KOR FX3 devices DataFlashConverter prm 78F1845D pr5 dfbase 0x000E9800 dfsize 16kb type hex xml EEPROM xml o dataflashmem hex 0x000F4FFF FLASH programming 0x000F1000 dataflashmem hex debugging 0x000EDTFF 0x000E9800 dataflashmem dbg hex Figure 40 Output generation for Data FLASH memory image 78KOR EEL By generating a Data FLASH file two separate output files were generated one for FLASH programming and the other one for debugging purpose The file for debugging purpose includes the marking dbg within the file name specified by the o option and is mapped to the Data FLASH memory area specified by the user The file for FLASH programming purpose has no additional marking within its name and is mapped to address OxF1000 Additionally to Data FLASH two source files and two header files for the EEL and FDL will be generated The name of the source files is fixed to EEL Descriptor c and FDL Descriptor c The nam
16. 07FFF FLASH programming a A 0x00400000 Ca dataflashmem hex debugging Ox001FFFFF 0x001F8000 dataflashmem dbg hex Figure 38 Dual output generation for Data FLASH memory image V850E1 ES Background The Renesas FLASH programmer uses the serial programming mode for programming the Data FLASH memory of a V850E1 ES device Within this mode the Data FLASH memory is accessed for reading and writing via the FLASH Control hardware FCB of the corresponding V850E1 ES device By writing or reading via the FCB the start address of the Data FLASH memory is always 0x0400000 regardless of the used V850E1 ES device This address differs to the physical mapping of Data FLASH used within normal mode or expected during debugging where the Data FLASH memory is accessed via the standard instruction fetch or data bus of the V850E1 ES device RO1UT0175ED0400 Rev 4 00 AS 55 User Manual RENES Data FLASH Converter Command line interface Example for V850 EEL Type T05 V850E2 Xx4 devices DataFlashConverter prm 70F3537 pr5 type hex xml EEPROM xml o dataflashmem hex FLASH programming 0x02007FFF 0x02000000 dataflashmem hex Figure 39 Output generation for Data FLASH memory image V850 EEL Type T05 By generating a Data FLASH file one output file will be generated which can be used for FLASH programming and for debugging purpose For V850E2 type based devices the Data FLASH area is fixed to address 0x200
17. 1 ES or 0xF1000 78KOR regardless of the used device This address differs to the physical mapping of Data FLASH within normal mode where the Data FLASH memory is accessed via the instruction fetch or data bus of the device A merged Data FLASH Code FLASH file can not be used for debugging purpose RO1UT0175ED0400 Rev 4 00 RENESAS 51 User Manual Data FLASH Converter Command line interface 6 2 2 Generation of Data FLASH file Generates a output file including Data FLASH information only In case EEPROM emulation data and program code for Data FLASH are specified together a single output file is generate representing the complete Data FLASH memory image Within this case the file format of the generated output file depends on the format of the loaded Data FLASH program file and must fit to specified file type By exclusively converting EEPROM emulation data the format of the output file can be chosen between Intel hex and Motorola S record by using the file type option 1 Generation of output file including Data FLASH program and EEPROM emulation data dfcode lt file gt xml lt file gt 2 Generation of output file including Data FLASH program data dfcode lt file gt 3 Generation of output file including EEPROM emulation data xml lt file gt RO1UT0175ED0400 Rev 4 00 AS 52 User Manual ENES Data FLASH Converter V850 EEElib V850 EEL Type 05 V850 EEL Type T06 78KOR EE
18. 5ED0400 Rev 4 00 RENESAS 62 User Manual Data FLASH Converter Error Messages Data FLASH EEPROM emulation area lt start address gt lt end address gt E035 overlaps Data FLASH program lt start address gt lt end address gt Data FLASH EEPROM file could not be loaded Data FLASH Program lt start address gt lt end address gt overlaps Data FLASH E036 EEPROM emulation area lt start address gt lt end address gt Data FLASH Program file could not be loaded Overlap of Data FLASH Program lt start address gt lt end address gt and Data FLASH EEPROM emulation area lt start address gt lt end address gt Data FLASH program file and Code FLASH program file must have the same file type HEX or SREC E037 E038 E039 Data FLASH base address exceeds maximum size Please specify a base address less then 0xF0000000 E040 Wrong Data FLASH base address specified Please insert Data FLASH base address as hexadecimal value for instance Base Address 0x001F8000 E041 Data FLASH area does not start at 2KByte aligned address E042 Data FLASH Offset does not fit to 2KByte boundary E043 Wrong Data FLASH size specified Supported sizes are 32KB and 64KB E044 Data FLASH program file does not start at 4Byte aligned address E045 Could not open template file template_eel_descriptor txt Create EEL Descriptor h according internal template file
19. 850E2 PX4 o V850 EEL T06 V850E2 devices in RCO3F FLASH Technology In combination with the V850 EEPROM emulation library EEL Type T06 Example V850E2 FX4 L V850E2 PX4 L o 78KOR EEL T03 78KOR devices in MF2 FLASH Technology in combination with the 78KOR EEPROM emulation library EEL Type T03 Example 78KOR FX3 o RL78 EEL TO1 RL78 devices in MF3 FLASH Technology in combination with the RL78 EEPROM emulation library EEL Type TO1 Example RL78 G1x RL78 D1x o RL78 Tiny EEL T02 RL78 devices in MF3 FLASH Technology in combination with the RL78 Tiny EEPROM emulation library Tiny EEL Type T02 Example RL78 G1x RL78 D1x o RH850 EEL T01 RH850 devices in RV40 FLASH Technology in combination with the RH850 EEPROM emulation library EEL Type T01 Example RH850 F 1x e Merges EEPROM emulation data and program data user data into one Data FLASH memory image e Generates a Data FLASH memory image including ID tag information if applicable from a program file mapped to the Data FLASH area Supported input file formats are Intel hex and Motorola S record For Intel hex the extended linear address record and extended segment address record formats are supported With regard to the Motorola S record type the S2 and S3 record formats are supported for program code mapped to the Data FLASH memory e Merges EEPROM emulation data and program data into one Data FLASH memory image RO1UT0175ED0400 Rev 4 00 AS 7 Us
20. 8K0R EEL Type T03 and RL78 EEL Type T01 The XML input format and the corresponding XML tags for 78KOR devices in MF2 FLASH Technology in combination with the 78KOR EEPROM emulation library 78KOR EEL Type T03 RL78 devices in MF3 FLASH Technology in combination with the RL78K EEPROM emulation library RL78 EEL Type T01 is shown below lt xml version 1 0 gt lt DataFlash gt lt AdministrativeSection gt lt FAL_CONFIG_DATAFLASH_SIZE gt 8 lt FAL_CONFIG_DATAFLASH_SIZE gt lt FAL_CONFIG_BLOCK_SIZE gt 0x800 lt FAL_CONFIG_BLOCK_SIZE gt lt EEL_CONFIG_BLOCK_CNT gt 4 lt EEL_CONFIG_BLOCK_CNT gt EEL CONFIG BLOCK CNT REFRESH THRESHOLD 2 EEL CONFIG BLOCK CNT REFRESH THRESHOLD AdministrativeSection Record lt ID gt 0x80 lt ID gt lt IDName gt Name1 lt IDName gt lt Length gt 2 lt Length gt lt Data gt 0x20 0x30 lt Data gt lt Record gt lt Record gt lt ID gt 0x10 lt ID gt lt IDName gt Name2 lt IDName gt lt Length gt 5 lt Length gt lt Data gt 0x20 0x30 0x31 0x32 0x33 lt Data gt lt Record gt lt DataFlash gt Figure 3 EEPROM emulation data XML file format for 78KOR EEL Type T03 and RL78 EEL Type TO1 RO1UT0175ED0400 Rev 4 00 AS 14 User Manual ENES Data FLASH Converter Input files formats The predefined XML tags are DataFlash Defining the start of the definition file This section is describing the physical AdminstrativeSection parameters that are
21. E output 70F3638 pr5 My Recent Documents IDD My Ne File name 70F3538 y Places Files of type FPS parameter file 7 pr5 Cancel Figure 21 Open Device Parameter File RO1UT0175ED0400 Rev 4 00 AS 33 User Manual RENES Data FLASH Converter V850 EEElib previous type V850 EEL Type 05 V850 EEL Type T06 78KOR EEL Type T03 RL78 EEL Type T01 RL78 Tiny EEL Type T02 Data FLASH Converter GUI The start address of the Data FLASH area of these V850 devices based on MF2 or UX4 FLASH Technology e g V850E Xx3 V850ES Xx3 is not fixed It can be changed device dependent to different chip select areas Within the Setup Data FLASH dialog the start address of the Data FLASH must be specified The entered start address should be equal to the physical start address of the Data FLASH area of the corresponding V850 device The size of the Data FLASH can be specified by the pull down menu Supported sizes are 32 Kbyte and 64 Kbyte The start address end address and size of the Data FLASH area of these V850 devices based on UX6 FLASH Technology V850E2 Xx4 is defined by the device parameter file According to this the Data FLASH area parameters can not be changed within the Set Data FLASH area menu The start address end address and size of the Data FLASH area of these V850 devices based on RCO3F FLASH Technology V850E2 Xx4 L is defined by the device parameter file Accordi
22. E gt 16 lt FAL_CONFIG_DATAFLASH_SIZE gt lt FAL_CONFIG_BLOCK_SIZE gt 0x800 lt FAL_CONFIG_BLOCK_SIZE gt lt EEL_CONFIG_BLOCK_START gt 2 lt EEL_CONFIG_BLOCK_START gt lt EEL_CONFIG_BLOCK_CNT gt 6 lt EEL_CONFIG_BLOCK_CNT gt lt EEL CONFIG DF BASE ADDRESS gt 0x2000000 lt EEL CONFIG DF BASE ADDRESS gt lt EEL CONFIG BLOCK CNT REFRESH THRESHOLD gt 0x02 lt EEL CONFIG BLOCK CNT REFRESH THRESHOLD gt lt EEL CONFIG ERASE SUSPEND THRESHOLD gt 10 lt EEL CONFIG ERASE SUSPEND THRESHOLD gt lt AdministrativeSection gt lt Record gt lt ID gt 0x80 lt ID gt lt IDName gt Name1 lt IDName gt lt Length gt 2 lt Length gt lt Data gt 0x20 0x30 lt Data gt lt Record gt lt Record gt lt ID gt 0x10 lt ID gt lt IDName gt Name2 lt IDName gt lt Length gt 5 lt Length gt lt Data gt 0x20 0x30 0x31 0x32 0x33 lt Data gt lt Record gt lt DataFlash gt Figure 2 EEPROM emulation data XML file format for V580 EEL Type 05 RO1UT0175ED0400 Rev 4 00 AS 12 User Manual ENES Data FLASH Converter The predefined XML tags are DataFlash AdminstrativeSection Input files formats Defining the start of the definition file This section is describing the physical parameters that are needed for the file generation FAL_CONFIG_DATAFLASH_SIZE Number of Data FLASH blocks accessible by the FAL Typical number of available Data FLASH blocks FAL_CONFIG_BLOCK_SIZE Data FLASH block size in bytes
23. E046 Could not open template file template fdl descriptor txt Create FDL_Descriptor h according internal template file E047 Could not open template file template_eel_descriptor_h txt Create EEL Descriptor h according internal template file E048 Could not open template file template fdl descriptor h txt Create FDL Descriptor h according internal template file E049 Could not open template file template eel descriptor c txt Create EEL Descriptor c according internal template file E050 Could not open template file template_fdl_descriptor_c txt Create FDL_Descriptor c according internal template file E051 Could not open the parameter file or the specified parameter file is wrong E052 Illegal ID found in XML file E053 Data FLASH EEPROM file Mismatch block size in XML file E054 Data FLASH EEPROM file Wrong lt EEL_CONFIG_BLOCK_START gt tag in XML file E055 Data FLASH EEPROM file Wrong lt EEL_CONFIG_BLOCK_CNT gt tag in XML file E056 Data FLASH EEPROM file Wrong lt EEL_CONFIG_DF_BASE_ADDRESS gt tag in XML file E057 Data FLASH EEPROM file Data size overflow in XML file E058 Data FLASH EEPROM file Data length should not be larger than valid block space E059 Data FLASH EEPROM file XML setting will cause overflow data flash size defined in device parameter file E060 Data FLASH EEPROM file Wrong lt EEL_CONFIG_BLOCK_CNT_REFRESH_THRESHOLD gt tag i
24. EEL CONFIG BLOCK START 1st block of the EEL pool EEL CONFIG BLOCK CNT Number of blocks for the EEL pool EEL CONFIG DF BASE ADDRESS Data FLASH base address EEL CONFIG BLOCK CNT REFRESH THRESHOLD Threshold for minimum number of prepared blocks EEL CONFIG ERASE SUSPEND THRESHOLD Threshold for erase suspend counter Exceeding this results in warning RO1UT0175ED0400 Rev 4 00 User Manual Record Defining the start of a ID L record ID Identifier for the data record 16bit Format is fixed to four digits in hex IDName Defining the name off the record Length Length definition of the data record Data Any hexadecimal or decimal value The line length is not fixed Comments have to be added as specified in XML definition starting with lt and ending with gt The values defining the ID length or data information must have the following C like notation o Leading 0x denotes a hex value o Leading zeros within a hex value are interpreted by the Data FLASH Converter and do also determine the width of a Data value Example 0x00 0x0012 0x00000023 gt data width 1 Byte gt data width 2 Byte gt data width 4 Byte o All other notation is interpreted as decimal value Values have to be separated by either space or comma RENESAS 13 Data FLASH Converter Input files formats 2 3 3 EEPROM XML file format for 7
25. ESAS 50 User Manual Data FLASH Converter 6 2 1 1 2 3 Note for V850 EEElib prev Type and 78KOR EEL Type T03 Note Command line interface Generation of merged Data FLASH Code FLASH file Generates a merged output file including Data FLASH and Code FLASH information The file format of the generated file depends on the format of the loaded program file for the Data FLASH respectively Code FLASH and must fit to the specified file type Generation of output file including Code FLASH Data FLASH program and EEPROM emulation data cfcode lt file gt dfcode file xml lt file gt Generation of output file including Code FLASH program and EEPROM emulation data cfcode lt file gt xml lt file gt Generation of output file including Code FLASH program and Data FLASH program data cfcode lt file gt dfcode lt file gt This merged output file can be read by the standard Renesas FLASH programmer PG FP5 and can be used for FLASH programming of a V850 based device containing Code FLASH and Data FLASH The Renesas FLASH programmer uses the serial programming mode for programming the Data FLASH memory of V850E1 ES and 78KOR devices Within this mode the Data FLASH memory is accessed for reading and writing via the FLASH Control Block macro FCB of the corresponding device By writing or reading via the FCB the start address of the Data FLASH memory is always 0x0400000 V850E
26. L Type TO3 Command line interface By generating a Data FLASH file two separate output files are generated one for FLASH programming and the other one for debugging purpose The file for debugging purpose includes the marking dbg within the file name and is mapped to the Data FLASH memory area specified by the user The file for FLASH programming purpose has no additional marking within its name and is mapped to address 0x0400000 Please refer also to Figure 38 By generating a Data FLASH file one output file will be generated which can be used for FLASH programming and for debugging purpose For V850E2 type based devices using V850 EEL Type 05 the Data FLASH area is fixed to address 0x2000000 Please refer also to Figure 39 Additionally to this two header files for the EEL will be generated The name of the header files is fixed to EEL Descriptor h and FDL Descriptor h EEL Descriptor h Header file for the EEPROM Emulation Library for Renesas V850 devices FDL Descriptor h Header file for the Data Flash Access Library for Renesas V850 devices By generating a Data FLASH file one output file will be generated which can be used for FLASH programming and for debugging purpose For V850E2 type based devices using V850 EEL Type T06 the Data FLASH area is fixed to address OxFE000000 Please refer also to Figure 41 Additionally to this two header files for the EEL will be generated The name of the header files i
27. Ltd 7F No 363 Fu Shing North Road Taipei Taiwan Tel 886 2 8175 9600 Fax 886 2 8175 9670 Renesas Electronics Singapore Pte Ltd 1 harbourFront Avenue 06 10 keppel Bay Tower Singapore 098632 Tel 65 6213 0200 Fax 65 6278 8001 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 2010 Renesas Electronics Corporation All rights reserved Colophon 1 0 RO1UT0175ED0400 Rev 4 00 AS User Manual ENES Data FLASH Converter RENESAS Renesas Electronics Corporation R01UT0175ED0400
28. REFRESH THRESHOLD gt 0x02 EEL CONFIG BLOCK CNT RE FRESH THRESHOLD EEL CONFIG ERASE SUSPEND THRESHOLD gt 10 EEL CONFIG ERASE SUSPEND THRESHOLD FDL CPU FREQUENCY MHZ gt 70 lt FDL CPU FREQUENCY MHZ lt AdministrativeSection gt lt Record gt lt ID gt 0x01 1 lt ID gt lt IDName gt Name 1 lt IDName gt lt Length gt 2 lt Length gt lt Data gt 0x20 0x30 lt Data gt lt Record gt lt Record gt lt ID gt 0x022 lt ID gt lt IDName gt Name2 lt IDName gt lt Length gt 5 lt Length gt lt Data gt 0x20 0x30 0x31 0x32 0x33 lt Data gt lt Record gt lt DataFlash gt Figure 6 EEPROM emulation data XML file format for RH850 EEL Type TO1 RO1UT0175ED0400 Rev 4 00 AS 20 User Manual ENES Data FLASH Converter The predefined XML tags are DataFlash Input files formats Defining the start of the definition file AdminstrativeSection This section is describing the physical parameters that are needed for the file generation FAL_CONFIG_DATAFLASH_SIZE or FAL CONFIG POOL SIZE Number of Data FLASH blocks accessible by the FAL Typical number of available Data FLASH blocks EEL CONFIG BLOCK SIZE Virtual Data FLASH block size in bytes Start virtual block number for the EEL EEL CONFIG BLOCK START pool EEL CONFIG BLOCK CNT Number of virtual blocks for the EEL pool Data FLASH base address which defined in pr5 parameter file Threshold for minimum numbe
29. RL78 EEL Type T01 RL78 Tiny EEL Type T02 Command line interface By generating a Data FLASH file one output file will be generated which can be used for FLASH programming and for debugging purpose For RL78 type based devices using RL78 EEL Type T01 or RL78 Tiny EEL Type T02 the Data FLASH area is fixed to address 0xF1000 Please refer also to Figure 42 Additionally to this two header files for the EEL will be generated The name of the header files is fixed to EEL Descriptor h and FDL Descriptor h Additionally to Data FLASH two source files and two header files for the EEL and FDL will be generated The name of the source files is fixed to EEL Descriptor c and FDL Descriptor c The name of the header files is fixed to EEL Descriptor h and FDL Descriptor h EEL Descriptor c Source file for the EEPROM Emulation Library for Renesas RL78 devices FDL Descriptor c Source file for the Data Flash Access Library for Renesas RL78 devices EEL Descriptor h Header file for the EEPROM Emulation Library for Renesas RL78 devices FDL_Descriptor h Header file for the Data Flash Access Library for Renesas RL78 devices RO1UT0175ED0400 Rev 4 00 RENESAS 54 User Manual Data FLASH Converter Command line interface Example for V850 EEElib previous type V850E ES devices DataFlashConverter prm 70F3638 pr5 dfbase 0x01F8000 dfsize 32kb type hex xml EEPROM xml o dataflashmem hex 0x004
30. a oO Open Data FLASH EEPROM file Open Data FLASH program file Open Code FLASH program file Generate Data FLASH file Generate merged Code FLASH Data FLASH file Y or A ams M 00 on A wm Exit File menu Hex editor viewer The HEX Editor menu allows to edit display a program file in Intel HEX file format or MotorolaS Record format A HEX editor window opens and in a file open dialog the file to be edited can be specified Additional to this a generated Data FLASH file or a merged Code Data FLASH file can be displayed or edited by the HEX editor To use the HEX editor the Data FLASH area must be specified first The display of the Data FLASH contents and ID tag information is always based on the setting of the Data FLASH area User Manual Data FLASH Converter Data FLASH Converter GUI MI Editor C DataFLASHConverter output df_output dbg hex address 3 8123456789ABCDEF 9000999 FF ij ij 90000109 FF y 9000020 FF y 8600036 FF ij ij 9000048 FF ij ij 8606056 FF y FF i FF Look in 9 output 8 d output l d output dbg My Recent Documents Desktop My Network Filename df_output dbg Places Files of type HEX Files HEX HEX Files HEX SREC Files REC x 6666256 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF QUUUUUU uy Figure 17 Hex Editor open file dialog HEX Files HEX SREC Files REC or
31. a FLASH Converter 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 ID Tag within the HEX file 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 e numbers 0 to 9 and letters A to F All other data will be rejected RO1UT0175ED0400 Rev 4 00 AS 31 User Manual ENES Data FLASH Converter Data FLASH Converter GUI 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 address space that can be viewed in the HEX Editor window is up to 4 MB 64 KB Data FLASH space The following keys can be input using the keyboard Key Function 0 9 A F Data input gt Move cursor in right direction Move cursor in left direction t Move cursor in up direction J Move cursor in down direction Tab Tab Move cursor to next input field address 1 Table 4 Hex Editor navigation and input keys If any changes have been made to the file Save and Save As in the File menu in the HEX Editor main window becomes available for saving the modified data Save in E output rl e A 119 d output 89 df output dbg File name dt outou Save as type HEX Files HEX
32. cessfully installed DataFLASHConverter Click Finish to exit the wizard Cancel Figure 12 Installation completion window The program has been installed successfully and an entry has been made into the program menu to start the Data FLASH Converter software The installation process is complete now and the setup utility has installed a new program folder which holds the Data FLASH Converter GUI Software and a Data FLASH Converter uninstall icon which allows you to remove the Data FLASH Converter software from your personal computer ar DataFLASHConverter Eile Edit View Favorites Tools Help Q sack y gt yo Search E Folders HEL Address en C Documents and Settings Start Menu Programs Renesas Electronics Tools DataFLASHConverter y A DataFLASHConverter exe Uninstall DataFLASHConverter File and Folder Tasks y Shortcut Z Shortcut 3 KB 4 2 KB SE Other Places y User s Manual DataFLASHConverter ESO tere Figure 13 Program folder after installation RO1UT0175ED0400 Rev 4 00 AS 26 User Manual ENES Data FLASH Converter Data FLASH Converter GUI Chapter 5 Data FLASH Converter GUI The graphical user interface of the Data FLASH Converter allows an easy and intuitive configuration and generation of Data FLASH memory images When starting the Data FLASH Converter GUI a screen similar to the following one will appear Some commands and functions may be unavailable when the GUI is started for the first time
33. dentifier for the data record 16bit Format is fixed to four digits in hex Length definition of the data record 16bit Format is fixed to Length four digits in hex The minimum data length is equal to four bytes The length can be specified in 4 Byte n steps Data Any hexadecimal or decimal value The line length is not fixed User Manual Data FLASH Converter Input files formats Comments have to be added as specified in XML definition starting with lt and ending with gt The values defining the ID length or data information must have the following C like notation o Leading 0x denotes a hex value o Leading zeros within a hex value are interpreted by the Data FLASH Converter and do also determine the width of a Data value Example 0x00 gt data width 1 Byte 0x0012 gt data width 2 Byte 0x00000023 data width 4 Byte o All other notation is interpreted as decimal value Values have to be separated by either space or comma RO1UT0175ED0400 Rev 4 00 AS 11 User Manual RENES Data FLASH Converter Input files formats 2 3 2 EEPROM XML file format for V850 EEL Type T05 The XML input format and the corresponding XML tags for V850E2 devices in UX6 FLASH Technology in combination with the V850 EEPROM emulation library EEL Type TO5 is shown below lt xml version 1 0 gt lt DataFlash gt lt AdministrativeSection gt lt FAL_CONFIG_DATAFLASH_SIZ
34. e of the header files is fixed to EEL Descriptor h and FDL_Descriptor h EEL Descriptor c Source file for the EEPROM Emulation Library for Renesas 78KOR devices FDL_Descriptor c Source file for the Data Flash Access Library for Renesas 78KOR devices EEL Descriptor h Header file for the EEPROM Emulation Library for Renesas 78KOR devices FDL_Descriptor h Header file for the Data Flash Access Library for Renesas 78KOR devices RO1UT0175ED0400 Rev 4 00 AS 57 User Manual ENES Data FLASH Converter Command line interface Example for V850 EEL Type T06 e g V850E2 Xx4 L devices DataFlashConverter prm 70F3580 pr5 type hex xml EEPROM xml o dataflashmem hex FLASH programming OxFE000000 OxFEOO7FFF dataflashmem hex Figure 41 Output generation for Data FLASH memory image V850E2 By generating a Data FLASH file one output file will be generated which can be used for FLASH programming and for debugging purpose For RCO3F type based devices the Data FLASH area is fixed to address 0xFE000000 Additionally to this two header files for the EEL will be generated The name of the header files is fixed to EEL Descriptor h and FDL Descriptor h EEL Descriptor h Header file for the EEPROM Emulation Library for Renesas V850 devices FDL_Descriptor h Header file for the Data Flash Access Library for Renesas V850 devices RO1UT0175ED0400 Rev 4 00 AS 58 User Manual ENES Data FLASH Con
35. e2 lt IDName gt lt Length gt 5 lt Length gt lt Data gt 0x20 0x30 0x31 0x32 0x33 lt Data gt lt Record gt lt DataFlash gt Figure 5 EEPROM emulation data XML file format for RL78 Tiny EEL Type T02 RO1UT0175ED0400 Rev 4 00 AS 18 User Manual ENES Data FLASH Converter The predefined XML tags are DataFlash Input files formats Defining the start of the definition file AdminstrativeSection This section is describing the physical parameters that are needed for the file generation FAL_CONFIG_DATAFLASH_SIZE or FAL CONFIG POOL SIZE Number of Data FLASH blocks accessible by the FAL Typical number of available Data FLASH blocks FAL CONFIG BLOCK SIZE Data FLASH block size in bytes EEL CONFIG BLOCK CNT Number of blocks for the EEL pool For RL78 device 1 define for EEL type TYPE TINY TO2 0 for Eel type TO1 And the default type is TO1 Define the compiler output format IAR defines that the IAR compiler will be COMPILER used REN defines that Renesas compiler will be used Default compiler is JAR Record Defining the start of a ID L record ID Identifier for the data record 8bit Format is fixed to two digits in hex IDName Defining the name of the record Length Length definition of the data record In the range of 1 FFh Data Any hexadecimal or decimal value The line length is not fixed The number of data i
36. eeeeeeeeeeeeeeeees 7 1 3 Trademarks A 8 Chapter 2 Input files formats annnnnnnnnnnnnnnnnnnnnnnnnnnevnnnnnnnnevnnnnnnnnnneneen 9 2 1 Input file combinations ma 9 2 2 Program Code for Data FLASH or Code FLASH 2 3 EEPROM emulation atas ini RLE o 9 2 3 1 EEPROM XML file format for V850 EEElib previous Type rrnrnnavvnnnnnnvvnnnnnnvnnnnnnnvnenn 10 2 3 2 EEPROM XML file format for V850 EEL Type TOB ccocccicicccinnmcmmmememerees 12 2 3 3 EEPROM XML file format for 78K0R EEL Type T03 and RL78 EEL Type T01 14 2 3 4 EEPROM XML file format for V850 EEL Type TO6 scsesssesessesesseeseeeeeseeaeeeees 16 2 3 5 EEPROM XML file format for RL78 Tiny EEL Type T02 ssccsssssecessesessesteeeeeeees 18 2 3 6 EEPROM XML file format for RH850 EEL Type TO1 ennrnrrnvrnorrnernerernernerrenersereenenr 20 Chapter 3 Output file formats muii ci 22 Chapter4 Software Installation rrnnnnnnnnnnrnnnnnnnnnvnnnnnnnnnnnnnnnnnnnnernnn 23 Chapter5 Data FLASH Converter GUl s esee nnn 27 5 1 Toolbar 28 5 22 The Menu 29 S21 Ele eT Eo eee o en eds 29 33 Process WIN OW aa 47 Chapter6 Command line interface e ee eneno 48 6 1 Command line options nico O 6 2 Combination of command line aptlonsu MUu UU 6 2 1 Generation of merged Data FLASH Code FLASH LE 51 6 2 2 Generation
37. er Manual ENES Data FLASH Converter Introduction e Merges Code FLASH programs and Data FLASH memory images into one output file e Generates two output files for FLASH programming and debugging purpose e Supports two output file formats Intel hex and Motorola S record e A graphical user interface is provided as well as a command line interface for batch mode support or automatic output file generation e For V850 EEL library types T05 and T06 RH850 EEL library type T01 generates two header files One is for the EEPROM Emulation Library of Renesas V850 device another one is for the Data FLASH Access Library of Renesas V850 device e For 78KOR RL78 and RL78 Tiny EEL library types generates two header files and two source files They are source header files for the EEPROM Emulation Library of Renesas 78KOR RL78 device and source header files for the Data FLASH Access Library of Renesas 78KOR RL78 device 1 3 Trademarks Microsoft and Windows are registered trademarks of Microsoft Corporation All other product names are trademarks or registered trademarks of their respective owners RO1UT0175ED0400 Rev 4 00 TENESAS 8 User Manual Data FLASH Converter Input files formats Chapter 2 Input files formats 2 1 Input file combinations The Data FLASH Converter is able to handle the following combination of input files for the generation of a single Data FLASH memory image or the generation of a merged Code FLASH Data
38. erated The name of the header files is fixed to EEL Descriptor h and FDL_Descriptor h EEL Descriptor h Header file for the EEPROM Emulation Library for Renesas V850 devices FDL Descriptor h Header file for the Data Flash Access Library for Renesas V850 devices RO1UT0175ED0400 Rev 4 00 AS 45 User Manual ENES Data FLASH Converter 78KOR EEL Type T03 RL78 EEL Type T01 RL78 Tiny EEL Type T02 Data FLASH Converter GUI Similar with V850E1 ES based microcontrollers by generating a Data FLASH file two separate output files are generated one for FLASH programming and the other one for debugging purpose The file for debugging purpose includes the marking dbg within the file name and is mapped to the Data FLASH memory area specified by the user The file for FLASH programming purpose has no additional marking within its name and is mapped to address 0xF1000 Please refer also to Figure 40 Background The Renesas FLASH programmer uses the serial programming mode for programming the Data FLASH memory of a 78KOR device Within this mode the Data FLASH memory is accessed for reading and writing via the FLASH Control Block macro FCB of the corresponding 78KOR device By writing or reading via the FCB the start address of the Data FLASH memory is always 0xF1000 regardless of the used 78KOR device This address differs to the physical mapping of Data FLASH used within normal mode or expected during debuggi
39. esas Electronics or others 3 You should not alter modify copy or otherwise misappropriate any Renesas Electronics product whether in whole or in part 4 Descriptions of circuits software and other related information in this document are provided only to illustrate the operation of semiconductor products and application examples You are fully responsible for the incorporation of these circuits software and information in the design of your equipment Renesas Electronics assumes no responsibility for any losses incurred by you or third parties arising from the use of these circuits software or information 5 When exporting the products or technology described in this document you should comply with the applicable export control laws and regulations and follow the procedures required by such laws and regulations You should not use Renesas Electronics products or the technology described in this document for any purpose relating to military applications or use by the military including but not limited to the development of weapons of mass destruction 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 6 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
40. et information about the address map of the program file the mapping is shown in the address map window of the Data FLASH converter Address Map Data FLASH OxOO1F8D7B DF Program 101 hex O0x001F8000 Figure 30 Address map window Data FLASH memory box 2 RO1UT0175ED0400 Rev 4 00 AS 40 User Manual ENES Data FLASH Converter Data FLASH Converter GUI 6 Open Code FLASH program file The Open Code FLASH program file menu allows selecting and loading a program file that is linked to be executed from the Code FLASH memory After downloading the program file the corresponding memory area where the program is placed within the Code FLASH is shown in the address map window code output E CF Program 101 My Recent E CF Program 101 rec Documents 9 DF_Program_101 E DF_Program_101 rec D My Network File name CF Program 101 bd Places Files of type SRecord rec Intelhex hex files _ Cancel Figure 31 Open Code FLASH program file dialog The program code has to be available in an Intel hex or Motorola S record format For Intel hex the extended linear address record and extended segment address record formats are supported With regard to the Motorola S record type the S1 S2 and S3 record formats are supported for program files mapped to the Code FLASH After the program code is loaded the corresponding file and file format is displayed in the Config window of
41. ff r My Recent Documents My Computer i E File name dilash cflash merge output h aces Save astype Intelhex files hex Cancel Save merged Data FLASH Code FLASH file dialog This merged output file can be read by the standard Renesas FLASH programmer PG FP5 and can be used for FLASH programming of a Renesas device containing Code FLASH and Data FLASH The Renesas FLASH programmer uses the serial programming mode for programming the Data FLASH memory Within this mode the Data FLASH memory is accessed for reading and writing via the FLASH Control hardware unit FCB FCU of the corresponding device By writing or reading via the Flash Control hardware unit the start address of the Data FLASH memory is always 0x0400000 V850E1 ES or 0xF1000 78KOR regardless of the used device This address differs to the physical mapping of Data FLASH within normal mode where the Data FLASH memory is accessed via the instruction fetch or data bus of the device A merged Data FLASH Code FLASH file can not be used for debugging purpose User Manual Data FLASH Converter 8 re df Figure 35 R01UTO175ED0400 Rev 4 00 User Manual Data FLASH Converter GUI Generate Data FLASH file The Generate Data FLASH file menu allows to generate a output file including Data FLASH information only In case EEPROM emulation data and program code for Data FLASH are specified together a single output
42. file is generate representing the complete Data FLASH memory image Within this case the file format of the generated output file depends on the format of the loaded Data FLASH program file By exclusively converting EEPROM emulation data the format of the output file can be chosen between Intel hex and Motorola S record By executing the Generate Data FLASH file command a file save dialog opens and offers the possible to specify the name and location of the output file to be generated Save in E output e A 5 dflash_output i 4 9 d lash output dbg My Recent Documents E Desktop My Documents My Computer dflash output Intelhex files hex Save Data FLASH file dialog My Network Places File name Save as type RENESAS 44 Data FLASH Converter Data FLASH Converter GUI V850 EEElib By generating a Data FLASH file two separate output files are generated one for FLASH programming and the other one for debugging purpose The file for debugging purpose includes the marking dbg within the file name and is mapped to the Data FLASH memory area specified by the user The file for FLASH programming purpose has no additional marking within its name and is mapped to address 0x0400000 Please refer also to Figure 38 Background The Renesas FLASH programmer uses the serial programming mode for programming the Data FLASH memory of a V850E1 ES device Within this mode the Data FLASH
43. format for V850 EEL Type TO6 RO1UT0175ED0400 Rev 4 00 AS 16 User Manual ENES Data FLASH Converter The predefined XML tags are DataFlash Input files formats Defining the start of the definition file AdminstrativeSection This section is describing the physical parameters that are needed for the file generation FAL_CONFIG_DATAFLASH_SIZE or FAL CONFIG POOL SIZE Number of Data FLASH blocks accessible by the FAL Typical number of available Data FLASH blocks FAL CONFIG BLOCK SIZE Data FLASH block size in bytes EEL CONFIG BLOCK START EEL CONFIG BLOCK CNT 1st block of the EEL pool Number of blocks for the EEL pool EEL CONFIG DF BASE ADDRESS Data FLASH base address Fixed to OxFE000000 EEL_CONFIG_BLOCK_CNT_REFRESH_THRESHOLD Threshold for minimum number of prepared blocks EEL_CONFIG_ERASE_SUSPEND_THRESHOLD Threshold for erase suspend counter Exceeding this results in warning Record Defining the start of a ID L record ID Identifier for the data record 16bit Format is fixed to four digits in hex IDName Defining the name off the record Length Length definition of the data record The length should not larger then valid block space Data Any hexadecimal or decimal value The line length is not fixed The number of data in a record should not large as length information Comments have to be added as specified in XML definition starting with
44. free Renesas Electronics assumes no liability whatsoever for any damages incurred by you resulting from errors in or omissions from the information included herein 7 Renesas Electronics products are classified according to the following three quality grades Standard High Quality and Specific The recommended applications for each Renesas Electronics product depends on the product s quality grade as indicated below You must check the quality grade of each Renesas Electronics product before using it in a particular application You may not use any Renesas Electronics product for any application categorized as Specific without the prior written consent of Renesas Electronics Further you may not use any Renesas Electronics product for any application for which it is not intended without the prior written consent of Renesas Electronics Renesas Electronics shall not be in any way liable for any damages or losses incurred by you or third parties arising from the use of any Renesas Electronics product for an application categorized as Specific or for which the product is not intended where you have failed to obtain the prior written consent of Renesas Electronics RO1UT0175ED0400 Rev 4 00 AS User Manual RENES 8 The quality grade of each Renesas Electronics product is Standard unless otherwise expressly specified in a Renesas Electronics data sheets or data books etc Standard Computers office equipmen
45. he conversion result In case a conversion was successful the Data FLASH converter returns the value zero Otherwise in case of errors during conversion the Data FLASH converter returns the corresponding error number A detailed list of all error numbers can be found in chapter 7 of this document RO1UT0175ED0400 Rev 4 00 AS 60 User Manual ENES Data FLASH Converter Error Messages Chapter 7 Error Messages Error messages will be output in the error dialog boxes when using the graphical user interface of Data FLASH Converter A E033 Data FLASH program 0x00000000 0x0002CEE3 not in range of Data FLASH area Figure 43 Error message dialog box In case by using the command line interface the error message is displayed in the command shell window Additional the error message is written to the corresponding log file if specified option log lt file gt DataFLASHConverter DataFLASHConverter V3 1 Cc Copyright 2618 Renesas Electronics Europe GmbH dataf lashconverter prm 7 F3638 pr5 dfsize 32kb dfbase Bx1f8006 dfcode CF Pr ogram 1 1 hex xml EEPROM_1 1 xml type hex o df out hex E033 Data FLASH program CBxOBBOBOOOOJ BXBBB2CEE3 gt not in range of Data FLASH Conversion failed lt Press Enter to close gt Figure 44 Error message command shell window RO1UT0175ED0400 Rev 4 00 AS 61 User Manual RENES Data FLASH Converter Error Messages Number Message Description
46. ions are supported by the Data FLASH converter The options depend on the type of FLASH included in the microcontroller For each different operation itis a must to specify the device parameter file command prm lt file gt Data FLASH mapping commands dfbase address and dfsize size the file type command type lt type gt and the output file command o file For a clear arrangement they will not be referenced in the combinations below The order on how the options have to be specified within the command line is not prescribed prm file dfbase address dfsize size type type o lt file gt For each different operation itis a must to specify the device parameter file command prm lt file gt the file type command type lt type gt and the output file command o file For the devices using an EEPROM emulation library as listed on the left side the start of the Data FLASH area is fixed therefore address and size must not to be specified For a clear arrangement they will not be referenced in the combinations below The order on how the options have to be specified within the command line is not prescribed prm file type type o lt file gt The command line options for the output file generation described in the following chapter are common for the V850 78KOR and RL78 series microcontrollers RO1UT0175ED0400 Rev 4 00 TEN
47. mputer My Network File name EEPROM Places Files of type Raw data raw ML xml Cancel Figure 25 Open Data FLASH EEPROM file dialog The most recently used directory a file has been loaded from will be offered in this file open menu EEPROM emulation data can be loaded in the XML file format After EEPROM emulation data is loaded the corresponding file and file format is displayed in the Config window of the Data FLASH converter Data FLASH EEPROM File EEPROM 101 xmi XML File Figure 26 Config window Data FLASH EEPROM file box RO1UT0175ED0400 Rev 4 00 AS 37 User Manual ENES Data FLASH Converter Data FLASH Converter GUI Additional to the file menu and toolbox button the EEPROM emulation data can be loaded by pressing the lt Read gt button within the Config window of the Data FLASH Converter The lt Clear gt button offers the possibility to delete a current selected file To get information about the needed Data FLASH memory for the EEPROM emulation data the mapping is shown in the address map window of the Data FLASH converter Address Map Data FLASH OxOO1FAFFF EEPROM_101 xml 0x001F9000 Figure 27 Address map window Data FLASH memory box 1 RO1UT0175ED0400 Rev 4 00 AS 38 User Manual RENES Data FLASH Converter 5 Open Data FLASH program file The Open Data FLASH program file menu allows selecting and loading a code program file that is linked to be exec
48. n XML file E061 Data FLASH EEPROM file has invalid file format type Only XML supported E062 Data FLASH EEPROM file Data length should not be larger than Oxff E063 lt FAL_CONFIG_POOL_SIZE gt tag setting is larger than the data flash size defined in device parameter file in XML file E064 Data FLASH EEPROM file The number of data set is not equal to largest record ID ID E065 Data FLASH EEPROM file The Compiler defined in XML is wrong Correct definition should be IAR or REN IAR used for IAR compiler and REN used for Renesas compiler E066 lt FAL_CONFIG_POOL_SIZE gt or lt FAL_CONFIG_DATAFLASH_SIZE gt setting is invalid in XML file RO1UT0175ED0400 Rev 4 00 AS 63 User Manual RENES Data FLASH Converter Error Messages E067 Wrong lt EEL_CONFIG_BLOCK_SIZE gt or lt FAL_CONFIG_BLOCK_SIZE gt tag in XML file E068 FDL pool is too small Wrong lt FAL_CONFIG_DATAFLASH_SIZE gt lt EEL_CONFIG_BLOCK_SIZE gt lt EEL_CONFIG_BLOCK_START gt lt EEL CONFIG BLOCK CNT gt or EEL CONFIG BLOCK SIZE defined in XML file Table 6 Error Messages RO1UT0175ED0400 Rev 4 00 AS 64 User Manual ENES Revision History Description Rev Date Page Summary 1 00 January 07 2011 First Edition Issued Update for V850 EEPROM emulation library EEL Type 2 00 April 18 2012 TO6 and RL78 EEPROM emulation library EEL Type TO1 3 00 October 09 2012 l U
49. n a record should not be larger than the value for Length Comments have to be added as specified in XML definition starting with lt and ending with gt The values defining the ID length or data information must have the following C like notation o Leading 0x denotes a hex value o Leading zeros within a hex value are interpreted by the Data FLASH Converter and do also determine the width of a Data value Example 0x00 gt data width 1 Byte 0x0012 gt data width 2 Byte 0x00000023 gt data width 4 Byte o All other notation is interpreted as decimal value Values have to be separated by either space or comma R01UTO175ED0400 Rev 4 00 AS 19 User Manual RENES Data FLASH Converter Input files formats 2 3 6 EEPROM XML file format for RH850 EEL Type T01 The XML input format and the corresponding XML tags for RH850 devices in RV40 FLASH Technology in combination with the RH850 EEPROM emulation library Type T01 is shown below lt xml version 1 0 gt lt DataFlash gt lt AdministrativeSection gt lt FAL_CONFIG_DATAFLASH_SIZE gt 512 lt FAL_CONFIG_DATAFLASH_SIZE gt lt EEL_CONFIG_BLOCK_SIZE gt 0x800 lt FAL_CONFIG_BLOCK_SIZE gt lt EEL_CONFIG_BLOCK_START gt 2 lt EEL_CONFIG_BLOCK_START gt EEL CONFIG BLOCK CNT gt 6 lt EEL CONFIG BLOCK CNT EEL CONFIG DF BASE ADDRESS gt 0xFF200000 lt EEL CONFIG DF BASE ADDRESS gt EEL CONFIG BLOCK CNT
50. ng where the Data FLASH memory is accessed via the instruction fetch or data bus of the 78KOR device Additionally to Data FLASH two source files and two header files for the EEL and FDL will be generated The name of the source files is fixed to EEL Descriptor c and FDL Descriptor c The name of the header files is fixed to EEL Descriptor h and FDL_Descriptor h EEL Descriptor c Source file for the EEPROM Emulation Library for Renesas 78KOR devices FDL Descriptor c Source file for the Data Flash Access Library for Renesas 78KOR devices EEL Descriptor h Header file for the EEPROM Emulation Library for Renesas 78KOR devices FDL_Descriptor h Header file for the Data Flash Access Library for Renesas 78KOR devices By generating a Data FLASH file one output file will be generated which can be used for FLASH programming and for debugging purpose For RL78 type based devices using RL78 EEL Type T01 or RL78 Tiny EEL Type T02 the Data FLASH area is fixed to address 0xF1000 Please refer also to Figure 42 Additionally to this two header files for the EEL will be generated The name of the header files is fixed to EEL Descriptor h and FDL Descriptor h Additionally to Data FLASH two source files and two header files for the EEL and FDL will be generated The name of the source files is fixed to EEL Descriptor c and FDL Descriptor c The name of the header files is fixed to EEL Descri
51. ng to this the Data FLASH area parameters can not be changed within the Set Data FLASH area menu The start address of the Data FLASH area of these 78KOR devices based on MF2 Technology e g 78KOR FX3 is fixed The size of the Data FLASH area of these devices is defined by the device parameter file According to this the Data FLASH area parameters can not be changed within the Set Data FLASH area menu The start address end address and size of the Data FLASH area of these RL78 devices based on MF3 FLASH Technology is defined by the device parameter file According to this the Data FLASH area parameters can not be changed within the Set Data FLASH area menu User Manual Data FLASH Converter Figure 22 Figure 23 Data FLASH Converter GUI Set Data FLASH area The Set Data FLASH area menu allows to setup the start address and the size of the Data FLASH area This menu is only available for devices using the EEElib previous type For all other devices the Data FLASH area is fixed to special address and can not be changed The actual values are displayed in the Data FLASH area box By selecting this menu item the following dialog window appears and offers the possibility to specify the Data FLASH mapping Setup Data FLASH Data FLASH area Start Address 0x001F8000 Size 32 KB a Set Data FLASH start address Within the Setup Data FLASH dialog the start address of the Data FLASH must
52. nual RENES Data FLASH Converter Software Installation In the next step of installation the License Agreement window appears Please read the Software Program License Agreement carefully To continue the installation accept the License agreement and click the Next button If you not accepted the license agreement the installation procedure exits ie DataFLASHConverter InstallShield Wizard License Agreement Please read the Following license agreement carefully Renesas Electronics Europe GmbH hereinafter Renesas Software Program License Agreement The program s delivered with this agreement Program are sold only on the condition that the purchaser agrees to the terms and conditions of this agreement PLEASE READ THIS AGREEMENT CAREFULLY If you do not agree return the packaged program immediately to Renesas Electronics Europe GmbH Arcadiastrasse 10 40472 D sseldorf Narman v O I do not accept the terms in the license agreement Installshiel Figure 8 License Agreement window The Destination Folder window appears You might exit the installation by clicking the Cancel button You can click the Change button to be able to change the installation destination path Press the Next button to proceed with the installation i DataFLASHConverter InstallShield Wizard Destination Folder Click Next to install to this Folder or click Change to install to a different Folder el Install DataFLASHConve
53. of Data FLASH file rrnnnnnnvnnnnnnnvennnnnnvnnnnnnvnnnnnnnnvnnnnnnnvnnnnnnnvnnnnnnnvennnenneenennn 52 63 Return God s cuisine DO Chapter 7 Error Messages sina usono cita 61 RO1UT0175ED0400 Rev 4 00 AS User Manual RENES Data FLASH Converter Introduction Chapter 1 Introduction The Data FLASH Converter is a windows based tool that generates a Data FLASH memory image from EEPROM emulation data and or from a program code file that is mapped to the Data FLASH area of a Renesas microcontroller Additionally the Data FLASH Converter is able to generate a merged output file containing EEPROM emulation data user data e g program code and constant data for Data FLASH and for Code FLASH This output file can be read by the standard Renesas FLASH programmer PG FP5 and can be used for FLASH programming of a Renesas device containing Code FLASH and Data FLASH Apart from the FLASH programmer support the Data FLASH Converter can generate a data flash memory image that can be read by the standard debugger tool chain This makes it possible to pre initialize the Data FLASH memory also during the debugging phase Depending on the device series the flash implementation differs for various flash technologies consequently also the features of the flash are different For example ID tag is supported only for some device series erase and write width differs etc Please check carefully which EEL is the right one for your device and
54. pdate for RL78 Tiny EEPROM emulation library EEL Type TO2 400 May 11 2015 ee EEPROM emulation library EEL RO1UT0175ED0400 Rev 4 00 TENESAS User Manual 65 TENESAS 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 585 100 Fax 44 1628 585 900 Renesas Electronics Europe GmbH Arcadiastrasse 10 40472 D sseldorf Germany Tel 49 211 65030 Fax 49 211 6503 1327 Renesas Electronics China Co Ltd 7th Floor Quantum Plaza No 27 ZhiChunLu Haidian District Beijing 100083 P R China Tel 86 10 8235 1155 Fax 86 10 8235 7679 Renesas Electronics Shanghai Co Ltd Unit 204 205 AZIA Center No 1233 Lujiazui Ring Rd Pudong District Shanghai 200120 China Tel 86 21 5877 1818 Fax 86 21 6887 7858 7898 Renesas Electronics Hong Kong Limited Unit 1601 1613 16 F Tower 2 Grand Century Place 193 Prince Edward Road West Mongkok Kowloon Hong Kong Tel 852 2886 9318 Fax 852 2886 9022 9044 Renesas Electronics Taiwan Co
55. ptor h and FDL_Descriptor h EEL Descriptor c Source file for the EEPROM Emulation Library for Renesas RL78 devices FDL Descriptor c Source file for the Data Flash Access Library for Renesas RL78 devices Header file for the EEPROM Emulation Library for Renesas RL78 devices EEL Descriptor h FDL_Descriptor h Header file for the Data Flash Access Library for Renesas RL78 devices User Manual Data FLASH Converter Data FLASH Converter GUI 5 3 Process window The process window offers additional to the file menu and the toolbar the possibility to generate a Data FLASH file or a merged Code FLASH Data FLASH file Supplementary the complete Data FLASH converter settings can be cleared by using the lt Clear All gt button Refer to chapter 5 2 1 Clears complete Data FLASH converter settings Item 7 Generate Data FLASH file Generate merged Data FLASH Code FLASH File Clear All Refer to chapter 5 2 1 Item 8 Figure 36 Process window RO1UT0175ED0400 Rev 4 00 AS 47 User Manual ENES Data FLASH Converter Command line interface Chapter 6 Command line interface Beside the graphical user interface the Data FLASH converter provides a command line interface to support batch mode operation or automatic output file generation The syntax for the command line interface is as follows DataFLASHConverter data flash mapping options input files lt filename gt ou
56. r Input files formats 2 3 1 EEPROM XML file format for V850 EEElib previous Type The XML input format and the corresponding XML tags for V850E ES devices in UX4 and MF2 FLASH Technology in combination with the V850 EEPROM emulation library V850 EEElib previous Type is shown below lt xml version 1 0 gt lt DataFlash gt lt AdministrativeSection gt lt SectionSize gt 0x0800 lt SectionSize gt lt Offset gt 0x0000 lt Offset gt lt AdministrativeSection gt lt Record gt lt ID gt 0x80 lt ID gt lt Length gt 4 lt Length gt lt Data gt 0x20 0x30 0x40 0x50 lt Data gt lt Record gt lt Record gt lt ID gt 0x81 lt ID gt lt Length gt 8 lt Length gt lt Data gt 0x20 0x30 0x31 0x32 0x40 0x40 0x41 0x42 Data Record DataFlash Figure 1 EEPROM emulation data XML file format for V850 EEElib previous Type The predefined XML tags are DataFlash Defining the start of the definition file This section is describing the physical parameters that are needed for the file generation Size of one section that is used for the EEPROM emulation SectionSize e g 0x800 2 kByte 0x1000 4 kByte 0x2000 8 kByte 0x4000 16 kByte The offset where the section starts in the Data FLASH It is AdminstrativeSection Offset always related to the start address of the Data FLASH The offset can have a size of 2 kByte n Record Defining the start of a ID L record ID I
57. r of prepared blocks Threshold for erase suspend counter Exceeding this results in warning Defining CPU frequency in MHz EEL CONFIG DF BASE ADDRESS EEL CONFIG BLOCK CNT REFRESH THRESHOLD EEL CONFIG ERASE SUSPEND THRESHOLD FDL CPU FREQUENCY MHZ Record Defining the start of a ID L record ID Identifier for the data record 8bit Format is fixed to two digits in hex IDName Defining the name of the record Length Length definition of the data record In the range of 1 FFh Data Any hexadecimal or decimal value The line length is not fixed The number of data in a record should not be larger than the value for Length Comments have to be added as specified in XML definition starting with lt and ending with gt The values defining the ID length or data information must have the following C like notation o Leading Ox denotes a hex value o Leading zeros within a hex value are interpreted by the Data FLASH Converter and do also determine the width of a Data value Example 0x00 gt data width 1 Byte 0x0012 gt data width 2 Byte 0x00000023 data width 4 Byte o All other notation is interpreted as decimal value Values have to be separated by either space or comma RO1UT0175ED0400 Rev 4 00 AS 21 User Manual RENES Data FLASH Converter Chapter 3 RO1UT0175ED0400 Rev User Manual Output file formats Output file
58. rter to C Program Files Renesas Electronics Tools DataFLASHConverter Installshield i Cancel Figure 9 Choose Destination Folder window RO1UT0175ED0400 Rev 4 00 AS 24 User Manual ENES Data FLASH Converter Software Installation After everything has been setup for installation press the Install button to start the copy process and to finalize the installation ie DataFLASHConverter InstallShield Wizard Ready to Install the Program The wizard is ready to begin installation Click Install to begin the installation IF you want to review or change any of your installation settings click Back Click Cancel to exit the wizard Installshield Figure 10 Ready to install window On the installation progress window you can follow the installation You can always abort the installation by pressing the Cancel button im DataFLASHConverter InstallShield Wizard Installing DataFLASHConverter The program features you selected are being installed Please wait while the InstallShield Wizard installs DataFLASHConverter This may take several minutes Status InstallShield Figure 11 Installation progress window RO1UT0175ED0400 Rev 4 00 AS 25 User Manual ENES Data FLASH Converter Software Installation When the installation is complete the following message window appears ie DataFLASHConverter InstallShield Wizard InstallShield Wizard Completed The InstallShield Wizard has suc
59. s fixed to EEL Descriptor h and FDL Descriptor h EEL Descriptor h Header file for the EEPROM Emulation Library for Renesas V850 devices FDL_Descriptor h Header file for the Data Flash Access Library for Renesas V850 devices Similar with V850E1 ES based microcontrollers by generating a Data FLASH file two separate output files are generated one for FLASH programming and the other one for debugging purpose The file for debugging purpose includes the marking dbg within the file name and is mapped to the Data FLASH memory area specified by the user The file for FLASH programming purpose has no additional marking within its name and is mapped to address 0xF1000 Please refer also to Figure 40 Additionally to Data FLASH two source files and two header files for the EEL and FDL will be generated The name of the source files is fixed to EEL Descriptor c and FDL Descriptor c The name of the header files is fixed to EEL Descriptor h and FDL_Descriptor h EEL Descriptor c Source file for the EEPROM Emulation Library for Renesas 78KOR devices FDL_Descriptor c Source file for the Data Flash Access Library for Renesas 78KOR devices Header file for the EEPROM Emulation Library for Renesas 78KOR devices EEL Descriptor h FDL_Descriptor h Header file for the Data Flash Access Library for Renesas 78KOR devices RO1UT0175ED0400 Rev 4 00 TENESAS 53 User Manual Data FLASH Converter
60. s interpreted as decimal value Values have to be separated by either space or comma RO1UT0175ED0400 Rev 4 00 AS 15 User Manual ENES Data FLASH Converter Input files formats 2 3 4 EEPROM XML file format for V850 EEL Type T06 The XML input format and the corresponding XML tags for V850E2 devices in RCO3F FLASH Technology in combination with the V850 EEPROM emulation library EEL Type T06 is shown below lt xml version 1 0 gt lt DataFlash gt lt AdministrativeSection gt lt FAL_CONFIG_DATAFLASH_SIZE gt 16 lt FAL_CONFIG_DATAFLASH_SIZE gt lt FAL_CONFIG_BLOCK_SIZE gt 0x800 lt FAL_CONFIG_BLOCK_SIZE gt lt EEL_CONFIG_BLOCK_START gt 2 lt EEL_CONFIG_BLOCK_START gt lt EEL CONFIG BLOCK CNT gt 6 lt EEL CONFIG BLOCK CNT gt EEL CONFIG DF BASE ADDRESS gt 0xFE000000 lt EEL CONFIG DF BASE ADDRESS gt lt EEL CONFIG BLOCK CNT REFRESH THRESHOLD gt 0x03 lt EEL CONFIG BLOCK CNT REFRESH THRESHOLD gt lt EEL CONFIG ERASE SUSPEND THRESHOLD gt 10 lt EEL CONFIG ERASE SUSPEND THRESHOLD gt lt AdministrativeSection gt lt Record gt lt ID gt 0x80 lt ID gt lt IDName gt Name 1 lt IDName gt lt Length gt 2 lt Length gt lt Data gt 0x20 0x30 lt Data gt lt Record gt lt Record gt lt ID gt 0x10 lt ID gt lt IDName gt Name2 lt IDName gt lt Length gt 5 lt Length gt lt Data gt 0x20 0x30 0x31 0x32 0x33 lt Data gt lt Record gt lt DataFlash gt Figure 4 EEPROM emulation data XML file
61. s the physical start address of the Data FLASH memory The address has be specified in hexadecimal notation i e 0x001F8000 dfsize lt 32KB 64KB gt specifies the size of the Data FLASH memory Supported sizes are 32 kByte and 64 kByte xml lt file gt type lt srec hex gt specifies the Data FLASH EEPROM file XML format specifies the input format for the program code files and the output file format o lt file gt specifies the output file cfcode lt file gt specifies the program file for the Code FLASH dfcode lt file gt specifies the program file for the Data FLASH help displays help information this command list log lt file gt specifies the log file to be created By using this option an separate log file is created showing all necessary information the input options settings the memory mapping and finally the conversion result Table 5 Command line options RO1UT0175ED0400 Rev 4 00 User Manual nodisplay specifies that the converter should run in silent mode no additional command shell window will be opened Please use this mode within an automated generation or make flow RENESAS 49 Data FLASH Converter 6 2 V850 EEElib 78KOR EEL V850 EEL Types TO5 T06 RL78 EEL Type T01 RL78 Tiny EEL Type T02 Command line interface Combination of command line options The following combinations of command line opt
62. t communications equipment test and measurement equipment audio and visual equipment home electronic appliances machine tools personal electronic equipment and industrial robots High Quality Transportation equipment automobiles trains ships etc traffic control systems anti disaster systems anti crime systems safety equipment and medical equipment not specifically designed for life support Specific Aircraft aerospace equipment submersible repeaters nuclear reactor control systems medical equipment or systems for life support e g artificial life support devices or systems surgical implantations or healthcare intervention e g excision etc and any other applications or purposes that pose a direct threat to human life 9 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 10 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
63. the Data FLASH converter Code FLASH Program File CF Program 101 hex o Red o Intelhex File Clear Figure 32 Config window Code FLASH Program file box Additional to the file menu and toolbox button the program file can be loaded by pressing the lt Read gt button within the Config window of the Data FLASH Converter The lt Clear gt button offers the possibility to delete a current selected file RO1UT0175ED0400 Rev 4 00 AS 41 User Manual ENES Data FLASH Converter Data FLASH Converter GUI To get information about the address map of the program file the mapping is shown in the address map window of the Data FLASH converter Code FLASH Ox0002CEES CF Program 101 hex OxOOOOOOOO Figure 33 Address map window Code FLASH memory box RO1UT0175ED0400 Rev 4 00 AS 42 User Manual ENES Data FLASH Converter 7 mrg Figure 34 Note for devices using V850 EEELib or 78KOR EEL Note Data FLASH Converter GUI Generate merged Data FLASH Code FLASH file The Generate merged Data FLASH Code FLASH file menu allows to generate a merged output file including Data FLASH and Code FLASH information The file format of the generated file depends on the format of the loaded program file for the Data FLASH respectively Code FLASH By executing this command a file save dialog opens and offers the possible to specify the name and location of the output file to be generated Save in 5 output o
64. tion settings lt 6 gt Hint bar Hints for commands and toolbar Table 3 Main window composition 5 1 Toolbar The toolbar contains buttons to configure the Data FLASH Converter and to start all key functions quickly The following buttons and corresponding functions are offered by the Data FLASH converter y o oO lt D i Open Device Parameter File Setup Data FLASH area L NE m m o Open EEPROM emulation data Open program file for Data FLASH Open program file for Code FLASH Generate merged Data Code FLASH file Generate Data FLASH file Figure 15 Toobar buttons RO1UT0175ED0400 Rev 4 00 User Manual Open HEX editor viewer RENESAS 28 Data FLASH Converter 5 2 5 2 1 Figure 16 1 Data FLASH Converter GUI The Menu Analogue to the Toolbar the main menu of the Data FLASH Converter allows the configuration and execution of all converter functions File menu The File menu allows starting a HEX file editor viewer setting the Data FLASH area loading a program file for Data FLASH or respectively Code FLASH and loading an EEPROM emulation file in various formats Additional the generation of a Data FLASH file or the output of a merged Code FLASH Data FLASH file can be controlled via the file menu W DataFLASHConverter File View Help m HEX REC Editor N Open device parameter file Set Data FLASH are
65. tput file filename By executing the Data FLASH converter without any options from the command line the graphical user interface is started By doing the conversion via the command line interface a separate command shell window will open showing all necessary information the input options settings the conversion processing and finally the conversion result a Of x DataFLASHConverter V3 1 Cc Copyright 2618 Renesas Electronics Europe GmbH dataflashconverter prm 7 F35 1i pr5 cfcode CF Program 2 1 hex dfcode DF Progra m 2 1 hex xml EEPROM 2 1 xml type hex o cf df xml out hex Start address x02 00000 End address x 2 3FFFF program file CF Program 2 1 hex address range BxBBBBBBBAB BXBBB2CEE3 gt program file DF Program 2 1 hex address range x02004006 G x82864D7B gt XML file EEPROM 201 xml address range x02001006 BxB20B3FFF gt File name EEL Descriptor h FDL Descriptor h cf df xml out hex File format Intel HEX Conversion successful lt Press Enter to close gt Figure 37 Data FLASH Converter command line shell RO1 UT0175ED0400 Rev 4 00 User Manual 48 Data FLASH Converter 6 1 Command line interface Command line options The following command line options are supported by the Data FLASH Converter Command Definition prm lt file gt specifies the device parameter file pr5 dfbase lt address gt specifie
66. uted from the Data FLASH memory After downloading the program file the corresponding memory area where the program is placed within the Data FLASH is shown in the address map window Look in DataFLASHConverter E A output LO CF Program 101 My Recent E CF_Program_101 rec domeno EERTE E DF Program 101 rec D l My N File name DF Program 1 DI Open aces Files of type SRecord rec Intelhex hex files v Cancel Figure 28 Open Data FLASH program file dialog The program code has to be available in an Intel hex or Motorola S record format For Intel hex the extended linear address record and extended segment address record formats are supported With regard to the Motorola S record type the S2 and S3 record formats are supported for program code mapped to the Data FLASH memory After the program code is loaded the corresponding file and file format is displayed in the Config window of the Data FLASH converter Data FLASH Program File DF Program 101 hex Intelhex File Figure 29 Config window Data FLASH program file box Additional to the file menu and toolbox button the program file can be loaded by pressing the Read button within the Config window of the Data FLASH Converter The Clear button offers the possibility to delete a current selected file RO1UT0175ED0400 Rev 4 00 TENESAS 39 User Manual Data FLASH Converter GUI Data FLASH Converter Data FLASH Converter GUI To g
67. verter Command line interface Example for RL78 EEL Type T01 and RL78 Tiny EEL Type T02 e g RL78 G1x RL78 D1x devices DataFlashConverter prm R5F100AA pr5 type hex xml EEPROM xml o dataflashmem hex FLASH programming 0x000F1000 Ox000F1FFF dataflashmem hex Figure 42 Output generation for Data FLASH memory image V850E2 By generating a Data FLASH file one output file will be generated which can be used for FLASH programming and for debugging purpose For RL78 type based devices the Data FLASH area is fixed to address 0x000F1000 Additionally to Data FLASH two source files and two header files for the EEL and FDL will be generated The name of the source files is fixed to EEL Descriptor c and FDL Descriptor c The name of the header files is fixed to EEL Descriptor h and FDL Descriptor h EEL Descriptor c Source file for the EEPROM Emulation Library for Renesas 78KOR devices FDL Descriptor c Source file for the Data Flash Access Library for Renesas 78KOR devices EEL Descriptor h Header file for the EEPROM Emulation Library for Renesas 78KOR devices FDL Descriptor h Header file for the Data Flash Access Library for Renesas 78KOR devices RO1UT0175ED0400 Rev 4 00 AS 59 User Manual RENES Data FLASH Converter Command line interface 6 3 Return Codes For using the Data FLASH converter within an automated generation or make flow different return codes are generated depending on t
68. which features are supported 1 1 Abbreviations Abbreviations Description EEL EEPROM Emulation Library FAL FLASH Access Library FLASH access layer FDL FLASH Data Library Data FLASH access layer FSL FLASH Self programming Library accessing code FLASH FW Firmware FLASH Control Block Hardware part of the device which FCB controls the flash macros s Depending on the device series FCU may be used instead An extension of a flash word which allows to identify special ID tag data within the flash An ID tag is supported only in Data Flash and only for some Renesas device families XML eXtensible Markup Language Table 1 Abbreviations RO1UT0175ED0400 Rev 4 00 6 User Manual RENESAS Data FLASH Converter Introduction 1 2 Main features of Data FLASH Converter e Generates a initial Data FLASH memory image based on EEPROM emulation data represented by an XML file e Following EEPROM emulation library types for 78KOR RL78 and V850 devices are currently supported Refer to Renesas download pages to find out which EEL is the correct one for the device you are using o V850 EELib V850E ES devices in MF2 or UX4 FLASH Technology in combination with the V850 EEPROM emulation library EEElib previous Type Example V850ES FX3 V850E DX3 o V850 EEL TOS V850E2 devices in UX6 FLASH Technology in combination with the V850 EEPROM emulation library EEL Type T05 Example V850E2 FX4 V850E2 DX4 V
Download Pdf Manuals
Related Search
Related Contents
pdf, 836 k - Ecole Doctorale 74 MANUAL DE USUARIO 医療機器適正広告ガイド集 平成24年5月 日本医療機器産業連合会 Switchvox Admin Basics Westinghouse WGR050LP076 Brochure Téléchargez le mode d`emploi dossier Ad`ap. SteamFast SF-435W Use and Care Manual GUI Revision History March2012 2.41 Havis DS-GTC-302 Copyright © All rights reserved.
Failed to retrieve file