To our customers, Old Company Name in Catalogs and Other Documents On April 1st, 2010, NEC Electronics Corporation merged with Renesas Technology C
2. H8S/2378F (H8S Family) 2.1 Flash Memory Configuration The flash memory of the H8S/2378F has two types of memory MATs: User MAT (user area) and us
7.3.4 Flash Memory Programming (FDTWrite.c) (1) WriteInit The user area is selected, the operating frequency is specified, and the initial setting of
(3) Executing programming end processing (WriteFLASH) Flash memory programming end processing is partially shown below. For details, refer to Source F
8. Programming Guide This section describes how to write a program using the 0.18-μm F-ZTAT microcomputer standard boot program. The section also cont
8.2.3 Selecting a Library To select a library, set the corresponding bit of the FPCS or FECS register to 1. Table 8-3 Registers for Selecting a Pr
8.3 Using the Libraries This section describes how to use the libraries. 8.3.1 Transfer Perform transfer operation using the procedure below: (1) S
8.4 Modules There are the following libraries: Transfer library, erasing library, and programming library. The function of each module is shown below:
8.5.2 Erase Initial Setting Name Erase initial setting Type typedef BYTE (*InitPtr)(WORD); Function Performs erase initial setting. Argument WORD
8.5.5 Programming Name Programming Type typedef BYTE (*WritePtr)(BYTE *, BYTE *); Function Performs programming. Arguments BYTE * (first argument)
Flash Development Toolkit Application Note (Applications) User Program Mode (H8S/2378F) Publication Date: Jun. 28
1753, Shimonumabe, Nakahara-ku, Kawasaki-shi, Kanagawa 211-8668 JapanFlash Development ToolkitREJ06J0003-0100Application Note (Applications)
2.3 On-Board Programming Modes There are three on-board programming modes: Boot mode, user program mode, and user boot mode. The on-board programming
3. Functions of the Flash Development Toolkit The Renesas Flash Development Toolkit is an on-board flash programming tool for Renesas F-ZTAT microcom
The graphical user interface screen of the Flash Development Toolkit is shown in Figure 3-1. Figure 3-1 Graphical User Interface of the Flash Deve
4. Operating the Flash Development Toolkit 4.1 Connecting the Adapter Board On-board programming adapter board for F-ZTAT* microcomputers HS0008EAUF
The pin numbers and corresponding signals of the user system interface cable used for connecting the adapter board and user system are shown below. Ta
H8S/2378FTxD1RxD1MD0MD1RES15Vcc171VIN(Vcc)RXDTXDRESGND2,4,6,8,10,12,14,16Adapter board(HS0008EAUF1H)Pulled up at 47 kΩor more.Pulled up atabout 1 kΩ.N
4.2 Setting the Flash Development Toolkit Set the Flash Development Toolkit first to write a program in flash memory. 4.2.1 Starting the Flash De
4.2.3 Setting a New Project Workspace Set a new project workspace. Use "Browse..." and select a directory, and specify the device name in &
4.2.4 Selecting the Device and Kernel Select the target device from the pull-down menu. Select "Generic BOOT Device" because the H8S/2378
Notice 1. All information included in this document is current as of the date this document is issued. Such information, however, is subject to chang
4.2.5 Selecting a Communications Port Select the adapter board (FDM) from the pull-down menu. When you have selected the communications port, click
4.2.6 Adapter Board Pin Settings Set the pins on the adapter board (FDM) for the boot mode. For example, set the output of FWx pin to high (1) (open
An example of connecting the H8S/2378F and Renesas adapter board (HS0008EAUF1H) is shown in Figure 4-2. The pull-up and pull-down resistor values show
4.2.7 Selecting a USB Device Check the device. Select the adapter board (FDM). When you have selected USB device, click "OK." 15
4.2.8 Selecting a Device Check the device. Select HD64F2378. When you have selected the device, click "OK." 16
4.2.9 Selecting the Clock Mode Check the device. Select the clock mode. When you have selected the clock mode, click "OK." 17
4.2.10 Checking the Generic Device The device has been checked. Click "OK." 18
4.2.11 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)
4.2.12 Selecting the Connection Type (Communication Speed) Select a baud rate from the pull-down menu. For example, select 19200 (baud). When you ha
4.2.13 Selecting Programming Options (Protection Level and Messaging Level) Select the protection level and messaging level. For example, select &quo
www.renesas-electoronics.comFlash Development ToolkitApplication Note (Applications)Application NoteRev.1.00 2006.06User Program Mode (H8S/2378F)
4.2.14 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 pr
4.2.15 Completion of Connection The H8S/2378F board has been connected to the Flash Development Toolkit in the boot mode. At this time, the contents
4.3 Boot Mode 1 (Programming the User Boot Area) Write a program in the user boot area in the boot mode. The program to be written is sample test pro
In the "Add File(s)" dialog, add file "2378F.mot." When you have selected the file, click "Add." File 2378F.mot is adde
4.3.2 Programming To program the user boot area, set the user boot area. Click the right mouse button on file 2378F.mot to display the pop-up menu. Cl
Click the right mouse button on file 2378F.mot again to display the pop-up menu. Click "Download File to [User Boot Area]" to download file
You can check that the program has been downloaded to the user boot area. 28
4.3.3 Blank Check To confirm that the user boot area has been programmed, perform a blank check. Click "Device" to open the pull-down menu a
Click "Device" again to open the pull-down menu and click "Blank Check." 30
The result of the blank check for the selected area is displayed. The user boot area is not blank. 31
1. This document is provided for reference purposes only so that Renesas customers may select the appropriate Renesas products for their use. R
4.3.4 Checksum To confirm that the user boot area has been programmed, display a checksum. Click "Device" to open the pull-down menu and cli
The result of the checksum calculation is displayed. When the user boot area is blank, the following value is displayed as the result: Calculating de
4.3.5 Disconnecting the Device After programming has been completed, disconnect the device. Click "Device" to open the pull-down menu and c
The device is disconnected. 35
4.3.6 Removing a File Remove a file. Click "Project" to open the pull-down menu and click "Remove Files..." 36
The file is displayed. Click "Remove All." Click "OK." 37
The file is removed. 38
4.3.7 Removing a Folder Remove a folder. Click the right mouse button on a folder to display the pop-up menu and click "Remove Folder." 3
The folder is removed. 40
4.3.8 Exiting Save the work folder and exit the Flash Development Toolkit. Click "File" to open the pull-down menu and click "Exit.&quo
Renesas Flash Development Toolkit Application Note (Applications) User Program Mode (H8S/2378F) Revision 1.0 Renes
4.4 Boot Mode 2 (Programming the User Area) Write a program in the user area in the boot mode. The same program as used in section 4.3, Boot Mode 1 (
Project 2378 is displayed. The Flash Development Toolkit can also be started by directly opening (or double-clicking on) project workspace file 2378
4.4.3 Connecting the Device Connect the USB adapter board (FDM) to a PC and the H8S/2378F board to the adapter board and set the H8S/2378F board in t
Select the adapter board (FDM). When you have selected USB device, click "OK." The adapter board is connected. 45
4.4.4 Selecting a File To select a file to be programmed, select "Add Files..." from the "Project" pull-down menu. 46
In the "Add File(s)" dialog, add file "2378F.mot." When you have selected the file, click "Add." File 2378F.mot is adde
4.4.5 Programming Click the right mouse button on file 2378F.mot to display the pop-up menu. Click "Download File to [User Area]" to downloa
You can check that the program has been downloaded to the user area. 49
4.4.6 Blank Check and Checksum To confirm that the user area has been programmed, perform a blank check and calculate a checksum. Click "Device&
4.5 User Boot Mode In the user boot mode, the user area can be programmed or erased. The user boot area cannot be programmed or erased. 4.5.1 Writi
Contents 1. Introduction ...1 2. H8S/237
4.5.2 Disconnecting the Device Click "Device" to open the pull-down menu and click "Disconnect." 52
4.5.3 Configuring the Project Click "Device" to open the pull-down menu and click "Configure Flash Project." 53
The configure project window appears. 54
4.5.4 Setting the User Program Mode Select the "Device" tab in the configure project window and double-click "Connection" and &qu
Set the connection type. Select "USER Program Mode" in "Select Connection:." Set the baud rate to 9600 bps. When you have set th
Set the pins on the adapter board (FDM) for the user boot mode. For example, set the output of FWx to high (1) and that of MD2 to low (0). In this exa
The user boot mode has been set. 58
4.5.5 Connecting the Device Click "Device" to open the pull-down menu and click "Connect to Device." Select the adapter board (F
4.5.6 Programming Write a program in the user area in the user boot mode. To program a file in the user area, specify a download area. Click the right
Click the right mouse button on file 2378F.mot again to display the pop-up menu. Click "Download [User Area]" to download file 2378F.mot to
4.3.8 Exiting... 4
You can check that the program has been downloaded to the user area. 62
4.5.7 Blank Check and Checksum To confirm that the user area has been programmed, perform a blank check and calculate a checksum. Click "Device&
4.6 User Program Mode In the user program mode, the user area can be programmed or erased. The user boot area cannot be programmed or erased. 4.6.1
4.6.2 Setting the User Program Mode Select the "Device" tab in the configure project window and double-click "Connection" and &qu
Set the connection type. Select "USER Program Mode" in "Select Connection:." Set the baud rate to 9600 bps. When you have set the
Set the pins on the adapter board (FDM) for the user boot mode. For example, set the output of FWx to high (1) and that of MD2 to low (0). In this exa
The user program mode has been set. 68
4.6.3 Connecting the Device Click "Device" to open the pull-down menu and click "Connect to Device(C)." Select the adapter board
4.6.4 Programming Write a program in the user area in the user program mode. Click the right mouse button on file 2378F.mot to display the pop-up menu
You can check that the program has been downloaded to the user area. 71
7.1.2 I/O Register Definition (io2378.h) ... 84 7.1.3 Macro D
4.6.5 Blank Check and Checksum To confirm that the user area has been programmed, perform a blank check and calculate a checksum. Click "Device&
5. Flash Development Toolkit Processing The Flash Development Toolkit can be connected in either of the following two modes: the boot mode or the use
6. Sample Program This section describes the sample program in the user program mode of the H8S/2378F. 6.1 File Configuration The file configuration
6.2 Source Files The source files are listed in Table 6-1. Table 6-1 Source Files File File Name Description Baud rate BaudRate.src BRR calculati
6.3 Modules The modules are listed in Table 6-2. Table 6-2 Modules File Module Module Name Function BaudRate.src BRR calculation cal_brr Calcula
6.4 Module Hierarchical Structure The module hierarchical structure is shown in Figure 6-2. RESET_VECTOR (0x0000) Reset vector ⏐⎯startup (0x10
(Continued) ⏐⎯RamMain (0xFF4000) RAM main processing ⏐⎯ProcessCommand Command processing
(Continued) ⏐⎯ReadMemory Memory read ⏐ ⏐⎯UserBootSelect User boot area selection
6.5 Flow of the Program This section describes the flow of the sample program with referencing the module hierarchical structure. 6.5.1 Program Pro
6.5.2 Main Processing (main) The flow of main processing is shown below: (1) The reset vector causes a branch to start (startup). (2) Start (startu
1. Introduction This application note describes the following items with respect to the use of the Renesas Flash Development Toolkit and the use of th
6.5.4 RAM Main Processing (RamMain) The flow of RAM main processing (RamMain) is shown below: (1) Command processing (ProcessCommand) processes comm
7. Source Files of the Sample Program This section describes main source files of the sample program. 7.1 Header Files This sample program uses the
7.1.2 I/O Register Definition (io2378.h) The registers and bits related to the SCI module and ROM are defined. /*************************************
#define FECS (*(volatile unsigned char *)0xFFFFC6) #define FKEY (*(volatile unsigned char *)0xFFFFC8) #define FMATS (*(volatile unsigned char
7.2 Main Processing and ROM Main Processing 7.2.1 Module Hierarchical Structure The module hierarchical structure of main processing and ROM main
7.2.3 Transfer Start (Ugenu.c and rom2ram.src) The following modules are transferred from ROM to RAM according to the transfer table (rom2ram.src) wh
7.3 RAM Main Processing RAM main processing transfers a library, and erases and programs flash memory. This processing is executed in RAM. 7.3.1 Lib
(2) ScoBitSet The library transfer destination address is set in the FTDAR register and the SCO bit of the FCCS register is set to 1. At least four NO
7.3.2 Area Selection (FDTUMain.c) To select the user boot area or user area, FmatsUserBootMat (0xaa) or FmatsUserMat (0x00) is set in the FMATS regis
7.3.3 Flash Memory Erasing (FDTErase.c) (1) EraseInit The user area is selected, the operating frequency is specified, and the erasing library is ini
Commentaires sur ces manuels