FDM Quickstart Guide

RENESAS

Introduction

This guide is intended to help you to get started quickly when using the FDM. It will cover:

  1. How to install the software tools (FDT 2.2, Sample EDK kernels), plugging in the FDM for the first time.
  2. How to generate an FDT project which uses the FDM.
  3. How to physically connect the FDM to a target board and precautions of use.
  4. Example of connection using FDT with the FDM.

Software Installation

Note that Microsoft Windows 95 and Windows NT do not fully support USB and so cannot be used with the FDM.

Insert the Software Tools CDROM in your drive, it should automatically run the menu program. If it does not:

Once the menu program is running:

Once FDT is installed, it is possible to plug in the FDM to the PC USB port using the supplied USB A-B cable – the first time this is done it will install the driver: ensure that the FDM is not plugged into a target device before this first connection is made. Under Windows 98, Me, and 2000 the driver should install automatically without prompting for a driver disk. Under Windows XP the "Found New Hardware Wizard" will launch. Select "Install the software automatically" and click “Next” to complete the installation.

Once the driver has been successfully installed the red LED will illuminate continuously and the Green LED will begin to flash. The installed driver will be loaded each time the FDM is plugged in.

Note that the green LED will not flash if the driver is not installed correctly (e.g. FDT is not installed).

FDM Generic Installation CD

Thank you for purchasing a Renesas FDM. You can use this CD to install the development tools on your Windows PC.

Please select the FDM device from the list:

FDM

Manuals »

Online »

Install Tools »

Add FDM support

Please note that drivers for the USB interface can be found in the folder "Drivers" on this CD.

Welcome to the Found New Hardware Wizard

The CD's menu program will automatically detect if you need to install the Acrobat Reader when you first select a PDF document from the Manuals popup menu. Alternatively, you may install Acrobat Reader manually from the CD's menu program by selecting "Manuals »", "Acrobat Reader".

Generating a Test Project

Once you have installed the required software you can quit the menu program and start the Flash Development Toolkit (FDT). This example uses the EDK 2282 but the method is valid for other EDK's.

The project is now setup and the mode pin settings have been read from the flash configuration file for the selected kernel. The next stage is to connect the hardware.

Welcome to the FLASH Development Toolkit

Create a new Workspace

Open an existing Workspace

Open an existing Imagefile

Cancel

Physical connections and precautions of use

  1. Ensure that the EDK power is off and that the USB cable is not connected to the FDM.
  2. Set the EDK jumper settings to use the FDM. The RXDISn jumper should be set ON to disable the standard serial port. Check with the EDK user manual for other settings required (normally FWE devices need the UPM jumper on and FWP devices need the UPM jumper off). The EDK2282 requires RXDISn = ON and UPM = ON.
  3. Plug the 14 way ribbon cable into the FDM at one end and into the "FLASH PROGRAMMING” header on the EDK. Ensure that the correct header on the EDK is used (some EDK's have additional 14 way headers for other uses) and that the connector is orientated correctly.
  4. Switch on the power to the EDK. Ensure that the EDK is not in Boot mode. DO NOT ACTIVATE BOOT MODE as this could lead to contention of the mode pins; the FDM will control these.
  5. Plug the USB cable into the FDM.

The green LED will blink as follows:

FDM Repeating LED indication

Green LED USB Enumeration Success Target Connected IO Lines Active Serial Lines Active
ON (a) (b) (c) (d) (e) (f) (g) (h) (i)
OFF USB Enumeration Failure Target Not Connected IO Lines Inactive Serial Lines Inactive

a. Long blink (to show successful USB enumeration)

b. Long Pause

c. Short blink (to show UConnect made – EDK is connected)

d. Short Pause

e. Short blink (to show I/O lines voltage matching active)

f. Short Pause

g. Short blink (to show Serial lines voltage matching active)

h. Long Pause

i. Long Pause

FDM 14 way target connector pin out

TARGET BOARD

14-way IDC female - female

To FDM

1:1 ribbon cable

Pin 8: I/O voltage (UVCC)

Pin 9: Serial voltage (PVCC)

If PVCC not required by target board microcontroller, leave not connected.

Example of connection using FDT with the FDM

The following procedure explains how to connect and program the EDK using the FDM from FDT using the project setup in section 2:

  1. Select the menu item “Device”, “Connect to Device". FDT will now setup communications with the FDM, reset the target board into boot mode and boot the device. An example of the messages displayed (Advanced messaging) is shown below:

Connecting to device 'H8S/2282F' on 'FDM'

Configuration:

'BOOT Mode' connection using emulated interface

Opening port 'FDM'

FDM Reset Active

FDM Mode Pin Setting Active

FDM setting reset pin state: 0x40, 0x00

FDM setting reset pin direction: 0x40, 0x40

FDM setting pin state: 0xBF, 0x81

FDM setting pin direction: 0xBF, 0x85

FDM sending reset: 0x00, 0x00, 0x01, 0xF4

Querying FDM version info..

FDM v01.02, firmware 1.05, product 1.02, build 884

FDM SN: 00000 HMSE FDM

Initiating BOOT SCI sequence

Attempting 9600

Using micro-Kernel: 'C:\Program Files\Renesas\FDT2.2\Kernels\ProtB\2282\hitachi \1_0_00.edk\uGen2282.cde'

Downloading and verifying micro kernel...

micro-Kernel download successful

Changing baud rate to 57600 bps

Set baud rate value = 57600

Downloading main kernel C:\Program Files\Renesas\FDT2.2\Kernels\ProtB\2282\hitachi\1_0_00.edk\Genm2282.cde'

Main kernel download complete...

Connection complete

  1. Add the file(s) to be programmed to the project using “Project”, “Add Files to Project...”
  2. Build the device image using “Project”, “Build Device Image"
  3. Right click on the built image and select "Download Image to Device". An example of the messages is shown below:

Processing S-Record file :C:\TEMP\FDT76.tmp'

Data loaded at the following positions:

H'00000000 H'00000003

Length: H'00000004

H'00001000

H'0000111D

Length: H'0000011E

H'0001F600

H'0001FE4B

Length: H'0000084C

Downloaded the operation module

Writing image to device..

Data programmed at the following positions:

H'00000000 H'0000007F

Length: H'00000080

H'00001000

H'0000117F

Length: H'00000180

H'0001F600 H'0001FE7F

Length: H'00000880

2.63 K programmed in 1 seconds

Image successfully written to device

Download operation complete

Congratulations! You have successfully installed the software and programmed an EDK using the FDM. You can now select "Device”, “Disconnect from Device”. When asked if you want to reset the device, selecting “Yes” will reset the target board into User Mode where the programmed code will begin to execute. To continue learning about the tools and the board please read all other supporting documentation.

Technical Support

FDT is supplied as freeware without technical support. Technical support is limited to that which is provided on the Renesas Technology Europe's website at: http://www.eu.renesas.com/tools

Appendix:

Explanation of Flash Configuration File settings for FDM usage:

In each FDT 2.2 kernel directory there is a .fcf file for each supported device, which holds information about the device and kernel. The [Pin State] section holds details for setting the mode pins from the FDM. The fields are:

BootModeDirection, BootModeState, UserModeDirection, UserModeState and UserProgramModeState and represent a bit field as follows:

0x80 0x40 0x20 0x10 0x08 0x04 0x02 0x01
FWx RESERVED SCK MD4 MD3 MD2 MD1 MD0

(FWE/FWP) Dir must be 0

Where Direction 0=Input, Direction 1=Output. State (if Dir" is output) 0=Drive Output Low, State 1=Drive Output High

Eg. xxxxModeDirection = 0x87 sets the FWx, MD2, MD1 and MD0 pins as outputs,

xxxxModeState = 0x81 drives the FWx and MD0 pins high, and the MD2 and MD1 pins low for xxxxMode

WARNING – INCORRECT VALUES IN THE FCF FILE COULD RESULT IN DAMAGE TO THE HARDWARE

Note that editing a configuration file will render its checksum invalid. FDT will display a warning for fcf files with invalid checksums but will not prevent their use. Supplied kernels should not be edited; if different settings are required, it is suggested that the kernel directory should be copied to an alternative location and the kernel version should be changed in the fcf file (the directory name should match the kernel version). This prevents accidental corruption of the supplied kernels.

Models: FDM, Generic, FDM Generic

File Info : application/pdf, 4 Pages, 152.62KB

PDF preview unavailable. Download the PDF instead.

REN quick-start-flash-development-manual 20030519 SetaPDF-Merger Component v2.27.0.1196 ©Setasign 2005-2021 (www.setasign.com)

Related Documents

Preview Flash Development Toolkit User's Guide and Precautions
This document provides essential precautions and usage guidelines for the Flash Development Toolkit (FDT). It covers topics such as user registration, handling communication timeouts, baud rate selection, device-specific settings, and troubleshooting common issues encountered during development and programming.
Preview Renesas FLASH Development Toolkit 3.06 User's Manual - Programming System Guide
User's Manual for the Renesas FLASH Development Toolkit (FDT) version 3.06, a comprehensive programming system for Renesas microcomputers. Learn about features, interface, and operations for Windows platforms.
Preview Renesas Flash Programmer V3.08 User's Manual - Flash Memory Programming Software
Comprehensive user's manual for Renesas Flash Programmer V3.08, detailing its features for programming flash memory on Renesas MCUs. Covers setup, operation, system requirements, and troubleshooting with emulators like E1, E20, E2, E2 Lite, and J-Link.
Preview Renesas Flash Programmer: Command Line Usage Guide
Learn how to automate microcontroller programming with the Renesas Flash Programmer (RFP) using command-line interfaces. This guide covers setup, project files, batch files, and rfp-cli examples for various Renesas MCU families.
Preview Renesas RL78/G23 Engineer's Guide: Development Resources
A comprehensive guide for engineers developing with the Renesas RL78/G23 microcontroller. This document outlines necessary information and resources categorized by development phase, including MCU selection, design and evaluation, and mass production. It also provides a detailed list of application notes covering various peripheral functions, usage examples, and programming methods.
Preview Renesas Synergy™ NetX™ HTTP Server Module Guide
A comprehensive guide for developers on implementing and configuring the NetX™ HTTP Server module within the Renesas Synergy™ Platform, detailing features, APIs, operational aspects, and application examples for embedded systems.
Preview Renesas RZ/A2M Software Package Quick Start Guide
A comprehensive guide for developers on setting up and using the Renesas RZ/A2M Software Package with Renesas e² studio. Learn to import projects, build, debug, and integrate drivers and middleware for embedded system development.
Preview Renesas QE for Display [RX] Application Note: Guide to Embedded Display Development
This application note from Renesas provides a comprehensive guide to using QE for Display [RX], a plug-in for the e² studio IDE, for developing embedded systems with graphical displays on Renesas RX microcontrollers. Learn about GUI creation, display adjustment, and integration with emWin and AppWizard.