J-Flash STM 8
User guide of the stand-alone
flash programming software
Software Version 1.00
Manual Rev. 0
Date: December 10, 2009
Document: UM05007
A product of SEGGER Microcontroller GmbH & Co. KG
www.segger.com
2
Disclaimer
Specifications written in this document are believed to be accurate, but are not guar-
anteed to be entirely free of error. The information in this manual is subject to
change for functional or performance improvements without notice. Please make sure
your manual is the latest edition. While the information herein is assumed to be
accurate, SEGGER Microcontroller GmbH & Co. KG (the manufacturer) assumes no
responsibility for any errors or omissions. The manufacturer makes and you receive
no warranties or conditions, express, implied, statutory or in any communication with
you. The manufacturer specifically disclaims any implied warranty of merchantability
or fitness for a particular purpose.
Copyright notice
You may not extract portions of this manual or modify the PDF file in any way without
the prior written permission of the manufacturer. The software described in this doc-
ument is furnished under a license and may only be used or copied in accordance
with the terms of such a license.
©
2002 - 2009 SEGGER Microcontroller GmbH & Co. KG, Hilden / Germany
Trademarks
Names mentioned in this manual may be trademarks of their respective companies.
Brand and product names are trademarks or registered trademarks of their respec-
tive holders.
Contact address
SEGGER Microcontroller GmbH & Co. KG
In den Weiden 11
D-40721 Hilden
Germany
Tel.+49 2103-2878-0
Fax.+49 2103-2878-28
Email: support@segger.com
Internet: http://www.segger.com
Manual versions
This manual describes the latest software version. If any error occurs, please inform
us and we will try to assist you as soon as possible.
For further information on topics or routines not yet specified, please contact us.
Manual version
1.00
Date
091210
By
OO
Initial Version
Explanation
Table: List of manual versions
Software versions
Refers to Release.html for information about the changes of the software versions.
J-Flash STM 8 (UM05007)
© 2004-2009 SEGGER Microcontroller GmbH & Co. KG
3
About this document
Assumptions
This document assumes that you already have a solid knowledge of the following:
•
•
The target processor
DOS command line.
How to use this manual
This manual explains all the functions that J-Flash offers.
Typographic conventions for syntax
This manual uses the following typographic conventions:
Style
Body
Keyword
Parameter
Sample
Used for
Body text.
Text that you enter at the command-prompt or that appears on the
display (that is system functions, file- or pathnames).
Parameters in API functions.
Sample code in program examples.
Reference to chapters, tables and figures or other documents.
Buttons, dialog boxes, menu names, menu commands.
Very important sections
Reference
GUIElement
Emphasis
Table 1.1: Typographic conventions
J-Flash STM 8 (UM05007)
© 2004-2009 SEGGER Microcontroller GmbH & Co. KG
4
SEGGER Microcontroller GmbH & Co. KG
develops
and distributes software development tools and ANSI
C software components (middleware) for embedded
systems in several industries such as telecom, medi-
cal technology, consumer electronics, automotive
industry and industrial automation.
SEGGER’s intention is to cut software development-
time for embedded applications by offering compact flexible and easy to use middleware,
allowing developers to concentrate on their application.
Our most popular products are emWin, a universal graphic software package for embed-
ded applications, and embOS, a small yet efficent real-time kernel. emWin, written
entirely in ANSI C, can easily be used on any CPU and most any display. It is comple-
mented by the available PC tools: Bitmap Converter, Font Converter, Simulator and
Viewer. embOS supports most 8/16/32-bit CPUs. Its small memory footprint makes it
suitable for single-chip applications.
Apart from its main focus on software tools, SEGGER developes and produces program-
ming tools for flash microcontrollers, as well as J-Link, a JTAG emulator to assist in devel-
opment, debugging and production, which has rapidly become the industry standard for
debug access to ARM cores.
Corporate Office:
http://www.segger.com
United States Office:
http://www.segger-us.com
EMBEDDED SOFTWARE
(Middleware)
emWin
Graphics software and GUI
emWin is designed to provide an effi-
cient, processor- and display control-
ler-independent graphical user
interface (GUI) for any application that
operates with a graphical display.
Starterkits, eval- and trial-versions are
available.
SEGGER TOOLS
Flasher
Flash programmer
Flash Programming tool primarily for microcon-
trollers.
J-Link
JTAG emulator for ARM cores
USB driven JTAG interface for ARM cores.
embOS
Real Time Operating System
embOS is an RTOS designed to offer
the benefits of a complete multitasking
system for hard real time applications
with minimal resources. The profiling
PC tool embOSView is included.
J-Trace
JTAG emulator with trace
USB driven JTAG interface for ARM cores with
Trace memory. supporting the ARM ETM (Embed-
ded Trace Macrocell).
J-Link / J-Trace Related Software
Add-on software to be used with SEGGER’s indus-
try standard JTAG emulator, this includes flash
programming software and flash breakpoints.
Table 1.1:
emFile
File system
emFile is an embedded file system with
FAT12, FAT16 and FAT32 support.
emFile has been optimized for mini-
mum memory consumption in RAM and
ROM while maintaining high speed.
Various Device drivers, e.g. for NAND
and NOR flashes, SD/MMC and Com-
pactFlash cards, are available.
emUSB
USB device stack
A USB stack designed to work on any
embedded system with a USB client
controller. Bulk communication and
most standard device classes are sup-
ported.
J-Flash STM 8 (UM05007)
© 2004-2009 SEGGER Microcontroller GmbH & Co. KG
5
Table of Contents
1 Introduction ......................................................................................................................7
1.1
1.1.1
1.2
1.3
1.3.1
1.3.2
What is J-Flash? ........................................................................................8
Features...................................................................................................8
Assumptions .............................................................................................9
Requirements.......................................................................................... 10
Host ...................................................................................................... 10
Target.................................................................................................... 10
2 Getting Started...............................................................................................................11
2.1
2.1.1
2.2
2.2.1
2.3
Setup..................................................................................................... 12
What is included? .................................................................................... 12
Using J-Flash for the first time................................................................... 13
Sample Projects ...................................................................................... 14
Menu structure........................................................................................ 15
3 Settings ..........................................................................................................................19
3.1
3.1.1
3.1.1.1
3.1.2
3.1.2.1
3.1.2.2
3.1.3
3.1.3.1
3.1.3.2
3.1.3.3
3.1.4
3.2
3.2.1
3.2.1.1
3.2.1.2
3.2.1.3
3.2.1.4
3.2.2
3.2.2.1
3.2.2.2
Project Settings....................................................................................... 20
General Settings...................................................................................... 20
TCP/IP ................................................................................................... 21
CPU Settings........................................................................................... 22
Device ................................................................................................... 22
Use target RAM ....................................................................................... 22
Flash Settings ......................................................................................... 23
Base Address .......................................................................................... 23
Organization ........................................................................................... 23
Sector selection....................................................................................... 23
Production settings .................................................................................. 24
Global Settings........................................................................................ 25
Operation ............................................................................................... 25
Disconnect after each operation................................................................. 25
Automatically unlock sectors ..................................................................... 25
Perform blank check ................................................................................ 25
Skip blank areas on read .......................................................................... 25
Logging .................................................................................................. 25
General log level ..................................................................................... 25
Enable Flasher logfile ............................................................................... 26
4 Command Line Interface................................................................................................27
4.1
4.2
4.3
Overview ................................................................................................ 28
Command line options.............................................................................. 29
Batch processing ..................................................................................... 30
5 Create a new J-Flash project .........................................................................................31
5.1
Creating a new J-Flash project................................................................... 32
6 Target systems ..............................................................................................................37
6.1
6.2
Which devices can be programmed by J-Flash? ............................................ 38
Supported Microcontrollers........................................................................ 39
J-Flash STM 8 (UM05007)
© 2004-2009 SEGGER Microcontroller GmbH & Co. KG