Getting Started R Flasher 7
Getting Started R Flasher 7
Document version
080317
Release date
March 2008
RFlasher
Contents
1. INTRODUCTION..............................................................................................................4
1.1 Overview............................................................................................................................................4
3. AUTO MODE..................................................................................................................11
3.1 Hardware configuration and file loading...........................................................................................11
3.2 Auto mode for one device................................................................................................................11
3.3 Auto mode for a batch of the same devices....................................................................................12
4. USING PROJECTS........................................................................................................14
4.1 Create a new project........................................................................................................................14
4.2 Add nodes to the project..................................................................................................................15
5. PROGRAMMER OPTIONS............................................................................................17
5.1 ST7...................................................................................................................................................17
5.1.1 ICC with RLink..........................................................................................................................17
5.1.2 RLink options section................................................................................................................17
5.1.3 ICC Mode Entry section............................................................................................................17
-2-
RFlasher
6. GLOSSARY....................................................................................................................22
-3-
RFlasher
1. Introduction
1.1 Overview
● RFlasher is a user-friendly Windows interface that allows you to program object files to a
microcontroller's flash memory.
● You can connect to microcontrollers in order to manage their non-volatile memory: erase, blank-
check, program from the PC memory used by RFlasher, or read-out to the PC memory used by
RFlasher.
● You can load object files into the PC memory that is used by RFlasher and then view, edit them
and save them.
● RFlasher also provides a configurable automatic mode for grouping commands (for example,
erase and program in one single click) and for mass programming (for example programming
multiple devices in sequence).
● RFlasher provides a third mode of operation: project mode. The project mode is slightly more
complex to use but offers more possibilities such as allowing you to save the configuration for
each application in case you have several different applications to handle. It also allows you to
create projects from several object files.
● RFlasher can be used to program microcontrollers in any of several supported families using the
connection protocol specific to each. The list of supported devices is not fixed and will increase
as time passes; it is available in the 'Project Options' section.
● This document provides information about RFlasher features that are common to all supported
targets and/or programming tools, general user information for the supported tools and device
families. For details about features that are specific to your target and/or programming tool,
please refer to the on-line help, after having selected your target device and programming tool.
-4-
RFlasher 2. First steps with RFlasher
-5-
RFlasher
If you close this pane, you can open it again by selecting the menu
'View'->'View Properties Window'.
If a device is not present in the list, then it means that RFlasher does not support it. Check for software
updates on the Raisonance website, as it might have been added since your software was built.
Please note the Flash memory start address for future reference:
-6-
RFlasher 2. First steps with RFlasher
You can load a file in any of the formats that Raisonance tools recognise as ready to program (HEX,
ELF, BIN, AOF ...).
Select your file, then click 'Open'.
The file's content is now displayed in the code view described below.
Code view is open by default in the main window, situated on the right of the screen. It displays the
code used in the project.
This window shows the code loaded in the PC memory that is used by RFlasher prior to programming
the target.
Illustration 2.1: Code view
-7-
RFlasher
After communication with the target device, a dialog box informs you of the result of the operation.
If the device is blank, you can jump directly to step 2.7; otherwise you must erase your device first.
2.6 Erase
Click on this button to erase your device's Flash memory prior to programming it:
You can do a blank check again after erasing to make sure your device is ready.
2.7 Program
You can program your device by clicking on this button:
The program operation consists of loading the content of the PC memory that is used by RFlasher
(initialized with “Load File”) into the target device's flash. After communicating with the device, a dialog
box informs you of the success of the operation.
-8-
RFlasher 2. First steps with RFlasher
2.9 Verify
Click on the "Verify" button to perform a strict verification of the program integrity in the Flash memory
by comparing its content with the program loaded in the PC memory, which is visible in the Memory
View:
2.10 Statistics
Depending on your hardware, you can click on this button to obtain statistics on the target. Usually this
includes the CheckSum.
If you go to the start address of Flash memory in the memory view, you should not longer see any data.
2.12 Read
Click on this button to copy the device's Flash memory content to the PC memory used by RFlasher:
This button allows RFlasher to dump (make an exact copy of) the device Flash memory into the
RFlasher memory view. To see the Flash memory, go to its start address using the “Search” field.
-9-
RFlasher
Enter the start and end addresses, then select “With file” and click on “Browse...”. Here you can
enter a file name such as “dump.hex”, and click on “Open”. Back in the “Fill or Save segment”
dialog box, click on the “Save” button. The file dump.hex is created, containing the memory dump in
Intel HEX format.
- 10 -
RFlasher 3. Auto Mode
3. Auto Mode
RFlasher provides an Automatic Mode in which you can define a sequence of operations to be
executed on a single click. This way, you can save a lot of time when processing a batch of devices for
instance.
Click on the “Configure” button to select the operations to include in your sequence.
Select the options you want, but uncheck the last one (“Loop”) for now. Click “OK” to validate your
choices.
- 11 -
RFlasher
Click on the “Go!” button to launch the auto mode sequence. Once the operations are completed, a
dialog box indicates the success or failure of the operations:
Select the “Configure” button again, and this time check the “Loop” option as if you had several
devices to program sequentially with the same program, and click “OK”.
When you select the “Go!” button, it launches the process. At the end of the sequence, a dialog box
asks you whether you want to program another device.
Illustration 3.3.:
- 12 -
RFlasher 3. Auto Mode
Illustration 3.4.:
- 13 -
RFlasher
4. Using projects
You may need to organize your work when using a programming software: for example to handle
different HEX files to load in the same device at different addresses, to insert references to documents,
etc.
In this case, you can gather your information and program files in a project for management within
RFlasher.
Important remark:
One of the main goals of Project management in RFlasher is to provide a way for restoring your
configuration: chosen target and associated options, object files to include, etc.
If you open a previously created project, all your options will be recovered and your Memory
content will be reloaded ( i.e. your object files will be mapped in memory).
Illustration 4.1.:
- 14 -
RFlasher 4. Using projects
Choose a project name such as “test1”. Select a working directory (for example
“C:\tmp\RFlasher7\test1”) and a Target family, then click “Finish”.
The next steps are related to your hardware configuration, please refer to chapter , section , page .
After configuring the hardware and clicking on Finish (section ), the project panel should appear on the
left side of the main window.
It is composed of three tabs, accessible via their titles on top of the active view:
● Project
● Programmer Views
● Documentation
Illustration 4.2.:
Repeat these steps for any object file or documentation file you want to include.
You can change the order of objects in the project display by selecting an object and pressing Shift+↑
or Shift+↓ to place your nodes in the expected order.
- 15 -
RFlasher
- 16 -
RFlasher 5. Programmer options
5. Programmer options
5.1 ST7
RFlasher supports most ST7 devices from ST.
The supported ST7 devices use the ICC protocol that has been designed for in-circuit programming
them. ST7 in-circuit programming tools use this protocol.
Option bytes control a variety of configurable features for ST7 Flash devices such as memory write
protection, clock source, watchdog and low voltage detection. RFlasher allows you to read, erase and
program the option bytes in the programmer specific panel. Please refer to the device datasheet for
more information about these bytes and their effect on the device. (watch out for read and write
protection bits)
Some ST7 devices (ST7Litexxx, ST726x, etc.) feature EEPROM-like memory called XFlash. These
devices do not need to be erased before programming them.
The other type of memory, HDFlash, is based on real Flash and needs proper erasing before
reprogramming.
Please refer to your device's documentation for information about its Flash memory type.
• View REva Jumpers: this opens a window containing pictures showing how to set the jumpers
on the RLink attached to the REva board for communicating with ST7 devices through ICC.
• Connect to RLink and read Serial Number: this connects to RLink and reads its serial
number. It is used to check the connection and the installation of the RLink USB driver.
Raisonance support team will need your RLink's serial number if you contact us.
● Ignore Option Bytes: when checked, RFlasher will first attempt to enter ICC mode using the
default option bytes. If unchecked, the first reset will be done using the custom option bytes. If
the first method fails, RFlasher will automatically attempt to enter ICC mode using the other
method.
You can refer to the ST application note “AN1813 In-Circuit Programming Considerations” for
more information on the ICC mode entry methods.
- 17 -
RFlasher
5.2 STR7
The STR7 family is a family of ARM-core based microcontrollers from ST. RFlasher supports most of
them.
They provide four JTAG pins that allow you to program them. Most programming tools use them.
Some STR7 devices (STR73x) also provide a UART bootloader that can be used for programming
them.
Most STR7 devices provide several boot modes (FLASH, RAM, BOOT, etc.), usually selected by
jumpers on the target board. Make sure that the correct mode is selected before attempting to use
RFlasher: you should select FLASH mode for JTAG FLASH programming. You should select BOOT
mode for using the bootloader. See the device and the target board's documentation for more
information.
This section is used to test the connections between the PC, the RLink, and the target device.
● View REva Jumpers: this opens a window containing pictures showing how to set the jumpers
on the RLink attached to the REva board for communicating with STR7 devices through JTAG.
Appears with RLink, not JTAGJet.
● Connect to Rlink: this connects to RLink and reads its serial number. It is used to check the
connection and the installation of the RLink USB driver. Raisonance support team will need
your RLink's serial number if you contact us. Appears with RLink, not JTAGJet.
● Connect to Target: this connects to the target via JTAG and checks the target's IdCode. Use
this to check that connections, power and the other options in this window are correctly set.
- 18 -
RFlasher 5. Programmer options
This section allows the application of a mask on the sectors to be affected by the commands.
BxSy: Each checkbox corresponds to one sector. When the box is checked, the sector will be affected
by the commands. Otherwise, the sector will be skipped. x is the bank number and y is the sector
number in this bank.
See the device datasheet for the precise definition of the sectors.
If your STR7 device is chained with other JTAG devices, describe the JTAG chain in this section.
• Single Device: check this box if the STR7 is NOT chained with other JTAG devices.
Unchecking this is like setting DRB=0, IRB=0, DRA=0, IRA=0. (see below)
• Chain Parameters: this is the actual description of the chain. There are four parameters
needed to be able to communicate with the STR7 device:
• DRB & DRA: This is the number of devices before and after the target STR7.
• IRB & IRA: This is the sum of the lengths of the IR registers of the devices before and after
the target.
Example:
If the chain contains two devices before the STR7, the first with IRlength=4 and the second with
IRlength=6, then you should configure the parameters like this: DRB=2, IRB=10, DRA=0, IRA=0.
- 19 -
RFlasher
5.2.1.6 Presentation
5.2.1.7 Options
Depending on the target's clock speed, you might want to use a lower speed than the maximum
available. Please refer to the device datasheet for more information.
5.2.1.8 Operation
● Connection: when these options are correctly set, just follow these steps:
1. Power the target board.
2. Select the jumpers for entering bootloader (or "system") mode.
3. Connect the serial cable between the selected port of the PC and the UART0 of the target
device.
● Reset: then, you must reset the target board before each operation (erase, program, blank-
check, etc.).
• Command-Line: the STR730_pgm.exe program installed with RIDE allows performing the
same operations from the command-line. Launch it without argument in order to see the
help that will tell you how to use it.
- 20 -
1
RFlasher 5. Programmer options
Telephone: +33 4 76 61 02 30
Fax: +33 4 76 41 81 68
Email: [email protected]
If you find any errors or omissions, or if you have suggestions for improving this manual, please let us
know by emailing: [email protected]
- 21 -
RFlasher
6. Glossary
The hardware used to send code from a workstation to the target microcontroller, ie to write the code
into the microcontroller Flash memory.
Target
The microcontroller or embedded device on which the current program is meant to run. The target is
connected to the workstation running RFlasher via the programming tool.
History
Author Date Modification
- 22 -
RFlasher 6. Glossary
Disclaimer
Disclaimer
Information in this document is subject to change without notice and does not represent a
commitment on the part of the manufacturer. The software described in this document is provided
under license and may only be used or copied in accordance with the terms of the agreement. It is
illegal to copy the software onto any medium, except as specifically allowed in the license or
nondisclosure agreement.
No part of this manual may be reproduced or transmitted in any form or by any means, electronic
or mechanical, including photocopying, recording, or information storage and retrieval systems,
for any purpose other than the purchaser’s personal use, without prior written permission.
Every effort has been made to ensure the accuracy of this manual and to give appropriate credit
to persons, companies and trademarks referenced herein.
Please check the printed version against the .pdf installed on the computer in the Ride installation
directory, for the most up-to-date version.
The examples of code used in this document are for illustration purposes only and accuracy is not
guaranteed. Please check the code before use.
- 23 -