REJ06J0002-0100 Flash Development Toolkit Application Note (Introduction) Rev.1.00 Jun.
Notes regarding these materials 1. This document is provided for reference purposes only so that Renesas customers may select the appropriate Renesas products for their use. Renesas neither makes warranties or representations with respect to the accuracy or completeness of the information contained in this document nor grants any license to any intellectual property rights or any other rights of Renesas or any third party with respect to the information in this document. 2.
Renesas Flash Development Toolkit Application Note (Introduction) Revision 1.0 Renesas Technology Corp.
Contents 1. Overview .................................................................................................................... 1 2. Functions of the Flash Development Toolkit............................................................. 1 2.1 Main Functions ................................................................................................................ 1 2.2 Basic Simple Interface Mode ...........................................................................................
4.2.1 Operating Modes ......................................................................................................................... 30 4.2.2 On-Board Programming Modes.................................................................................................. 30 4.3 Activating the Flash Development Toolkit.................................................................... 32 4.4 Setting Product Information.............................................................................
5.5.4 Ending Programming.................................................................................................................. 62 5.6 Reprogramming ............................................................................................................. 63 5.7 ID Code........................................................................................................................... 64 5.7.1 ID Code Checking Function...............................................................
1. Overview This application note describes how to use the Renesas Flash Development Toolkit. The target devices are the following three series: (1) H8/300H Tiny Series (H8/3694F) (2) H8S Family (H8S/2378F) (3) R8C/Tiny Series (R5F21154) 2. Functions of the Flash Development Toolkit The Renesas Flash Development Toolkit is an on-board flash programming tool for Renesas F-ZTAT microcomputers, which offers a sophisticated and easy-to-use graphical user interface.
The graphical user interface screen of the Flash Development Toolkit is shown in Figure 2-1.
2.2 Basic Simple Interface Mode The basic simple interface mode allows you to easily write a program or data in flash memory on the target device without creating a project and registering and storing device information. This mode is called by selecting "Flash Development Toolkit 3.4 Basic" in the Start menu. This mode is used to simplify the look and feel of the Flash Development Toolkit. In the basic simple interface mode, any previous settings are restored at the start-up.
2.3 Simple Interface Mode The simple interface mode allows you to manage multiple devices, programs, or data by creating a project, and registering and storing device information. To use this mode, create a project using the Flash Development Toolkit called by selecting it as follows. Call the "FDT Simple Interface" dialog by selecting [Tools(T) -> Simple Interface...]. This mode is used to simplify the look and feel of the Flash Development Toolkit after a project has been created.
3. 3.1 3.1.1 Operating the H8/300H Tiny Series (H8/3694F) Connecting the H8/3694F and Adapter Board Connecting the Adapter Board On-board programming adapter board for F-ZTAT* microcomputers HS0008EAUF1H (called the adapter board hereafter), which is connected between a host computer and user system, has a function which can write a user application program in flash memory built into an F-ZTAT microcomputer on the user system (on-board) and erase it from the flash memory.
3.1.2 User Interface Cable Signals Pin numbers and corresponding signals of the user system interface cable used for connecting the adapter board and user system are listed below.
Adapter board (HS0008EAUF1H) Vcc Pulled up at 47 kΩ or more. 18,20 VIN(Vcc) RXD 15 TxD TXD 17 RxD3 5 NMI MD2 9 (IO0) P85 MD0 H8/3694F Vcc Pulled up at about 1 kΩ. RE S 1 GND 2,4,6,8,10, 12,14,16 Figure 3-2 RES Connector*1 3428-6002LCSC Note: 1.
3.1.4 Setting Pins on the Adapter Board An example of setting pins for the boot mode when the H8/3694F user system and Renesas adapter board (HS0008EAUF1H) are connected is shown in. Table 3-2 Example of Setting Pins on the H8/3694F and Adapter Board (for Boot Mode) Pin No.
3.2 Boot Mode The following two modes are available to program and erase flash memory: The boot mode which enables on-board programming/erase operations and the programmer mode which enables programming/erase operations using a PROM programmer. In addition to the above modes, the user mode enables on-board programming/erase operations. When the H8/3694F is started from the reset state, it enters a mode depending on the input levels of the TEST and NMI pins and port as listed in Table 3-3.
3.3 Starting the Flash Development Toolkit From the "All Programs" menu, select "Flash Development Toolkit 3.4 Basic." The basic simple interface screen of the Flash Development Toolkit appears. When the Flash Development Toolkit is started up for the second and subsequent times, the displayed basic simple interface screen of the Flash Development Toolkit contains the previously selected device and port information.
3.4 3.4.1 Setting Product Information New Settings Select "New Settings" from "Options." The screen for selecting the device and kernel appears. If you cannot select "New Settings" from "Options," click "Disconnect.
3.4.2 Selecting the Device and Kernel Select the target device from the pull-down menu. In this example, select H8/3694F. When you have selected the device, click "Next(N).
3.4.3 Selecting a Communications Port Select the adapter board (FDM) from the pull-down menu. When you have selected the communications port, click "Next(N).
3.4.4 Device Settings (Setting the Input Clock) Enter the frequency of the clock used for the board in MHz. For example, enter 9.8 (MHz). When you have entered the value, click "Next(N)." The input clock is the frequency of the clock directly input to the microcomputer. Enter the frequency of the crystal or ceramic resonator connected to the user system with three significant digits. The input clock differs from the operating frequency (PLL output).
3.4.5 Selecting the Connection Type (Boot Mode and Communication Speed) Select "BOOT Mode" for "Select Connection." Set the baud rate. For example, select "Use Default." When you have selected the connection type, click "Next(N).
3.4.6 Selecting Programming Options (Protection Level and Messaging Level) Select the protection level and messaging level. For example, select "Automatic" for "Protection" and "Advanced" for "Messaging." When you have selected programming options, click "Next(N).
3.4.7 Adapter Board Pin Settings Set the pins on the adapter board (FDM) for the boot mode. In the H8/3694F boot mode, set the output of P85 to high (1) and that of NMI to low (0). On the H8/3694F user system, MD2 (IO0) is connected to P85 and MD0 is connected to NMI. Therefore, set MD2 (IO0) and MD0 to output and set the output of MD2 (IO0) to high and that of MD0 to low. No FWE pin setting is required because no FWE pin is given. When you have set the pins, click "Next(N).
An example of connecting the H8/3694F and Renesas adapter board (HS0008EAUF1H) is shown in Figure 3-3. The pull-up and pull-down resistor values shown are only examples. Evaluate the microcomputer to determine the actual values on the user system. Adapter board (HS0008EAUF1H) Vcc Pulled up at 47 kΩ or more. 18,20 VIN(Vcc) RXD 15 TxD TXD 17 RxD3 MD0 5 NMI MD2 9 (IO0) P85 H8/3694F Vcc Pulled up at about 1 kΩ. RES 1 RES GND 2,4,6,8,10, 12,14,16 Figure 3-3 Connector*1 3428-6002LCSC Note: 1.
3.4.8 Reset Mode Pin Settings Set pins on the adapter board for restarting the device in the reset mode. These settings are not required for this procedure. When you have set the items, click "Finish.
3.4.9 Completion of Setting Device and port settings are now completed.
3.5 3.5.1 Programming Flash Memory Selecting the Program Area and File Select the download program area and the S-type file. Check "User Area" in "Download File Area" to enable an S-type file to be specified in "User Area" in "Download File." Then, click the "..." (browse) button on the right, which becomes active, to open the "Open File" dialog. In the "Open File" dialog, specify the S-type file sample.mot to be downloaded and click "Open(O).
3.5.2 Starting Programming File selection has been completed. When the Flash Development Toolkit is started up for the second and subsequent times, the following screen is opened. The previously selected information is retained. When you have selected items, click "Program Flash.
3.5.3 Selecting a USB Device Select a USB device. In this example, select the adapter board (FDM). When you have selected the USB device, click "OK.
3.5.4 Ending Programming Programming starts, then ends. Confirm the message indicating that programming terminated normally. Click "Exit." The Flash Development Toolkit terminates.
3.6 Reprogramming To program flash memory for the second and subsequent times in the basic simple interface mode, follow the procedure below: Open "Flash Development Toolkit 3.4 Basic." The basic simple interface screen appears. The previously set product information and the settings related to the file to be downloaded are retained. Click "Program Flash." Programming starts, then ends. To program a different file into a different product, use the simple interface mode.
4. 4.1 Operating the H8S Family (H8S/2378F) Connecting the Adapter Board The on-board programming adapter board for F-ZTAT* microcomputers HS0008EAUF1H (called the adapter board hereafter), which is connected between a host computer and the user system, can write a user application program in flash memory built into an F-ZTAT microcomputer on the user system (on-board) and erase it from the flash memory. The adapter board connection is shown in Figure 4-1.
A list of pin numbers and corresponding signals of the user system interface cable used for connecting the adapter board and user system is shown below.
Adapter board (HS0008EAUF1H) Vcc Pulled up at 47 kΩ or more VIN 18,20 (Vcc) RXD 15 TxD1 TXD 17 RxD1 SW6- 1(MD0) MD0 SW6- 2(MD1) MD1 SW6- 3(MD2) MD2 MD2 9 (IO0) Pulled down at about 1 kΩ. H8S/2378F Vcc Pulled up at about 1 kΩ. RES 1 RES GND 2,4,6,8,10, 12,14,16 Connector*1 3428-6002LCSC Note: 1.
4.1.2 Setting Pins on the Adapter Board An example of setting pins for the boot mode when the H8S/2378F user system and Renesas adapter board (HS0008EAUF1H) is connected is given in Table 4-2. Use the mode switch to set the operating mode. Table 4-2 Example of Setting Pins on the H8S/2378F and Adapter Board (for Boot Mode) Pin No.
4.2 4.2.1 Boot Mode Operating Modes The H8S/2378 has six operating modes (modes 1 to 5 and 7). The operating mode is selected by the setting of mode pins (MD2 to MD0). Modes 1, 2, and 4 are externally expanded modes in which the CPU can access external memory and peripheral devices. In the externally expanded modes, each area in the external address space can be switched between 8- or 16-bit address space by the bus controller after the start of the execution of a program.
The results of comparing programming and erasing related functions on the boot mode, user program mode, and user boot mode are shown in Table 4-4.
4.3 Activating the Flash Development Toolkit From the "All Programs" menu, select "Flash Development Toolkit 3.4 Basic." The basic simple interface screen of the Flash Development Toolkit appears. When the Flash Development Toolkit is started up for the second and subsequent times, the displayed basic simple interface screen of the Flash Development Toolkit contains the previously selected device and port information.
4.4 4.4.1 Setting Product Information New Settings Select "New Settings" from "Options." The screen for selecting the device and kernel appears. If you cannot select "New Settings" from "Options," click "Disconnect.
Selecting the Device and Kernel 4.4.2 Select the target device from the pull-down menu. Select "Generic BOOT Device" because the H8S/2378F is a 0.18-μm product. When you have selected the device, click "Next(N)." A list of 0.18-μm products for which "Generic BOOT Device" is selected is shown in Table 4-5. Table 4-5 0.
4.4.3 Selecting a Communications Port Select the adapter board (FDM) from the pull-down menu. When you have selected the communications port, click "Next(N).
Adapter Board Pin Settings 4.4.4 Set the pins on the adapter board (FDM) for the boot mode. For example, set the output of FWx to high (1) and that of MD2 to low (0). In this example, the FWE pin outputs high (1) for setting the mode and MD2 (IO0) outputs low (0) for serial communications connection. To select the boot mode (mode 3), use DIP switch SW6. SW6-3: On (0) SW6-2: Off (1) SW6-1: Off (1) When you have set the pins, click "OK." Click "OK.
An example of connecting the H8S/2378F and Renesas adapter board (HS0008EAUF1H) is shown in Figure 4-3. The pull-up and pull-down resistor values shown are only examples. Evaluate the microcomputer to determine the actual values on the user system. Adapter board (HS0008EAUF1H) Vcc Pulled up at 47 kΩ or more. VIN 18,20 (Vcc) RXD 15 TxD1 TXD RxD1 17 SW6-1(MD0) MD0 SW6-2(MD1) MD1 SW6-3(MD2) H8S/2378F MD2 MD2 9 (IO0) Pulled down at about 1 kΩ. Vcc Pulled up at about 1 k Ω.
4.4.5 Selecting the USB Device Check the device. Select the adapter board (FDM). When you have selected USB device, click "OK.
4.4.6 Selecting the Device Check the device. Select HD64F2378. When you have selected the device, click "OK.
4.4.7 Selecting the Clock Mode Check the device. Select the clock mode. When you have selected the clock mode, click "OK.
4.4.8 Checking the Generic Device The device has been checked. Click "OK.
4.4.9 Setting the Device (Input Clock) In the first column enter the frequency of the clock used for the board in MHz. For example, enter 8.25 (MHz). When you have entered the value, click "Next(N)." The input clock is the frequency of the clock directly input to the microcomputer. Enter the frequency of the crystal or ceramic resonator connected to the user system with three significant digits. The input clock differs from the operating frequency (PLL output).
4.4.10 Selecting the Connection Type (Communication Speed) Select a baud rate from the pull-down menu. For example, select 19200 (baud). When you have selected the baud rate, click "Next(N).
4.4.11 Selecting Programming Options (Protection Level and Messaging Level) Select the protection level and messaging level. For example, select "Automatic" for "Protection" and "Advanced" for "Messaging." When you have selected programming options, click "Next(N).
4.4.12 Reset Mode Pin Settings (FDM) Set pins on the adapter board (FDM) for restarting the device in the reset mode. These settings are not required for this procedure. When you have set the items, click "Finish.
4.4.13 Completion of Setting Device and port settings are now completed.
4.5 4.5.1 Programming Flash Memory Selecting the Program Area and File Select the download program area and S-type file. Check "User Area" in "Download File Area" to enable an S-type file to be specified in "User Area" in "Download File." Then, click the "..." (browse) button on the right, which becomes active, to open the "Open File" dialog. In the "Open File" dialog, specify S-type file demo.MOT, a demo program for turning on LEDs, to be downloaded and click "Open(O).
4.5.2 Starting Programming File selection has been completed. When the Flash Development Toolkit is started up for the second and subsequent times, the following screen is opened. The previously selected information is retained. When you have selected items, click "Program Flash.
4.5.3 Ending Programming By clicking "Start", programming starts, then ends. Confirm the message indicating that programming terminated normally. Click "Exit." The Flash Development Toolkit terminates operation.
4.6 Reprogramming To program flash memory for the second and subsequent times in the basic simple interface mode, follow the procedure below: Open "Flash Development Toolkit 3.4 Basic." The basic simple interface screen appears. The previously set product information and the settings related to the file to be downloaded are displayed as is. Click "Program Flash." Programming starts, then ends. To program a different file into a different product, use the simple interface mode.
5. Operating the R8C/Tiny Series (R5F21154) The single-chip microcomputer R8C/15 Group incorporates flash memory. This section describes how to program and erase a user application program in flash memory on the R5F21154 in the R8C/15 Group using the Flash Development Toolkit and R8C/15 starter kit. 5.1 Flash Memory Programming Mode Program flash memory as follows: Programming mode: Standard serial input/output mode Outline: Program the user ROM area using the dedicated serial programmer.
5.3 Starting the Flash Development Toolkit From the "All Programs" menu, select "Flash Development Toolkit 3.4 Basic." The basic simple interface screen of the Flash Development Toolkit appears. When the Flash Development Toolkit is started up for the second and subsequent times, the displayed basic simple interface screen of the Flash Development Toolkit contains the previously selected device and port information.
5.4 5.4.1 Setting Product Information New Settings Select "New Settings" from "Options." The screen for selecting the device and kernel appears. If you cannot select "New Settings" from "Options," click "Disconnect.
5.4.2 Selecting the Device and Kernel Select the target device from the pull-down menu. In this example, select R5F21154. When you have selected the device, click "Next(N).
5.4.3 Selecting the Communications Port Select E8 from the pull-down menu. When you have selected the communications port, click "Next(N).
5.4.4 Selecting the Connection Type (Communication Speed) Set the baud rate. For example, select "Use Default." When you have selected the communication speed, click "Next(N).
5.4.5 Selecting Programming Options (Protection Level and Messaging Level) Select the protection level and messaging level. For example, select "Automatic" for "Protection" and "Advanced" for "Messaging." When you have set the programming options, click "Finish.
5.4.6 Completion of Setting Device and port settings are now completed.
5.5 5.5.1 Programming Flash Memory Selecting the Program Area and File Select a download program area and S type file. Check "User Area" in "Download File Area" to enable an S-type file to be specified in "User Area" in "Download File." Then, click the "..." (browse) button on the right, which becomes active, to open the "Open File" dialog. In the "Open File" dialog, specify S-type file ad_onkai.mot to be downloaded and click "Open(O).
5.5.2 Starting Programming When the Flash Development Toolkit is started up for the second and subsequent times, the following screen is opened. The previously selected information is retained. When you have selected items, click "Program Flash.
5.5.3 Setting the Power Supply Set the power supply. Check "Power Supply" and set the power supply voltage to 5.0 V. When you have set the items, click "OK." [Restriction] The E8 emulator is designed to supply power. However, it cannot be guaranteed that the E8 emulator supplies the power required for programming flash memory on a microcomputer because the power load differs depending on the user system.
5.5.4 Ending Programming Click "Start." Programming starts, then ends. Confirm the message indicating that programming terminated normally. Click "Exit." The Flash Development Toolkit terminates.
5.6 Reprogramming To program flash memory for the second and subsequent times in the basic simple interface mode, follow the procedure below: Open "Flash Development Toolkit 3.4 Basic." The basic simple interface screen appears. The previously set product information and the settings related to the file to be downloaded are displayed as is. Click "Start." Programming starts, then ends. To program a different file into a different product, use the simple interface mode.
5.7 5.7.1 ID Code ID Code Checking Function In the standard serial input/output mode, the ID code checking function is available to prevent flash memory from being read or reprogrammed easily. When flash memory is not blank, this function checks whether the ID code sent from the programmer and the 7-byte ID code programmed in flash memory match. If they do not match, the function does not accept any command sent from the programmer.
A new file is programmed.
5.7.4 ID Code Mismatch If the entered ID code differs from the programmed ID code, an ID code mismatch occurs and no file can be programmed.
5.7.5 ID Code File When an ID code is set, an id file is created. This id file contains the set ID code. You can use this file to set an ID code. When an attempt is made to program a file in which the ID code is set to H'77777777777777, the "ID Check" dialog appears. Click "Browse...." The id file selection screen appears. Select the id file for the file programmed in flash memory. For example, select ad_onkai12.id. When you have selected the file, click "Open(O)." The ID code is displayed. Click "OK.
A new file is programmed.
6. Selecting and Setting Functions This section describes how to select a function and set the selected function. 6.1 6.1.1 Options Menu Login... This allows changing of which user is logged in to the Flash Development Toolkit. The hotkey Ctrl+Shift+U also invokes the Login dialog. 6.1.2 Auto Disconnect This forces the Flash Development Toolkit to automatically disconnect after programming, so that the user does not need to press the Disconnect button. 6.1.
Area. For devices with a Data Area, the user can choose whether to download the file to the User Area or the Data Area. 6.2.4 Program Flash Clicking on Program Flash allows the Flash Development Toolkit to download the specified file to the FLASH memory. Additionally, if Readback Verify is switched off, the Checksum will also be calculated and output to the screen. 6.2.5 Disconnect Clicking on Disconnect forces the Flash Development Toolkit to disconnect. 6.2.
Flash Development Toolkit Application Note (Introduction) Publication Date: Jun. 28, 2006 Rev.1.00 Published by: Sales Strategic Planning Div. Renesas Technology Corp. Edited by: Microcomputer Tool Development Department Renesas Solutions Corp. © 2006. Renesas Technology Corp. and Renesas Solutions Corp., All rights reserved. Printed in Japan.
Flash Development Toolkit Application Note (Introduction)