Segger Flasher ATE User manual

Flasher ATE
User Guide
Document: UM08035
Manual Version: 1.04
Revision: d
Date: November 12, 2018
A product of SEGGER Microcontroller GmbH
www.segger.com

2
Disclaimer
Specifications written in this document are believed to be accurate, but are not guaranteed 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 (SEG-
GER) assumes no responsibility for any errors or omissions. SEGGER makes and you receive no
warranties or conditions, express, implied, statutory or in any communication with you. SEGGER
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 SEGGER. The software described in this document is furnished under a
license and may only be used or copied in accordance with the terms of such a license.
© 2017-2018 SEGGER Microcontroller GmbH, Monheim am Rhein / 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 respective holders.
Contact address
SEGGER Microcontroller GmbH
Ecolab-Allee 5
D-40789 Monheim am Rhein
Germany
Tel. +49-2173-99312-0
Fax. +49-2173-99312-28
E-mail: [email protected]
Internet: www.segger.com
Flasher ATE User Guide (UM08035) © 2017-2018 SEGGER Microcontroller GmbH

3
Manual versions
This manual describes the Flasher ATE device.
For further information on topics or routines not yet specified, please contact us.
Print date: November 12, 2018
Manual
version Revision Date By Description
1.04 d 1801112 MF
updated power supply chapter, corrected #auto patch
command, added commands #auto nopatch, #fwversion,
#fwversionmod
1.04 b 1801031 MF added firmware version command
1.04 a 1801025 MF added serial number command
1.03 a 1800926 MF updated command samples and Universal Flash Loader
chapter
1.00 f 1800724 MF Corrected selmodule command parameters, relayouted
some commands sections
1.00 e 1800627 MF Corrected poweron command parameters
1.00 4 1800427 MF Corrections after review
1.00 3 180403 MF Corrections after review
1.00 2 180326 MF Corrections after review
1.00 1 180323 MF Extracted from Flasher Manual
Extraction from Flasher manual, adding section setting up a project
Flasher ATE User Guide (UM08035) © 2017-2018 SEGGER Microcontroller GmbH

4
Flasher ATE User Guide (UM08035) © 2017-2018 SEGGER Microcontroller GmbH

5
About this document
Assumptions
This document assumes that you already have a solid knowledge of the following:
• The software tools used for building your application (assembler, linker, C compiler).
• The C programming language.
• The target processor.
• DOS command line.
If you feel that your knowledge of C is not sufficient, we recommend The C Programming Lan-
guage by Kernighan and Richie (ISBN 0–13–1103628), which describes the standard in C pro-
gramming and, in newer editions, also covers the ANSI C standard.
How to use this manual
This manual explains all the functions and macros that the product offers. It assumes you have
a working knowledge of the C language. Knowledge of assembly programming is not required.
Typographic conventions for syntax
This manual uses the following typographic conventions:
Style Used for
Body Body text.
Keyword Text that you enter at the command prompt or that appears on
the display (that is system functions, file- or pathnames).
Parameter Parameters in API functions.
Sample Sample code in program examples.
Sample comment Comments in program examples.
Reference Reference to chapters, sections, tables and figures or other doc-
uments.
GUIElement Buttons, dialog boxes, menu names, menu commands.
Emphasis Very important sections.
Flasher ATE User Guide (UM08035) © 2017-2018 SEGGER Microcontroller GmbH

6
Flasher ATE User Guide (UM08035) © 2017-2018 SEGGER Microcontroller GmbH

7
Table of contents
1 Introduction ..................................................................................................................10
1.1 Flasher ATE overview ....................................................................................11
1.1.1 Features of the Flasher ATE ................................................................11
1.1.2 Working environment .........................................................................11
1.2 Specifications ...............................................................................................13
1.2.1 Specifications for Flasher ATE ............................................................. 13
1.2.1.1 Supported CPU cores .............................................................. 14
1.2.1.2 Supported Target interfaces .....................................................14
2 Working with the Flasher ATE ....................................................................................15
2.1 The Flasher ATE ...........................................................................................16
2.1.1 Power supply .................................................................................... 17
2.1.1.1 Mainboard and module power supply ........................................ 17
2.1.1.2 Target power supply ............................................................... 18
2.2 Setting up the IP interface ............................................................................ 19
2.2.1 Connecting for the first time .............................................................. 19
2.3 Operating modes ......................................................................................... 21
2.3.1 Remote-controlled mode .................................................................... 21
2.3.2 Handshake mode .............................................................................. 23
2.4 LED status indicators ....................................................................................24
2.4.1 Mainboard LED indicators ................................................................... 24
2.4.2 Module LED indicators ....................................................................... 24
2.5 Flasher ATE storage ......................................................................................25
2.6 UART to TCP transceiver ............................................................................... 26
2.7 Log files ......................................................................................................27
2.8 Newline encoding ......................................................................................... 28
3 Setting up a project for the Flasher ATE ....................................................................29
3.1 Setting up Flasher ATE for remote-controlled mode .......................................... 30
3.2 Setting up Flasher ATE for handshake mode .................................................... 32
3.3 Universal Flash Loader mode .........................................................................33
3.3.1 Preparing manually ........................................................................... 33
3.3.1.1 Configuration ......................................................................... 33
3.3.1.2 Configuration Data for Renesas RL78/G10 ................................. 36
3.3.1.3 Configuration Data for Renesas RL78 (except RL78/G10) ............. 36
3.3.1.4 Configuration Data for ST STM8 ............................................... 37
3.3.1.5 Configuration Data for TI MSP430: 1xx, 2xx and 4xx series ..........38
3.3.1.6 Configuration Data for TI MSP430: 5xx and 6xx series ................ 38
3.3.2 Preparing using the PC utility ............................................................. 40
Flasher ATE User Guide (UM08035) © 2017-2018 SEGGER Microcontroller GmbH

8
3.3.3 Connection for Device with no special Adapter ...................................... 41
3.3.3.1 Connecting a I2C Device ......................................................... 41
4 Serial number handling ...............................................................................................42
4.1 Serial number programming .......................................................................... 43
4.1.1 Serial number settings .......................................................................43
4.1.2 Continuous Serial numbers .................................................................44
4.1.3 Serial number list file ........................................................................ 44
4.1.4 Programming process ........................................................................ 45
4.1.5 Sample setup ................................................................................... 46
4.2 Limiting the number of programming cycles .................................................... 48
4.2.1 Changed fail/error LED indicator behavior ............................................ 48
5 Patch data file .............................................................................................................49
5.1 Patch file support .........................................................................................50
6 FTP Server ..................................................................................................................51
6.1 FTP server connection .................................................................................. 52
6.1.1 Access data ...................................................................................... 52
7 Web server ..................................................................................................................53
7.1 Web server features ..................................................................................... 54
8 Remote control ............................................................................................................55
8.1 Overview .....................................................................................................56
8.2 Handshake control ....................................................................................... 57
8.3 ASCII command interface ............................................................................. 59
8.3.1 Introduction ......................................................................................59
8.3.2 General command and reply message format ....................................... 59
8.3.3 General usage .................................................................................. 59
8.3.4 Settings for ASCII interface via RS232 .................................................59
8.3.5 Settings for ASCII interface via Telnet ................................................. 59
8.3.6 Commands and replies ...................................................................... 61
8.3.6.1 Commands to the Flasher ....................................................... 62
8.3.6.1.1 Command #AUTO ....................................................... 62
8.3.6.1.2 Command #AUTO NOPATCH ......................................... 63
8.3.6.1.3 Command #AUTO PATCH ............................................. 64
8.3.6.1.4 Command "#BAUDRATE" ..............................................65
8.3.6.1.5 Command #CANCEL .................................................... 66
8.3.6.2 Replies from Flasher ATE .........................................................84
9 Hardware .....................................................................................................................86
9.1 Flasher ARM 20-pin JTAG/SWD Connector ....................................................... 87
9.1.1 Pinout JTAG ......................................................................................87
9.1.2 Pinout SWD ......................................................................................88
9.1.3 Target power supply .......................................................................... 89
9.2 Target board design ..................................................................................... 90
9.2.1 Pull-up/pull-down resistors ................................................................. 90
9.2.2 RESET, nTRST ...................................................................................90
9.3 Adapters ..................................................................................................... 91
9.3.1 JTAG Isolator ....................................................................................91
9.3.1.1 Pinout ................................................................................... 91
9.3.2 J-Link Needle Adapter ........................................................................92
9.3.3 Flasher RX 14-pin Adapter ................................................................. 92
9.3.3.1 Target power supply ............................................................... 93
9.3.4 Flasher PPC 14-pin adapter ................................................................ 94
Flasher ATE User Guide (UM08035) © 2017-2018 SEGGER Microcontroller GmbH

9
10 Support and FAQs ....................................................................................................95
10.1 Contacting support ..................................................................................... 96
10.2 Frequently Asked Questions .........................................................................97
11 Mechanics .................................................................................................................98
12 Glossary ....................................................................................................................99
13 Literature and references ........................................................................................103
Flasher ATE User Guide (UM08035) © 2017-2018 SEGGER Microcontroller GmbH

Chapter 1
Introduction
This chapter provides a short overview about the the Flasher ATE its features.
Flasher ATE User Guide (UM08035) © 2017-2018 SEGGER Microcontroller GmbH

11 CHAPTER 1 Flasher ATE overview
1.1 Flasher ATE overview
Flasher ATE is a programming tool for micro controllers with on-chip or external flash mem-
ory. Flasher ATE is designed for programming flash targets in stand-alone mode or remote
controlled via a PC.
Flasher ATE connects to a PC using the USB / Ethernet / RS232 interface, running Windows
7, Windows 8 or Windows 10. In stand-alone mode, Flasher ATE can be driven by telnet
interface, or via the RS232 interface (handshake control or ASCII interface). Flasher ATE has
a 20-pin connector, which supports the following target interfaces: JTAG or SWD. Various
interface adapters, sold separately, are available.
1.1.1 Features of the Flasher ATE
• Supports up to 10 individual channels.
• Stand-alone JTAG/SWD programmer (Once set up, Flasher can be controlled without
the use of a PC program).
• Flexible power supply (USB, DC).
• 128 MB memory for storage of target program on each module.
• Data files can be updated via the integrated FTP server.
• Target interface: JTAG, SWD or SWIM.
Supported cores Supported
target interfaces Flash programming speed
(depending on target hardware)
ARM7/ARM9/Cortex-M, Renesas
RX610, RX621, RX62N, RX62T,
Power PC e200z0, STM8, PIC16,
AVR XMEGA
ICSP, I2C,
JTAG, PDI,
SWD, SWIM
between 30-300 Kbytes/ second
1.1.2 Working environment
General
The Flasher ATE can be operated from a PC with an appropriate software like J-Flash or
in stand-alone mode.
Host System
IBM PC/AT or compatible CPU: 486 (or better) with at least 128MB of RAM, running Mi-
crosoft Windows 7, Windows 8, or Windows 10. It needs to have a USB, Ethernet, or RS232
interface available for communication with the Flasher ATE.
Power supply
The system is powered via the mainboard. The supply voltage needs to be in the range
from 4.8V to 5.25V. If the supply voltage exceeds these limits, the mainboard immediately
shuts down the power supply for the connected modules for safety reasons.
Current consumption (typical)
Mainboard
5V DC connector (VMAIN) 100 mA (no flasher module connected, no
USB, no Ethernet)
5V DC connector (VMAIN) 180 mA (no flasher module connected,
USB and Ethernet connected)
USB (not applicable for hardware V1.1) 100 mA (no flasher module connected, no
USB, no Ethernet)
USB (not applicable for hardware V1.1) 180 mA (no flasher module connected,
USB and Ethernet connected)
Flasher ATE User Guide (UM08035) © 2017-2018 SEGGER Microcontroller GmbH

12 CHAPTER 1 Flasher ATE overview
Module
5V via Flasher ATE Bus (VCC5V) 100 mA (no target power supply)
5V via Flasher ATE Bus (VCC5V) 220 mA (target power supply with 100mA)
Note
Many USB power supplies have a high drop on the supply voltage if they operate at
their power limit. We recommend the DC connector and a DC power supply when
operating the Flasher ATE.
Flasher PC-software (J-Flash)
The latest version of the J-Flash software, which is part of the J-Link software and docu-
mentation package, can be downloaded from our website:
https://www.segger.com/jlink-software.html For more information about using J-Flash,
please refer to UM08003_JFlash.pdf (J-Flash user guide) which is also available for down-
load on our website.
Universal Flash Loader Configurator software
The latest version of the Universal Flash Loader Configurator software can always be down-
loaded from our website:
https://www.segger.com/downloads/flasher
This software is only needed if your CPU requires the usage of the Universal Flash Loader.
Flasher ATE User Guide (UM08035) © 2017-2018 SEGGER Microcontroller GmbH

13 CHAPTER 1 Specifications
1.2 Specifications
1.2.1 Specifications for Flasher ATE
General
Supported OS
Microsoft Windows 7
Microsoft Windows 7 x64
Microsoft Windows 8
Microsoft Windows 8 x64
Microsoft Windows 10
Microsoft Windows 10 x64
Operating Temperature +5 °C … +60 °C
Storage Temperature -20 °C … +65 °C
Relative Humidity (non-condensing) <90% rH
Safety notes For indoor use only.
Mechanical mainboard
Size (without cables) 108mm x 56mm x 20mm
Weight (without cables) 47g
Mechanical module
Size (without cables) 108mm x 35mm x 20mm
Weight (without cables) 24g
Available interfaces
USB Host interface USB 2.0, high speed
Ethernet Host interface 10/100 MBit
RS232 Host interface RS232 9-pin
Target connector (module) JTAG 20-pin 0.1 pitch (interface adapters
available)
JTAG Interface, Electrical
Power Supply USB powered or via external power supply
(5V), max. 3A using 10 modules
Target interface voltage (VIF) 1.2 … 5V
Target supply voltage 3 - 15V (5V with no additional supply.)
Target supply current 100 mA (VCC5V - 5V)
400 mA (VTGT - 3 … 15V)
Reset Type Open drain. Can be pulled low or tristated
Reset low level output voltage (VOL) VOL ≤ 10% of VIF
For the whole target voltage range (1.2V ≤VIF ≤5V)
LOW level input voltage (VIL) VIL ≤ 40% of VIF
HIGH level input voltage (VIH) VIH ≥ 60% of VIF
For 1.2V ≤VIF ≤3.6V
LOW level output voltage (VOL) with a load
of 10 kOhm VOL ≤ 10% of VIF
HIGH level output voltage (VOH) with a
load of 10 kOhm VOH ≥ 90% of VIF
For 3.6 ≤VIF ≤5V
LOW level output voltage (VOL) with a load
of 10 kOhm VOL ≤ 20% of VIF
Flasher ATE User Guide (UM08035) © 2017-2018 SEGGER Microcontroller GmbH

14 CHAPTER 1 Specifications
HIGH level output voltage (VOH) with a
load of 10 kOhm VOH ≥ 80% of VIF
JTAG Interface, Timing
Max. JTAG speed up to 15MHz
Data input rise time (Trdi) Trdi ≤ 20ns
Data input fall time (Tfdi) Tfdi ≤ 20ns
Data output rise time (Trdo) Trdo ≤ 10ns
Data output fall time (Tfdo) Tfdo ≤ 10ns
Clock rise time (Trc) Trc ≤ 10ns
Clock fall time (Tfc) Tfc ≤ 10ns
1.2.1.1 Supported CPU cores
The Flasher ATE supports the following CPU cores:
ARM Cortex
• Cortex-M0
• Cortex-M0+
• Cortex-M1
• Cortex-M23
• Cortex-M3
• Cortex-M33
• Cortex-M4
• Cortex-M7
ARM (legacy cores)
• ARM7
• ARM9
• ARM11
Renesas RX
• RX610
• RX621
• RX62G
• RX62N
• RX62T
Freescale Power PC
• e200z0
ST
• STM8
TI
• MSP430
1.2.1.2 Supported Target interfaces
The Flasher ATE supports the following target interfaces:
• JTAG
• SWD
• SWIM
Flasher ATE User Guide (UM08035) © 2017-2018 SEGGER Microcontroller GmbH

Chapter 2
Working with the Flasher ATE
This chapter describes functionality and how to use the Flasher ATE.
Flasher ATE User Guide (UM08035) © 2017-2018 SEGGER Microcontroller GmbH

16 CHAPTER 2 The Flasher ATE
2.1 The Flasher ATE
The Flasher ATE has been designed to be used in conjunction with automated test equip-
ment (ATE). It is modular and scalable from 1 to 10 individual programming modules.
Flasher ATE User Guide (UM08035) © 2017-2018 SEGGER Microcontroller GmbH

17 CHAPTER 2 The Flasher ATE
2.1.1 Power supply
2.1.1.1 Mainboard and module power supply
The Flasher ATE mainboard and the modules are powered either by a dedicated power
connector (VMAIN) or by USB. The power source may not be switched while the Flasher
ATE is running.
Flasher ATE User Guide (UM08035) © 2017-2018 SEGGER Microcontroller GmbH

18 CHAPTER 2 The Flasher ATE
2.1.1.2 Target power supply
For target power supply, the Flasher ATE offers two options. Additionally, a power discharge
option is available. The target is electrically isolated from the mainboard’s power supply.
The first option is to use the VTGT connector. It is possible to provide any voltage between
3 and 15V, however the target interface is limited to 1.2V - 5V signal voltage. The VTGT
connector is directly coupled to the target, so any electrical isolation has to be done in the
external power supply.
The second option is to use the module’s internal power source VCC5V, which is able to
deliver up to 100mA to the target.
The power discharge option applies, when the operation has finished. A 220 ohms resistor
is used to discharge any remaining charge on the target’s capacitors. As the thermal load
of the resistor is limited, the target’s capacity may not exceed 27mF at 15V or 250mF at
5V supply voltage.
Note
There is no protection against overload when using the internal power source.
Flasher ATE User Guide (UM08035) © 2017-2018 SEGGER Microcontroller GmbH

19 CHAPTER 2 Setting up the IP interface
2.2 Setting up the IP interface
The Flasher ATE comes with an additional Ethernet interface to communicate with the host
system. The Flasher ATE has a built-in webserver which allows some basic setup of the
emulator, e.g. configuring a default gateway which allows using it even in large intranets.
2.2.1 Connecting for the first time
When connecting Flasher ATE for the first time, it attempts to acquire an IP address via
DHCP. The recommended way for finding out which IP address has been assigned to Flasher
ATE is to use the J-Link Configurator. The J-Link Configurator is a small GUI-based utility
which shows a list of all emulators that are connected to the host PC via USB and Ethernet.
For more information about the J-Link Configurator, please refer to UM08001_JLink.pdf (J-
Link / J-Trace user guide), chapter Setup, section J-Link Configurator.
The picture shows the J-Link Configurator with the detected Flasher ATEs. Select the one
you want to configure.
You may configure your Flasher ATE to use your preferred IP setting. This is done by se-
lecting the Flasher ATE in the list, opening the context menu with a right click on the list
entry, and choosing Configure from the context menu. Enter your required IP settings in
the dialog box that opens up, e.g. as shown in the next picture. Confirm the IP settings
by pressing OK.
Flasher ATE User Guide (UM08035) © 2017-2018 SEGGER Microcontroller GmbH

20 CHAPTER 2 Setting up the IP interface
Flasher ATE User Guide (UM08035) © 2017-2018 SEGGER Microcontroller GmbH
Other manuals for Flasher ATE
1
Table of contents
Other Segger Motherboard manuals