background image

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

Содержание Flasher ATE

Страница 1: ...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: ...y 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 describ...

Страница 3: ...ommand 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 so...

Страница 4: ...4 Flasher ATE User Guide UM08035 2017 2018 SEGGER Microcontroller GmbH...

Страница 5: ...ctions 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 use...

Страница 6: ...6 Flasher ATE User Guide UM08035 2017 2018 SEGGER Microcontroller GmbH...

Страница 7: ...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 Flas...

Страница 8: ...ral 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 Co...

Страница 9: ...rt 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 Microcontro...

Страница 10: ...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: ...ed 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 environmen...

Страница 12: ...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_JFla...

Страница 13: ...in 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 interfac...

Страница 14: ...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 M...

Страница 15: ...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: ...er 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 UM08...

Страница 17: ...d 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...

Страница 18: ...ed 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 th...

Страница 19: ...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...

Страница 20: ...20 CHAPTER 2 Setting up the IP interface Flasher ATE User Guide UM08035 2017 2018 SEGGER Microcontroller GmbH...

Страница 21: ...shake mode The stand alone mode is controlled the 3 handshake lines 2 3 1 Remote controlled mode The remote controlled mode provides a way to integrate the Flasher ATE into a production environment an...

Страница 22: ...22 CHAPTER 2 Operating modes Flasher ATE User Guide UM08035 2017 2018 SEGGER Microcontroller GmbH...

Страница 23: ...sed to e g connect a start button and two indicator LEDs for programming control The following picture show the Flasher ATE internal logic and the signal states during the programming sequence Note Th...

Страница 24: ...PASS ERROR RED The last operation has failed on at least one mod ule 7 VMAIN GREEN VMAIN is used as module power supply 8 VUSB GREEN VUSB is used as module power supply1 1 The VUSB LED does not work...

Страница 25: ...ly 126MB for data and configuration files The files are stored on the Flash Modules They are mounted via the mainboard in sub folders named Module xxx with xxx being the number in the flash module cha...

Страница 26: ...erface is sent to the TCP connection and incoming data on the TCP connection is sent to pin 5 on the de bug interface The parameters for the UART configuration are handed over when activating the tran...

Страница 27: ...files Each flash module writes the success or error into the log file The log files are stored in the module folder of the corresponding flash module They can be downloaded using the FTP service Flash...

Страница 28: ...for all patch files init files etc Flasher ATE supports both newline encodings Windows r n Unix Mac n All parser functionality etc are written to be independent from the host operating system Flasher...

Страница 29: ...Chapter 3 Setting up a project for the Flasher ATE Flasher ATE User Guide UM08035 2017 2018 SEGGER Microcontroller GmbH...

Страница 30: ...en the appropriate J Flash project for the target the Flasher ATE shall be configured for by selecting File Open Project If J Flash does not come with an appropriate sample project for the desired har...

Страница 31: ...into the Flasher ATE module folder s If the J Flash tool also generates a pex file this also needs to be loaded into the module folder s But it must be located in a subfolder which must be named like...

Страница 32: ...ontrolled mode on page 30 first In addition you have to tell the Flasher ATE which project shall be programmed Therefore you can directly edit the FLASHER ini file in each modules folder or connect to...

Страница 33: ...col driver and data file to use It allows enabling and configuring target power and it defines which actions to perform The second part consists of one or more BANKx sections which contain information...

Страница 34: ...is provided by SEGGER and will typically support a series of devices Data File name of the data file to program The flasher supports the Flasher DTA the Intel HEX the Motorola S Record and the binary...

Страница 35: ...ere are no general parameters Note The data file must be organized in ascending address order Gaps can be included But descending addresses will result in programming errors You can sort the data file...

Страница 36: ...its default value allowing a higher programming speed Security Security configuration byte Item Contents Bit 7 Fixed to 1 Bit 6 Fixed to 1 Bit 5 Fixed to 1 Bit 4 Programming disable flag 1 Enable prog...

Страница 37: ...ected as follows Flasher Interface Signal Pin 1 VCCT Pin 2 VCCT Pin 4 GND Pin 6 GND Pin 8 GND Pin 9 SWIM Pin 10 GND Pin 12 GND Pin 14 GND Pin 15 Reset Pin 16 GND Pin 18 GND Pin 20 GND Note As the STM8...

Страница 38: ...he device please refer to the data sheet ClocksProgram Number of clocks required for a word programming operation This value depends on the device please refer to the data sheet 3 3 1 6 Configuration...

Страница 39: ...39 CHAPTER 3 Universal Flash Loader mode Flasher Interface Signal Pin 18 GND Pin 20 GND Flasher ATE User Guide UM08035 2017 2018 SEGGER Microcontroller GmbH...

Страница 40: ...devices and flash pro gramming algorithms If you are going to use a device from one of the supported families which currently is not available in the utility feel free to contact the support The funct...

Страница 41: ...1 Connecting a I2C Device Flasher ATE pins need to be connected as follows Flasher Interface Flasher Signal Name I2C Device Signal Name Pin 1 VTRef VCC Pin 7 TMS SWDIO SDA Pin 9 TCK SWCLK SCL Pin 4 6...

Страница 42: ...Chapter 4 Serial number handling This chapter describes how the Flasher ATE deals with serial numbers Flasher ATE User Guide UM08035 2017 2018 SEGGER Microcontroller GmbH...

Страница 43: ...o be specified and created by user Some generic information on how to setup Flasher ATE the J Flash project for serial number programming are provided below Note Full serial number programming support...

Страница 44: ...asher ATE using more than one flash module there are two options Use an increment of the channel number e g if you have 5 flash modules use an increment of 5 as well as 5 different SERIAL TXT files at...

Страница 45: ...n the project the remaining bytes are filled with 0s by Flasher ATE Note If the number of bytes specified in a line of the serial number list file is greater than the serial number length defined in t...

Страница 46: ...ven on how to setup Flasher ATE for serial number program ming In the following example 4 byte serial numbers starting at 1234567 0x12D687 shall be programmed at address 0x08001000 Defining serial num...

Страница 47: ...he Flasher ATE After setting up the rest of the configuration Target interface etc and selecting an ap propriate data file the configuration data and serial number file needs to be downloaded into Fla...

Страница 48: ...ramming cycles can be performed with the current setup Note The number in the Cntdown txt is only updated on a successful programming cycle Programming cycles that failed do not affect the Cntdown txt...

Страница 49: ...Chapter 5 Patch data file This chapter describes how the Flasher ATE can patch data files Flasher ATE User Guide UM08035 2017 2018 SEGGER Microcontroller GmbH...

Страница 50: ...ue is 4 Addr Describes the address to be patched Value is expected in hex NumBytes Number of bytes for the current patch Max value is 20h 32 in decimal Value is expected in hex Data Describes the data...

Страница 51: ...Chapter 6 FTP Server This chapter describes the FTP server features Flasher ATE User Guide UM08035 2017 2018 SEGGER Microcontroller GmbH...

Страница 52: ...files The Flasher ATE setup files can also be uploaded or downloaded to the module folders The Flasher ATE writes a log file for executed operations This can be found in the modules folder and downlo...

Страница 53: ...Chapter 7 Web server This chapter describes the web server features Flasher ATE User Guide UM08035 2017 2018 SEGGER Microcontroller GmbH...

Страница 54: ...twork the IP address settings can be changed and a nick name can be assigned to the device Additionally the web interface provides information about the status of the integrated op erating system the...

Страница 55: ...Remote control This chapter describes how to control Flasher via the 9 pin serial interface connector or via the integrated Telnet interface Flasher ATE User Guide UM08035 2017 2018 SEGGER Microcontro...

Страница 56: ...Handshake lines 3 lines on the serial interface are used 1 line is an input and can be used to start operation 2 lines are outputs and serve as busy and status signals Terminal communication via RS232...

Страница 57: ...ior of the Auto function depends on the project settings chosen in J Flash at the Produc tion tab 4 BUSY As soon as the Auto function is started BUSY becomes active which means that transistor is swit...

Страница 58: ...8 Handshake control ASCII command interface described in the next chapter for the Flasher ATE as it gives better remote control capabilities Flasher ATE User Guide UM08035 2017 2018 SEGGER Microcontr...

Страница 59: ...e In general a new command must not be sent before a reply for the last one has been received The least the ACK needs to be received by the controlling application before sending a new command for a f...

Страница 60: ...60 CHAPTER 8 ASCII command interface Flasher ATE User Guide UM08035 2017 2018 SEGGER Microcontroller GmbH...

Страница 61: ...FORMAT Module1 Module2 FWVERSION FWVERSIONMOD Module1 Module2 POWERON Module1 Module2 PowerSource Discharge Mode POWEROFF Module1 Module2 PROGRAM Module1 Module2 PROTVER RESULT Module1 Module2 SELECT...

Страница 62: ...command using all modules which can be detected Results of the Flasher ATE Result Meaning OK successfully done ERRxxx if any error occurred during operation xxx represents the error code normally repl...

Страница 63: ...s the error code normally replied to Flasher PC program The ERRxxx message may be followed by an additional error text For further information about the usage of the AUTO PATCH command please refer to...

Страница 64: ...about the usage of the AUTO PATCH command please refer to Patch file support on page 50 Example sequence Command send to the Flasher ATE Reply on the main channel RS232 or telnet connection Reply on t...

Страница 65: ...seable characters ERR255 Baudrate is not supported the selected baud rate is not supported by the Flasher ATE e g it is to fast or slow Example sequence Command send to the Flasher ATE Reply on the ma...

Страница 66: ...nd structure Cancel module1 module2 module3 Results of the Flasher ATE Result Meaning ERR007 CANCELED successfully canceled the operation Example Command send to the Flasher ATE Reply on the main chan...

Страница 67: ...ERRxxx TEXT error message with text Example sequence Command send to the Flasher ATE Reply on the main channel RS232 or telnet connection Reply on the target channel telnet connection to flash module...

Страница 68: ...and structure FFORMAT module1 module2 module3 Example sequence Command send to the Flasher ATE Reply on the main channel RS232 or telnet connection Reply on the target channel telnet connection to fla...

Страница 69: ...inboard Command structure FWVERSION Example sequence Command send to the Flasher ATE Reply on the main channel RS232 or telnet connection Reply on the target channel telnet connection to flash module...

Страница 70: ...NMOD module1 module2 module3 Example sequence Command send to the Flasher ATE Reply on the main channel RS232 or telnet connection Reply on the target channel telnet connection to flash module FWVSERI...

Страница 71: ...her ATE will reply the following sequence of messages Example sequence Command send to the Flasher ATE Reply on the main channel RS232 or telnet connection Reply on the target channel telnet connectio...

Страница 72: ...rce 0 internal power 1 VTgt Discharge 1 discharge target when turning the power off needs to be set with the power on command 0 no discharge Example sequence Command send to the Flasher ATE Reply on t...

Страница 73: ...module1 module2 module3 Example sequence Command send to the Flasher ATE Reply on the main channel RS232 or telnet connection Reply on the target channel telnet connection to flash module POWEROFF 1...

Страница 74: ...le sequence Command send to the Flasher ATE Reply on the main channel RS232 or telnet connection Reply on the target channel telnet connection to flash module RESULT 1 2 3 ACK RESULT 1 OK Total 2 216s...

Страница 75: ...ject Name specifies the name of file pair without ex tensions CFG and DAT on the Flasher ATE modules which should be selected Flasher saves the selected configuration and data file in the FLASHER INI...

Страница 76: ...mainboard Command structure serial Example sequence Command send to the Flasher ATE Reply on the main channel RS232 or telnet connection Reply on the target channel telnet connection to flash module...

Страница 77: ...ALMOD module1 module2 module3 Example sequence Command send to the Flasher ATE Reply on the main channel RS232 or telnet connection Reply on the target channel telnet connection to flash module serial...

Страница 78: ...ation program Command structure START module1 module2 module3 Example sequence Command send to the Flasher ATE Reply on the main channel RS232 or telnet connection Reply on the target channel telnet c...

Страница 79: ...under Replies from Flasher ATE on page 84 Command structure STATUS module1 module2 module3 Example sequence Command send to the Flasher ATE Reply on the main channel RS232 or telnet connection Reply o...

Страница 80: ...o the Flasher ATE Reply on the main channel RS232 or telnet connection Reply on the target channel telnet connection to flash module VERIFY 1 2 3 ACK STATUS INITIALIZING STATUS CONNECTING STATUS VERIF...

Страница 81: ...e SETVTREF command expects the following parameters Parameter Meaning voltage level The IO voltage level for the target interface in mV Example sequence Command send to the Flasher ATE Reply on the ma...

Страница 82: ...e keyword all can be used SELMODULE ALL instead of a list with all module numbers Command structure SELMODULE module1 module2 module3 Example sequence Command send to the Flasher ATE Reply on the main...

Страница 83: ...N no parity 2 E even parity or 3 O odd parity Stop bits The stop bits parameter supports currently only 1 stop bit Example sequence Command send to the Flasher ATE Reply on the main channel RS232 or t...

Страница 84: ...ived OK Flasher replies with OK if a command other than STATUS or RESULT was executed and ended with no error OK Data Flasher replies with OK Len Data if a FREAD command was executed NumBytes is the n...

Страница 85: ...d other than STATUS or RESULT was terminated with an error Flasher ATE cancels the command and replies with an error message instead of OK message Some error codes may be followed by colon and an addi...

Страница 86: ...pter 9 Hardware This chapter gives an overview about Flasher ATE specific hardware details such as the pinouts and available adapters Flasher ATE User Guide UM08035 2017 2018 SEGGER Microcontroller Gm...

Страница 87: ...the target to avoid unintentional resets when there is no connection 5 TDI Output JTAG data input of target CPU It is recommended that this pin is pulled to a defined state on the target board Typical...

Страница 88: ...levels to the target It is normally fed from Vdd of the target board and must not have a series resistor 2 Vsupply NC This pin is not connected in Flasher ATE It is reserved for compatibility with ot...

Страница 89: ...pen on target hardware Pins 4 6 8 10 12 14 16 18 20 are GND pins connected to GND in Flasher ATE They should also be connected to GND in the target system 9 1 3 Target power supply Pin 19 of the conne...

Страница 90: ...re recommended to be between 2 2 kOhms and 47 kOhms 9 2 2 RESET nTRST The debug logic is reset independently from the CPU core with nTRST For the core to operate correctly it is essential that both si...

Страница 91: ...JTAG data input of target CPU It is recommended that this pin is pulled to a defined state on the target board Typically connected to TDI of target CPU 7 TMS Output JTAG mode set input of target CPU...

Страница 92: ...e Adapter is based on the pinout of the needle adapter by Tag Connect Please note that both pinouts are not identical since the J Link Needle Adapter comes with a 5V supply pin As you can see on the i...

Страница 93: ...create the logic level reference for the input comparators and to control the output logic levels to the target It is normally fed from Vdd of the target board and must not have a series resistor 9 T...

Страница 94: ...his pin should be pulled up on the target Typically connected to TMS on target CPU 11 VDDE7 Input This is the target reference voltage It is used to check if the target has power to create the logic l...

Страница 95: ...en using theFlasher ATE There are several steps you can take before contacting support Performing these steps can solve many problems and often eliminates the need for assistance This chapter also con...

Страница 96: ...ine or your target hardware is the source of the problem not Flasher If you need to contact support send the following information to support_flasher segger com A detailed description of the problem F...

Страница 97: ...her s maximum supported JTAG speed is 15MHz Maximum download speed Q What is the maximum download speed A The maximum download speed is currently about 720 Kbytes second when downloading into RAM The...

Страница 98: ...nt the Flasher ATE into the production environment a drawing of the mechanical layout can downloaded here https www segger com downloads flasher Flasher_ATE_MountingHoles Flasher ATE User Guide UM0803...

Страница 99: ...Chapter 12 Glossary This chapter describes important terms used throughout this manual Flasher ATE User Guide UM08035 2017 2018 SEGGER Microcontroller GmbH...

Страница 100: ...ta and other services to another computer Especially a computer providing debugging services to a target being debugged ICache Instruction cache ID Identifier IEEE 1149 1 The IEEE Standard which defin...

Страница 101: ...cessor Core The part of a microprocessor that reads instructions from memory and executes them including the instruction fetch unit arithmetic and logic unit and the register bank It excludes optional...

Страница 102: ...A type of logic design in which two bipolar transistors drive the logic output to one or zero LSI and VLSI logic often used TTL with HIGH logic level approaching 5V and LOW approaching 0V Word A 32 bi...

Страница 103: ...13 Literature and references This chapter lists documents which we think may be useful to gain a deeper under standing of technical details Flasher ATE User Guide UM08035 2017 2018 SEGGER Microcontrol...

Страница 104: ...https www segger com J Flash J Flash User Guide This document describes J Flash It is publicly available from SEGGER https www segger com Flasher ATE Flasher ATE Getting Started Step by step guide to...

Отзывы: