Home
Flasher ARM User Guide
Contents
1. FDELETE flasher dat ACK OK Note If deletion of the file fails for example if the file does not exist Flasher will respond with the following sequence ACK ERR255 Failed to delete file FOPEN lt Filename gt The FOPEN command is used to open a file on Flasher for further file I O operations lt Filename gt specifies the file on the Flasher which should be opened If lt Filename gt can not be found on Flasher a new one will be created A typical sequence using the FOPEN command does look like as follows FOPEN flasher dat ACK OK Note Currently only one file can be open at the same time If FOPEN is send and another file is already open Flasher will respond with ACK ERR255 A file has already been opened FREAD lt Offset gt lt NumBytes gt The FREAD command is used to read data from a file on Flasher lt offset gt specifies the offset in the file at which data reading is started lt NumBytes gt specifies the num ber of bytes which should be read A typical sequence when using the FREAD command does look like as follows FREAD 0 4 ACK OK 04 466c6173 Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 43 If the FREAD command succeeds Flasher will finally respond with a OK lt Num Bytes gt lt Data gt reply message For more information about the Flasher reply mes sages please refer to Rep
2. IV Erase Sectors frt blank Iw Program IV Verify CRC k Secure chip Start application Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 27 Setting Meaning The address the serial number should be Address programmed at The length of the serial number in bytes which should be programmed If no serial number list file is given J Flash allows to use a 1 4 byte serial number In case of 8 is selected as length the serial number and its comple mentary is programmed at the given Len address In case a serial number list file is given Flasher will take the serial number bytes from the list file If a serial number in the list file does not define all bytes of Len the remaining bytes are filled with Os No complements etc are added to the serial number In case no serial number list file is given Next SN is next serial number which should be programmed The serial number is always stored in lit tle endian format in the flash memory In case a serial number list file is given WD EM Next SN describes the line of the serial number list file where to read the next serial number bytes from Flasher starts counting with line 0 so in order to start serial number programming with the first line of the SNList txt Next SN needs to be set to 0 Specifies how much Next SN is incre Increment mented Table 2 2 Flasher serial number settin
3. Bit ooo EJ LoG List of MCU devices read successfully 1964 Devices Creating new project file C Program Files amp 86 SEGGER JLinkARM_V4583 Defauit jflash New project created successfully Close project Project closed Opening project file C Program Files 86 SEGGER JLinkARM_V458a Samples JFlash ProjectFiles AT91SAM7X256 flash Project opened successfully Generating test data 1024 of 1024 sectors selected 1 range 0x 100000 0x13FFFF Test data generated successfully 262144 bytes 1 range Completed after 0 261 sec DH Download current configuration to programmer 4 Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 23 The J Flash log window indicates that the download to the emulator was successful Connection Target interface Init JTAG speed JTAG speed TAP number IRPre MCU Clock speed Endian Check core Id Core Id Use target RAM RAM address RAM size Flash memory Manufacturer Size Flash Id Check flash Id Base address Organization EJ Project AT91 USB Device 0 SwD 200 kHz 12000 kHz not used not used Atmel ATS1SAM 7X256 47923200 Hz Little Yes Ox3FOFOFOF Yes 04200000 64 KB ATS1SAM7X256 inter Atmel 256 KB 0x0 No 0x100000 32 bits x 1 chip EJ LOG Generating test lest data 1024 of 1024 sectors selected iae Lu x1 3FFFF s ange Completed after 0 261 s
4. ST SPC560B50 576 4 747 4 159 1 929 10 917 Table 4 3 List of performance values of MCUs with internal flash Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 49 Chapter 5 Hardware This chapter gives an overview about Flasher specific hardware details such as the pinouts and available adapters Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 50 5 1 tion CHAPTER 5 Hardware Flasher ARM 20 pin JTAG SWD Connector Flasher has a JTAG connector compatible with ARM s Multi ICE The JTAG connector is a 20 way Insula Viret 1e si Vsupply Displacement Connector IDC keyed box ele header 2 54mm male that mates with IDC sockets TMS 7e ep GND TCK 9e 10 GND mounted on a ribbon cable Pinout JTAG The following table lists the Flasher JTAG pinout 5 1 1 RTCK TDO RESET DBGRQ V5 Supply 11e 13 e 15e 17 19 e e12 e 14 16 18 e 20 GND GND GND GND GND PIN SIGNAL TYPE Description VTref Input This is the target reference voltage It is used to check if the target has power to 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 Vsupply NC This pin is not connected to Flasher ARM It is reserved for compatibility
5. nRST or NRESET in some other manuals See also nTRST nTRST Abbreviation of TAP Reset The electronic signal that causes the target system TAP controller to be reset This signal is known as nICERST in some other manuals See also nSRST Open collector A signal that may be actively driven LOW by one or more drivers and is otherwise passively pulled HIGH Also known as a wired AND signal Processor 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 coprocessors caches and the memory management unit Remapping Changing the address of physical memory or devices after the application has started executing This is typically done to make RAM replace ROM once the initialization has been done RTOS Real Time Operating System TAP Controller Logic on a device which allows access to some or all of that device for test purposes The circuit functionality is defined in IEEE1149 1 Target The actual processor real silicon or simulated on which the application program is running TCK The electronic clock signal which times data on the TAP data lines TMS TDI and TDO TDI The electronic signal input to a TAP controller from the data source upstream Usu ally this is seen connecting the J Link Interface Unit to the first TAP controller TDO The electronic signal
6. 1 Serial number settings sur cin ans seedless ae xa bane duane te nas atome de re dde dde 26 2 4 2 Serial number file eee rx wen nn n Ee X YR coves peu Run ans 27 2 4 3 Serial numberlist fil s crinis eevee ANE Seed AE RE NES e RAT Y EIS E XR IR DRY Eia 27 2 4 4 Programming lee i re e e Ix nay cc T Y XR DR IR E ieee neers 28 2 4 5 Downloading serial number files to FHasher eee eeeee 29 2 4 6 Sample setup of iain cave xxx erm xam eevee nes sive ey ee e evan NR Een 29 2 5 Target nl 31 2 6 Supported microcontrollers is EE nnn nnn 32 2 6 1 REI GE 32 2 7 Support of external flashes iii nennen nnn nnn 33 2 7 1 Flasher ARM isd seer veer vt AE eunt re tesa eee AE hides uar Ma Rr PEIPER E PIRE enr 33 2 7 2 Fl sher RK 8e ERE 33 2 7 3 IERI ER 33 2 8 Supported Ree 34 2 8 1 Flashe ARM LI ES 34 2 8 2 Flasher RX eL 34 2 8 3 Flasher PPC ET 34 Remote er EE 35 3 1 OVERVIGW So iors sees tiie ah oot Nee E Y DR PR Joe eh ee d ate i iR E Ys 36 3 2 Handshake Controle xod eta ex role d E ed Pr ty anew ew P f 37 3 3 ASCII command interface oo eene amen nn 38 3 3 1 l ger glo WEE 38 3 3 2 General command and reply message format 38 3 3 3 Settings for ASCII interface via RA 38 3 3 4 Settings for ASCII interface via Telnet cceceeceee eens ener ee eee ee eee mmn 38 3 3 5 Commands to Flashet tae EE 39 3 3 6 Reply trom Flasher ce Ai net de Nee SAAN whoa SA tag ea dns 43 ten Le 47 4 1 Performance of MCUs with internal flash memory nm 48 4 1
7. In the J Flash project the following needs to be defined Address is 0x08001000 Next SN is 1234567 Increment is 1 Len is 4 bytes Production mode Voltage threshold 3000 my before start 500 ms M Program serial number Address 08001000 Len 4 Next SN 1234567 Increment 1 Actions performed by Auto M Erase Sectors if not blank V Program IV Verify CRC Secure chip Start application Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 30 CHAPTER 2 Working with Flasher Downloading configuration data and serial number to Flasher After setting up the rest of the configuration Target interface etc and selecting an appropriate data file the configuration data and serial number file is downloaded into Flasher via the File gt Download config amp data file to Flasher and File gt Download serial number file to Flasher option Edit View Target Options Window Help Open data file Ctri O Merge data file Save data file Save data file as New project Open project Save project Save project as Close project Save Flasher config file Ges RE Download config amp data file to Flasher 4 5 6 W i SS Download serial number file to Flasher a t s Export setup file A AS e CET CEE alba Export MCU device list ec Bol ocho cone d P Q R 8 Export flash device list 1 U U M ah Lors bac Rec
8. J Link ARM Pro V3 00 J Link ARM Pro V3 00 J Link ARM Pro V3 00 J Link ARM Pro V3 00 J Link ARM Pro V3 00 D Jk ARM Pro V3 00 163000100 173001043 173001050 173001042 173001041 173001044 173001055 173001056 173001051 173001053 173001043 D CO 4 CO C Ee CO PO 3 Flasher User Guide UM08022 No emulators connected over USB If you want to connect over TCP IP instead please select the emulator you want to connect to 192 168 11 41 192 168 6 4 192 168 6 1 192 168 8 6 192 168 8 7 192 168 8 3 192 168 7 6 192 168 7 2 192 168 7 5 192 168 7 3 192 168 8 2 E teen 2004 2013 SEGGER Microcontroller GmbH amp Co KG 22 CHAPTER 2 Working with Flasher In order to download the configuration and program data to the Flasher simply select File gt Download config amp data file to Flasher J ARSI File Edit View Target Options Window Help Open data file Ctri O Merge data file Save data file Ctri S Save data file as New project E3 OD ject pen project Save project Save project as aa Close project Save Flasher config file jave Flasher data fi eR TIE Download config amp data file to Flasher bei GE Download serial number file to Flasher DW BEEN Raced aden Export setup file DSSSRe Bias Kol fea JON Recent Files D Lee Me ST P Q R 8 Recent Projects 1 Wg 2 Wc 2g S 8 V Z L
9. NACK Flasher replies with NACK if an undefined command was received OK Flasher replies with amp ok if a command other than STATUS or RESULT was executed and ended with no error OK lt NumBytes gt lt Data gt Flasher replies with 0K lt Len gt lt Data gt if a FREAD command was executed lt Num Bytes gt is the number of bytes which could be read This value may differ from the number of requested bytes for example if more bytes than available were requested lt NumBytes gt and lt Data gt are send in hexadecimal format for lt Data gt two hexadecimal characters per byte OK lt Size gt Flasher replies if 0K lt Size gt if a tFSIZE command has been executed size is the size in bytes of the currently opened file size is send in hexadecimal format STATUS Flasher replies with its current state The following status messages are currently defined Message Description Flasher is ready to receive a new STATUS READY command A camer ES ONES ANE Flasher initializes connection to tar get CPU Re M TATUS Flasher performs self check and internal init STATUS UNLOCKING Unlocking flash sectors Flasher is erasing the flash of the target device Flasher is programming the flash of the target device Flasher verifies the programmed flash contents Table 3 2 List of status messages that are currently defined STATUS
10. Production tab 4 BUSY As soon as the Auto function is started BUSY becomes active which means that transistor is switched OFF 5 GND Common Signal ground This output reflects result of last action It is valid after BUSY 7 OK turned back to passive state The output transistor is switched ON to reflect OK state Table 3 1 Flasher LED status Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 38 CHAPTER 3 Remote control 3 3 ASCII command interface 3 3 1 Introduction Once set up using J Flash Flasher can be driven by any application or just a simple terminal using ASCII commands Every known command is acknowledged by Flasher and then executed After com mand execution Flasher sends an ASCII reply message Note Note There are situations where the execution of a known command is rejected with NACK ERRxxx if Flasher is currently busy and the received command is not allowed to be sent while Flasher is busy 3 3 2 General command and reply message format e Any ASCII command has to start with the start delimiter e Any ASCII command has to end with simple carriage return r ASCII code 13 e Commands can be sent upper or lower case 3 3 3 Settings for ASCII interface via RS232 Flasher is driven via a RS232 serial port with the following interface settings e 8 data bits e no parity e 1 stop bit at 9600 baud 3 3 4 Settings for ASCII interface via Telnet A clie
11. Renesas RX JTAG Interface Electrical Power Supply USB powered 100mA for Flasher ARM 500 mA if target is powered by Flasher ARM Target interface voltage VIF 1 2 5V Target supply voltage 4 5V 5V on the 14 pin adapter the tar get supply voltage can be switched between 3 3V and 5V Target supply current max 400mA Reset Type Open drain Can be pulled low or tristated Reset low level output voltage VoL VoL lt 10 of VIF For the whole target voltage range 1 8V lt Vip lt 5V LOW level input voltage Vj ViL lt 40 of VIF HIGH level input voltage Vj Vin gt 60 of VIF For 1 8V lt Vif lt 3 6V LOW level output voltage VoL with a load of 10 kOhm VoL lt 10 of Vig HIGH level output voltage Voy with a load of 10 kOhm Vou gt 90 of Vig For 3 6 lt Vie lt 5V LOW level output voltage VoL with a load of 10 kOhm VoL lt 20 of VIF HIGH level output voltage Voy with a VoH gt 80 of VIF load of 10 kOhm Table 1 3 Flasher RX specifications Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG JTAG Interface Timing Max JTAG speed up to 12MHz Data input rise time T qi Trai lt 20ns Data input fall time Tai Trgj lt 20ns Data output rise time Trao Trdo lt 10ns Data output fall tim
12. SWD interface Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 32 CHAPTER 2 Working with Flasher 2 6 Supported microcontrollers 2 6 1 Flasher Flasher supports download into the internal flash of a large number of microcontrol lers The number of supported devices is steadily growing so you can always find the latest list of supported devices on our website http www segger com supported devices html Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 33 2 7 Support of external flashes 2 7 1 Flasher ARM In general Flasher ARM supports programming of external flashes listed below parallel NOR flash serial NOR flash NAND flash DataFlash If the parallel NOR flash device which is used is not CFI compliant you have to select the flash device in J Flash explicitly for a list of all parallel NOR flash devices which can be explicitly selected in J Flash please refer to UM08003 J Flash User Guide chapter Supported Flash Devices For serial NOR flash NAND flash and DataFlash devices a custom RAMCode is needed since the connection of the flash to the CPU dif fers from device to device The J Flash software comes with sample projects for cus tom RAMCodes For a complete list of all custom RAMCode projects which come with the J Flash software please refer to http www segger com supported devices html 2 2 Flasher RX Programming of external parallel N
13. UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 73 Index A Adaptive clocking 68 C Cache cleaning sese 68 COPFOCESSOF e ee EE 68 D Ditty e WE 68 H HalfWOFPGd reine een 68 HOSE SRE wr eke 68 I Cahe res nantes 68 PERPE 68 IEEE 1149 1 a inner 68 fu LE 68 Instruction Register EE 68 D OE 68 J J Link Adapters sin RU RAR Ai des 57 Features 8 Specifications 10 Supported chips 34 56 Joint Test Action Group JTAG 68 L Little endian eee 68 M Memory coherency eeeeenn nn 68 Memory management unit MMU 69 Memory Protection Unit MPU 69 Flasher User Guide UM08022 N TRS Rs a losers 50 69 O Open collector s ssssssssssnssrrsrrssrsssseseerres 69 P Processor COFe eina eee re es 69 R REMAPPING eren exertion eim 69 RESET iris m wc EA ee e 69 RTOS Hier iuge esta sr Pr n Pa TE Fe EET TES 69 S SuppOFLt s ence xci yn exe RE YES 61 67 T TAP Controller NN 69 Target iie REI RR XR YER ET 69 Rie ov 50 69 TDI RE ent Sx viet 50 69 TDO D 50 69 Test Access Port TAP eese 69 Transistor transistor logic TTL 70 Ww WOM decore x AE ee e v 70 2004 2013 SEGGER Microcontroller GmbH amp Co KG 74 Index Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG
14. called nRST nRESET or RESET 17 DBGRQ NC This pin is not connected in Flasher ARM It is reserved for compatibility with other equipment to be used as a debug request signal to the target system Typically connected to DBGRQ if available otherwise left open 19 5V Tar get sup ply Output This pin is used to supply power to some eval boards Typi cally left open on target hardware Table 5 1 Flasher pinout JTAG Pins 4 6 8 10 12 14 16 18 20 are GND pins connected to GND in Flasher ARM They should also be connected to GND in the target system Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 5 1 2 Pinout SWD The 20 pin connector of Flasher is also compatible 51 to ARM s Serial Wire Debug SWD interface Viret le e2 Vsupply Not used 3e 4 GND Not used 5e ep GND SWDIO 7e 8 GND SWCLK 9e e 10 GND Not used 11 12 GND SWO 13 e 14 GND RESET 15e 16 GND The following table lists the J Link J Trace SWD Notused 17 18 GND pinout V5 Supply 19 e e 20 GND PIN SIGNAL TYPE Description This is the target reference voltage It is used to check if the target has power to create the logic level reference for 1 VTref Input the input comparators and to control the output logic levels to the target It is normally fed from Vdd of the target board
15. steps you can take before contacting support Performing these steps can solve many problems and often eliminates the need for assistance This chapter also contains a collection of frequently asked questions FAQs with answers Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 62 CHAPTER 6 Support and FAQs 6 1 Contacting support Before contacting support make sure you tried to solve your problem by trying your Flasher with another PC and if possible with another target system to see if it works there If the device functions correctly the USB setup on the original machine or your target hardware is the source of the problem not Flasher If you need to contact support send the following information to support segger com A detailed description of the problem Flasher serial number Information about your target hardware processor board etc FLASHER CFG FLASHER DAT FLASHER LOG SERIAL TXT file from Flasher To get these files Flasher has to be in MSD mode For more information about how to boot Flasher in MSD mode please refer to MSD mode on page 24 Flasher is sold directly by SEGGER Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 63 6 2 Frequently Asked Questions Maximum JTAG speed Q What is the maximum JTAG speed supported by Flasher A Flasher s maximum supported JTAG speed is 12MHz Maximum download speed Q What is the m
16. the value defined in Increment after each successful programming cycle For each programming cycle the FLASHER LOG on the Flasher is updated and con tains the value from SERIAL TXT that has been used for the programming cycle Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 29 Note The serial number in SERIAL TXT will also be incremented in case if serial number programming is disabled to make sure that for the Flasher logfile there is a reference which programming cycle passed and which not As long as serial number programming has not been enabled in the J Flash project Flasher does not merge any serial number data into the image data to be programmed 2 4 5 Downloading serial number files to Flasher Downloading the serial number files needs to be done explicitly by selecting File gt Download serial number file to Flasher Please note that the File gt Download config amp data file to Flasher option does only download the configuration and data file to Flasher since usually the current serial number used for programming shall not be reset overwritten when just updating the image Flasher shall program 2 4 6 Sample setup In the following a small sample is given how to setup Flasher for serial number pro gramming In the following sample 4 byte serial numbers starting at 1234567 0x12D687 shall be programmed at address 0x08001000 Defining serial number address length and start value
17. with other equipment Connect to Vdd or leave open in target system nTRST Output JTAG Reset Output from Flasher ARM to the Reset signal of the target JTAG port Typically connected to nTRST of the target CPU This pin is normally pulled HIGH on the target to avoid unintentional resets when there is no connection TDI Output 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 TMS Output JTAG mode set input of target CPU This pin should be pulled up on the target Typically connected to TMS of tar get CPU TCK Output JTAG clock signal to target CPU It is recommended that this pin is pulled to a defined state of the target board Typically connected to TCK of target CPU 11 RTCK Input Return test clock signal from the target Some targets must synchronize the JTAG inputs to internal clocks To assist in meeting this requirement you can use a returned and retimed TCK to dynamically control the TCK rate Flasher ARM supports adaptive clocking which waits for TCK changes to be echoed correctly before making further changes Connect to RTCK if available otherwise to GND 13 TDO Input JTAG data output from target CPU Typically connected to TDO of target CPU 15 RESET Target CPU reset signal Typically connected to the RESET pin of the target CPU which is typically
18. 1 ElasberARht et geduet ERR 48 Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 4 1 2 Flasher RX iinnat ec cke v thue gis vt EE AR ENEE EE EENS ere en 48 4 1 3 Flasher lus ER 48 SM Rio ISI e an ER IE RER RER CR RU OC SN EE 49 5 1 Flasher ARM 20 pin JTAG SWD Connector esas nennen emen nn 50 5 1 1 map ict rye 50 5 1 2 Pinout UR SE 51 5 1 3 Target power Super EHNEN inner EEN NEEN ed ANN d 51 5 2 Flasher RX 14 pin connector ENNEN 53 5 2 1 Target power supply creuse coi eene tee ane e sie V d ANEN E NR E DR E en 53 5 3 Flasher PPC 14 pin Conpnector ss sisi nennen mene 55 5 4 Target board design 5 sers coe EE ec oar pex tt er leven ee pr ee Fr rd e a wes 56 5 4 1 Pull up pull down resistors woe cece cece ERE mene nnn 56 5 4 2 RESET hTRST usce vene xen yen hx xn est Exe XR RR E Ye beaver XX ever Re du Ra tye 56 5 5 AGC OR RE IQ II LLLI TLLA 57 5 5 1 JTAG Feolatot m 57 5 5 2 J Link Needle Adapter NNN ENNEN ANNE ANNE sena sea aen nn 58 5 6 How to determine the hardware version 59 p Support and FAQS Un MN NRA tintin 61 6 1 Contacting SUPhOrE EE 62 6 2 Frequently Asked Ouestions nennen nemen nnns 63 7 Background information EE 65 7 1 Flash programming ent eege NNN cashes ds een ae ena de dunes eel ere de ae 66 7 1 1 How does flash programming via Flasher work 2 66 7 1 2 Data download to BAM 66 7 1 3 Available options for flash programming 66 SEE OS Seay TT UE
19. 4 6 8 10 12 14 16 18 20 are GND pins connected to GND in J Link They should also be connected to GND in the target system 5 1 3 Target power supply Pin 19 of the connector can be used to supply power to the target hardware Supply voltage is 5V max current is 300mA The output current is monitored and protected against overload and short circuit Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 52 CHAPTER 5 Hardware Power can be controlled via the J Link commander The following commands are available to control power Command Explanation power on Switch target power on power off Switch target power off power on perm Set target power supply default to on power off perm Set target power supply default to off Table 5 3 Command List Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 53 5 2 Flasher RX 14 pin connector Flasher RX itself has a 20 pin JTAG connector mounted but comes with a 14 pin adapter for Rene TCK 1ee2 GND sas RX devices This adapter also enables Flasher TRSTn 360604 EMLE RX to optionally power the connected target hard TDO 5e 6 ware On the adapter there is a jumper which allows DN 7 e8 VTref selection between 3 3V and 5V supply target volt TMS de 40 e age supply The target is supplied via the VTref con nection when the supply option is jumper
20. 5 4 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 signals are asserted after power up The advantage of having separate connection to the two reset signals is that it allows the developer performing software debug to setup breakpoints which are retained by the debug logic even when the core is reset For example at the reset vector address to allow the code to be single stepped as soon as it comes out of reset This can be particularly useful when first trying to bring up a board with a new ASIC Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 5 5 Adapters 5 5 1 JTAG Isolator 57 The JTAG Isolator can be connected between Flasher and JTAG adapter to provide electrical isolation This is essential when the development tools are not connected to the same ground as the application For more information about the JTAG Isola to J Link JTAG Isolator User Manual UM08010 which can be downloaded from our website tor 5 5 1 1 The following table shows the target side pinout of the J Link please Pinout JTAG Isolator refer vcc im m2 VCC nTRST 5H B4 GND TDI 5m H6 GND TMS 75 HS GND TCK om m i0GND RTCK 11m N 2 GND TDO 3m W 4GND RESET 55 N 6 GND N C 37 MS GND N C omg m20GND Pin Signal Type Description 1 VCC Output The target side of the i
21. 67 9 Literature amd Teterepe8s suc tete HELL Men nn DAHIN Ru eun UE 71 Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG Chapter 1 Introduction This chapter gives a short overview about the different models of the Flasher family and their features Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 8 CHAPTER 1 Introduction 1 1 Flasher overview Flasher is a programming tool for microcontrollers with on chip or external flash memory Flasher is designed for programming flash targets with the J Flash software or stand alone In addition to that Flasher can also be used as a regular J Link For more information about J Link in general please refer to the J Link J Trace User Guide which can be downloaded at http www segger com Flasher connects to a PC using the USB Ethernet RS232 interface running Microsoft Windows 2000 Windows XP Windows 2003 Windows Vista Windows 7 or Windows 8 In stand alone mode Flasher can be driven by the start stop button or via the RS232 interface handshake control or ASCII interface Flasher always has a 20 pin connector which target interfaces are supported depends on the Flasher model e For Flasher ARM JTAG and SWD are supported e For Flasher RX JTAG is supported Flasher comes with additional 14 pin RX adapter e For Flasher PPC JTAG is supported Flasher comes with additional 14 pin PPC adapter 1 1 1 Features of F
22. 8 38 27 DLL version U4 58a compiled Dec 5 2612 18 38 08 Firmware J Link ARM Flasher ARM U3 compiled Nov 28 2612 18 57 58 D ml Feature s gt JFlash 4 IRPrint 6x61 2 Tote un en 4 s Id x3F F F RLen 84 IRPrint 8x1 ARM TDMI Core Found ARM with c Ux3FBFBFBF CARM75 JTAG speed 188 kHz J Link gt 2 2 1 2 Setting up Flasher for stand alone mode In order to set up Flasher for the stand alone mode it needs to be configured once using the J Flash software For more information about J Flash please refer to the J Flash User Guide Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 20 CHAPTER 2 Working with Flasher After starting J Flash open the appropriate J Flash project for the target Flasher shall be configured for by selecting File gt Open Project If J Flash does not come with an appropriate sample project for the desired hardware a new project needs to be created by selecting File gt New Project After the appropriate project has been opened created the data file which shall be programmed needs to be loaded by selecting File gt Open After this J Flash should look like in the screenshot below 2 SEGGER J Flash ARM V4 58a TCAProgram Files 986 SEGGERULinkARM_V458a Samples Flash ProjectFiles ATS1SAM7X256 jflash File Edit View Target Options Window Help El Project AT amp 53 EJ Test data generated by J Flas
23. DO The J Link Needle Adapter can be connected to J Link via the 20 pin 0 1 JTAG to a 10 pin needle connector Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 59 5 6 How to determine the hardware version To determine the hardware version of your Flasher the first step should be to look at the label at the bottom side of the unit Flasher has the hardware version printed on the back label If this is not the case with your Flasher you can use JLink exe to determine your hardware version if Flasher is in J Link mode As part of the initial message the hardware version is displayed For more information about how to ensure that Flasher is in J Link mode please refer to J Link mode on page 19 3i 3 speed 106 kHz J Link EI C Program Files x86 SEGGER LinkARM_V458a JLink exe SEGGER J Link Commander U4 58a C Compiled Dec 5 2612 18 38 27 version U4 58a compiled Dec gt I Link ARM Flasher ARM U3 compiled Nov 28 2912 18 57 58 5 2612 18 38 68 IR n core Id re faa jum Core Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 60 CHAPTER 5 Hardware Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 61 Chapter 6 Support and FAQs This chapter contains troubleshooting tips together with solutions for common prob lems which might occur when using Flasher There are several
24. 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 Q Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 1 Table of Contents Gto EE CLIGTE a Sats ta ara A ai hela a AA aah vna cA i e on C LAE 7 1 1 Flasher OVERVIEW os en aot lee eR ate eal Sa ate ras 8 1 1 1 Features of Flasher ore e EEN EEN e ane eh nee Ae acess ed 8 1 1 2 Working We alen Lu EE 8 1 2 el Keele IEN 10 1 2 1 Specifications for Flasher ARM NENNEN 10 1 2 2 Specifications for Flasher RX sise nnne nnn nnn 12 1 2 3 Specifications for Flasher DC NEEN 14 Working with Flasher EE 17 2 1 Setting up the IP interface sisi s reen isa eed eve eden eee A NEEN e n axi na dE d ea da 18 2 1 1 Connecting the first time dno eere ded bete eves rk Re PEE YER KE EEN 18 2 2 Operating Rn x dicet khe t m e Et a Rd E p E CE EE XE ERR RE Ro EX DRE EHE Ida 19 2 2 1 J Linkcmode eode ANEN NEES ee Ohne eine era sov dua 19 2 2 2 Stand alone tnodes itte nne iis uses eege EE EX pex FR Ne d NNN 23 2 2 3 MSD mode ssec eR a a OR Kn CR OX Facer e Y d te OD edie OR LEE RTL erent Dn 24 2 3 Multiple Fil SuppOFt erene o KASS i eva nahe oOx sde ee REY pk IE De Per Dale a Dra PR 25 2 4 Serial number programming sisi 26 2 4
25. ERASING STATUS PROGRAMMING STATUS VERIFYING Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 45 ERRxxx If any command other than STATUS or RESULT was terminated with an error Flasher cancels the command and replies with an error message instead of 0K mes sage Some error codes may be followed by colon and an additional error text For example ERROO7 CANCELED The error code numbers are described in the following table Message Description Flasher received CANCEL command ERRO 07 and has canceled the current opera tion Flasher is already busy with execu tion of previous command Undefined error occurred This reply is followed by an error string Table 3 3 List of error code numbers which are currently defined ERROO8 ERR255 Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 46 Flasher User Guide UM08022 CHAPTER 3 Remote control 2004 2013 SEGGER Microcontroller GmbH amp Co KG 47 Chapter 4 Performance The following chapter lists programming performance of common flash devices and microcontrollers Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 48 4 1 4 1 1 different controllers CHAPTER 4 Performance Performance of MCUs with internal flash memory Flasher ARM The following ta
26. Flasher User Guide Software Version V4 66 Manual Rev 0 Date April 4 2013 Document UM08022 Ve SEGGER A product of SEGGER Microconroller GmbH amp Co KG www segger com 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 amp 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 2013 SEGGER Microcontroller GmbH amp 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 res
27. M system For more information about J Flash please refer to the J Flash User Guide which can be downloaded from our website http www segger com Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 67 Chapter 8 Glossary This chapter describes important terms used throughout this manual Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 68 CHAPTER 8 Glossary Big endian Memory organization where the least significant byte of a word is at a higher address than the most significant byte See Little endian Cache cleaning The process of writing dirty data in a cache to main memory Coprocessor An additional processor that is used for certain operations for example for floating point math calculations signal processing or memory management Dirty data When referring to a processor data cache data that has been written to the cache but has not been written to main memory is referred to as dirty data Only write back caches can have dirty data because a write through cache writes data to the cache and to main memory simultaneously See also cache cleaning Halfword A 16 bit unit of information Host A computer which provides data 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 defines TAP Co
28. OR flash is currently not supported by Flasher RX This limitation will be lifted in the near future 2 7 3 Flasher PPC Programming of external parallel NOR flash is currently not supported by Flasher PPC This limitation will be lifted in the near future Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 34 2 8 Supported cores 2 8 1 Flasher ARM CHAPTER 2 Working with Flasher Flasher ARM supports and has been tested with the following cores but should work with any ARM7 9 Cortex M0 M1 M3 M4 core If you experience problems with a par ticular core do not hesitate to contact Segger 2 8 2 ARM7TDMI Rev 1 ARM7TDMI Rev 3 ARM7TDMI S Rev 4 ARM920T ARM922T ARM926EJ S ARM946E S ARM966E S Cortex MO Cortex M1 Cortex M3 Cortex M4 Flasher RX Flasher RX supports and has been tested with the following cores If you experience problems with a particular core do not hesitate to contact Segger 2 8 3 RX610 RX621 RX62N RX62T Flasher PPC Flasher PPC supports and has been tested with the following cores If you experience problems with a particular core do not hesitate to contact Segger e200z0 Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 35 Chapter 3 Remote control This chapter describes how to control Flasher via the 9 pin serial interface connector Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller G
29. a tor 19 N C N C This pin is not connected on the target side of the isola tor Table 5 7 Pins 4 6 8 10 12 14 16 18 20 are connected to GND Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 58 CHAPTER 5 Hardware 5 5 2 J Link Needle Adapter To connect to the J Link OB via programming interface the J Link Needle Adapter is recommended Why to choose the J Link Needle Adapter 1 No additional connector required on your PCB 2 Very small footprint 3 High reliability spring pins for secure connections 4 Designed with 3 locating pins so the adapter can not be connected the wrong way 5 No external power supply required The J Link Needle Adapter comes with the option to power the target hardware via J Link These features make the J Link Needle Adapter the perfect solution for production purposes The pinout of the J Link Needle 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 Nee dle Adapter comes with a 5V supply pin As you can see on the image below the three locating pins ensure that the adapter cannot be connected to the PCB the wrong way Moreover the two legs on each side of the connector guarantee a stable and secure contact between pins and the PCB VTref 1 ee 10 nRESET SWDIO TMS TRST GND TDI SWCLK TCK RICK 5 Supply SWO T
30. age is the same in this case Please avoid excess voltage Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG Installing Flasher PC software J Flash The latest version of the J Flash software which is part of the J Link software and documentation package can always be downloaded from our website http www segger com download_jlink html For more information about using J Flash please refer to UM08007 FlasherARM pdf J Flash user guide which is also available for download on our website Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 10 CHAPTER 1 1 2 Specifications 1 2 1 Introduction Specifications for Flasher ARM General Supported OS Microsoft Windows 2000 Microsoft Windows XP Microsoft Windows XP x64 Microsoft Windows 2003 Microsoft Windows 2003 x64 Microsoft Windows Vista Microsoft Windows Vista x64 Microsoft Windows 7 Microsoft Windows 7 x64 Microsoft Windows 8 Microsoft Windows 8 x64 Operating Temperature 5 C 60 C Storage Temperature 20 C 60 C Relative Humidity non condensing lt 90 rH Mechanical Size without cables 121mm x 66mm x 30mm Weight without cables 119g Available interfaces USB Host interface USB 2 0 full speed Ethernet Host interface 10 100 MBit RS232 Host interface RS232 9 pin Target interface JTAG 20 pin 14 pin adapter availabl
31. al number should be programmed at address 0x08000000 It should be programmed as follows in the memory 0x08000000 0x01 0x02 0x03 0x04 0x55 0x66 0x77 0x88 The serial number list file should look as follows 0102030455667788 File E Format View Help 0102030455667788 0102030455667789 010203045566778A 010203045566778B 010203045566778C 010203045566778D 1010203045566778E 1010203045566778F 0102030455667790 0102030455667791 0102030455667792 0102030455667793 0102030455667794 0102030455667795 The number of bytes to read per line is configured via the Len option in J Flash For more information please refer to Serial number settings on page 26 Which line Flasher will read at the next programming cycle is configured via the Next SN option in J Flash For more information please refer to Serial number settings on page 26 In this case Next SN needs to be set to 0 since programming should be started with the serial number bytes defined in the first line of the file Note If the number of bytes specified in a line of the serial number list file is less than the serial number length defined in the project the remaining bytes filled with Os by Flasher 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 the J Flash project the remaining bytes will be ignored by Flasher 2 4 4 Programming process Flasher will increment the serial number in SERIAL TXT by
32. and must not have a series resistor This pin is not connected in J Link It is reserved for com 2 Vsupply NC patibility with other equipment Connect to Vdd or leave open in target system This pin is not used by J Link If the device may also be 3 Not Used NC accessed via JTAG this pin may be connected to nTRST otherwise leave open This pin is not used by J Link If the device may also be 5 Not used NC accessed via JTAG this pin may be connected to TDI oth erwise leave open 7 SWDIO I O Single bi directional data pin Clock signal to target CPU It is recommended that this pin is pulled to a defined state 3 Sc Output of the target board Typically connected to TCK of target CPU This pin is not used by J Link This pin is not used by J Link when operating in SWD mode If the device may also be Bo MOR USES NG accessed via JTAG this pin may be connected to RTCK oth erwise leave open Serial Wire Output trace port Optional not required for E Output SWD communication Target CPU reset signal Typically connected to the RESET 15 RESET I O pin of the target CPU which is typically called nRST nRESET or RESET 17 Not used NC This pin is not connected in J Link 5V Tar This pin is used to supply power to some eval boards Not 19 get sup Output all J Links supply power on this pin only the KS Kickstart ply versions Typically left open on target hardware Table 5 2 Flasher pinout SWD Pins
33. ator to assist in develop ment debugging and production which has rapidly become the industry standard for debug access to ARM cores Corporate Office United States Office http www segger com http www segger us com EMBEDDED SOFTWARE SEGGER TOOLS Middleware emWin Flasher Graphics software and GUI Flash programmer emWin is designed to provide an effi Flash Programming tool primarily for microcon cient processor and display control trollers ler independent graphical user interface GUI for any application that J Link operates with a graphical display JTAG emulator for ARM cores Starterkits eval and trial versions are USB driven JTAG interface for ARM cores available J Trace embos JTAG emulator with trace Real Time Operating System USB driven JTAG interface for ARM cores with m embOS is an RTOS designed to offer Trace memory supporting the ARM ETM Embed TT the benefits of a complete multitasking ded Trace Macrocell system for hard real time applications with minimal resources The profiling J Link J Trace Related Software PC tool embOSView is included Add on software to be used with SEGGER s indus try standard JTAG emulator this includes flash emFile programming software and flash breakpoints 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
34. aximum download speed A The maximum download speed is currently about 720 Kbytes second when down loading into RAM The actual speed depends on various factors such as JTAG clock speed host CPU core etc Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 64 CHAPTER 6 Support and FAQs Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 65 Chapter 7 Background information This chapter provides background information about flash programming in general It also provides information about how to replace the firmware of Flasher manually Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 66 CHAPTER 7 Background information 7 1 Flash programming Flasher comes with a DLL which allows amongst other functionalities reading and writing RAM CPU registers starting and stopping the CPU and setting breakpoints 7 1 1 How does flash programming via Flasher work This requires extra code This extra code typically downloads a program into the RAM of the target system which is able to erase and program the flash This program is called RAM code and knows how to program the flash it contains an implementa tion of the flash programming algorithm for the particular flash Different flash chips have different programming algorithms the programming algorithm also depends on other things such as endianess of the target system and or
35. ble lists program and erase performance values of Flasher ARM for Program Verify Total Size Erase time A Microcontroller kByte sec time time time sec sec sec Analog Devices 62 2 943 2 286 0 563 5 792 Atmel AT91SAM7S64 64 oo 3 488 0 438 3 926 Atmel AT91SAM7S256 256 Ge 7 709 1 053 8 762 NXP LPC1768 512 3 740 8 559 5 092 17 391 NXP LPC2106 120 0 448 1 204 0 634 2 286 NXP LPC2129 248 0 449 2 916 1 347 4 712 NXP LPC2138 500 0 448 5 488 2 649 8 585 NXP LPC2148 500 0 448 5 632 2 721 8 801 NXP LPC2294 2048 0 808 15 976 9 669 26 453 NXP LPC2478 504 0 448 5 419 2 559 8 426 ST STM32F103ZE 512 0 028 18 763 3 939 22 730 ST STR711 272 0 429 5 476 4 742 10 647 ST STR912 544 1 167 12 907 5 236 19 310 TI TMS470R1B1M 1024 2 289 8 147 5 362 15 798 Table 4 1 List of performance values of MCUs with internal flash 4 1 2 Flasher RX The following table lists program and erase performance values of Flasher RX Size Erase time Program yarify Toral Microcontroller kByte sec time time time sec sec sec R5F56108 2 048 9 523 11 915 3 890 25 585 Table 4 2 List of performance values of MCUs with internal flash 4 1 3 Flasher PPC The following table lists program and erase performance values of Flasher PPC 4 Program Verify Total Size Erase time f 8 Microcontroller kByte sec time time time y sec sec sec
36. d for stand alone mode as described in the section above there will be four files on the MSD FLASHER CFG FLASHER DAT FLASHER LOG SERIAL TXT FLASHER LOG 2 SERIAL TXT FLASHER CFG contains the configuration settings for programming the target device and FLASHER DAT contains the data to be programmed FLASHER LOG contains all log ging information about the commands performed in stand alone mode The SERIAL TXT contains the serial number which will be programmed next J Flash sup ports to configure Flasher for automated serial number programming For furhter information about how to configure Currently J Flash does not support to configure Flasher for automated serial number programming If you want to configure multiple Flasher for the same target you do not have to use J Flash all the time It is also possible to copy the FLASHER CFG and the FLASHER DAT files from a configured Flasher to another one To copy these files boot Flasher in MSD mode Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 25 2 3 Multiple File Support It is also possible to have multiple data files and config files on Flasher to make Flasher more easy to use in production environment To choose the correct configura tion file and data file pair a FLASHER INI file is used This init file contains a FILES section which describes which configuration file and w
37. e JTAG Interface Electrical Power Supply USB powered 100mA for Flasher ARM 500 mA if target is powered by Flasher ARM Target interface voltage VIF 1 2 5V Target supply voltage 4 5V 5V on the 14 pin adapter the tar get supply voltage can be switched between 3 3V and 5V Target supply current max 400mA Reset Type Open drain Can be pulled low or tristated Reset low level output voltage Vo VoL lt 10 of Vir For the whole target voltage range 1 8V lt Vip lt 5V LOW level input voltage Vr VIL lt 40 of VIF HIGH level input voltage Vj Vin gt 60 of VIF For 1 8V lt Vir lt 3 6V LOW level output voltage VoL with a load of 10 kOhm VoL lt 10 of Vir load of 10 kOhm HIGH level output voltage Voy with a Vou gt 90 of Vig For 3 6 lt Vir lt 5V LOW level output voltage VoL with a load of 10 kOhm VoL lt 20 of VIF Table 1 1 Flasher ARM specifications Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 1 2 1 1 HIGH level output voltage Voy with a load of 10 kOhm Vou gt 80 of Vig JTAG Interface Timing Max JTAG speed up to 12MHz Data input rise time T qi Trai lt 20ns Data input fall time Tri Tai lt 20ns Data output rise time Trao Trdo lt 10ns Data output fall time Tra
38. e Trao Tfdo lt 10ns Clock rise time Ty Tre lt 10ns Clock fall time Tfc Tg lt 10ns Table 1 3 Flasher RX specifications 1 2 2 1 Flasher RX download speed The following table lists Flasher RX performance values Kbytes second for writing to memory RAM via the JTAG interface Hardware Flasher RX600 series memory download Flasher RX 720 Kbytes s 12MHz JTAG Table 1 4 Download speed of Flasher RX Note The actual speed depends on various factors such as JTAG clock speed host CPU core etc Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 14 CHAPTER 1 Introduction 1 2 3 Specifications for Flasher PPC Gen eral Supported OS Microsoft Windows 2000 Microsoft Windows XP Microsoft Windows XP x64 Microsoft Windows 2003 Microsoft Windows 2003 x64 Microsoft Windows Vista Microsoft Windows Vista x64 Microsoft Windows 7 Microsoft Windows 7 x64 Microsoft Windows 8 Microsoft Windows 8 x64 Operating Temperature 5 C 60 C Storage Temperature 20 C 60 C Relative Humidity non condensing lt 90 rH Mechanical Size without cables 121mm x 66mm x 30mm Weight without cables 119g Available interfaces USB Host interface USB 2 0 full speed Ethernet Host interface 10 100 MBit RS232 Host interface RS232 9 pin Target interface JTAG 20 pin shipped with 14
39. e data is ready to be read from or written to the Nexus read write access registers JTAG TAP Controller Enable JTAG Compliancy JCOMP JCOMP is used to enable the TAP controller for communica tion to the JTAG state machine for boundary scan and for E CORNE Output debug access This pin is set to HIGH by Flasher PPC in order to enable the JTAG TAP controller on the target device Table 5 6 Flasher PPC pinout 14 pin connector All pins marked NC are not connected to Flasher PPC Any signal can be applied here Flasher PPC will simply ignore such a signal Pins 2 12 6 12 are GND pins connected to GND in Flasher PPC They should also be connected to GND in the target system Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 56 CHAPTER 5 Hardware 5 4 Target board design We strongly advise following the recommendations given by the chip manufacturer These recommendations are normally in line with the recommendations Please refer to the the appropriate tables depending on the core e Pinout JTAG on page 50 e Pinout SWD on page 51 e Flasher RX 14 pin connector on page 53 e Flasher PPC 14 pin connector on page 55 In case of doubt you should follow the recommendations given by the semiconductor manufacturer 5 4 1 Pull up pull down resistors Unless otherwise specified by developer s manual pull ups pull downs are recom mended to be between 2 2 kOhms and 47 kOhms
40. ec Bees Flasher cfg 2048 bytes File downloaded Deeg Fasher dat 266240 bytes File downloaded successfully GEI E SEGGER J Flash ARM V4 58a C Program Files x86 SEGGER JLinkARM_V458a Samples JFlash ProjectFiles AT91SAM7X256 jflash File Edit View Target Options Window Help EJ Test data generated by J Flash Address Emm F1 x 4 68 100170 FF EA FF ER D one se 8 ee Er ect Coz MD 87 B wpe NR ee og og on From now on Flasher can be used in stand alone mode without host PC interaction for stand alone programming 2 2 2 Stand alone mode In order to use Flasher in stand alone mode it has to be configured first as described in Setting up Flasher for stand alone mode on page 19 To boot Flasher in the stand alone mode only the power supply to Flasher has to be enabled Flasher should not be connected to a PC In the stand alone mode Flasher can be used as a stand alone flash programmer Note Flasher can only program the target device it was configured for In order to program another target device you have to repeat the steps described in Setting up Flasher for stand alone mode on page 19 Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 24 CHAPTER 2 Working with Flasher 2 2 2 1 LED status indicators Progress and result of an operation is indicated by Flasher s LEDs Status of LED Meanin
41. ed TD 11 ee 12 GND nRES 13 ege 14 GND The following table lists the Flasher RX 14 pin JTAG pinout Pin Signal Type Description JTAG clock signal to target CPU It is recommended that this 1 TCK Output pin is pulled to a defined state on the target board Typically connected to TCK on target CPU JTAG Reset Output from Flasher ARM to the Reset signal of the target JTAG port Typically connected to nTRST of the x TRSN Output target CPU This pin is normally pulled HIGH on the target to avoid unintentional resets when there is no connection Pin for the on chip emulator enable signal When the on chip emulator is used this pin should be driven high When T EMELE Output not used it should be driven low Pulled HIGH to VTref via 1k pull up resistor on 14 pin adapter JTAG data output from target CPU Typically connected to ie input TDO on target CPU 6 NC This pin is not connected to Flasher RX 7 mE NC This pin is not connected to Flasher RX This is the target reference voltage It is used to check if the target has power to create the logic level reference for 8 VTref Input 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 JTAG mode set input of target CPU This pin should be 9 TMS Output pulled up on the target Typically connected to TMS on tar get CPU 10 NC This pin is not connected to Flasher RX JTAG data
42. ent Files 1 a Recent Projects A New project created si Tul Saving project file C Work JLinkARM Output Debug Defauit flash Project saved successfully Close project Project closed Opening project file C Temp SerialNumberTest STM32ZE_Test flash Project opened successfully Opening data file C Temp SerialNumberTest Test mot Data file opened successfully 512 bytes 1 range CRC xF31F28E 7 lt Download current configuration to programmer After downloading the serial number to Flasher J Flash also created the lt JFlashProjectName gt _Serial txt Share with New folder Name Date modified Type Size M estjflash 25 06 2012 19 34 JFLASH File 3KB B STM32ZE Test Serial txt 26 06 2012 13 57 Text Document 1KB 25 06 2012 19 32 MOT File 2KB Now Flasher is prepared to program the 8 byte serial number Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 31 2 5 Target interfaces The table below shows the supported target interfaces of the different Flasher mod els Hardware Supported interfaces Flasher ARM JTAG SWD Flasher RX JTAG Flasher PPC JTAG Table 2 3 Supported target interfaces by Flasher For more information about the target interfaces itself please refer to e UMO08001 chapter Working with J Link and J Trace section JTAG interface e UMO08001 chapter Working with J Link and J Trace section
43. g Flasher ARM is waiting for USB enumeration or ethernet link As soon as USB has been enumer ated or ethernet link has been established the GREEN green LED stops flashing and is switched to con stant green In stand alone mode Flasher remains in the high frequency blinking state until state 1 is reached Flasher goes to state 1 as soon as a START command has been received via the ASCII inter face or the Start button has been pushed 0 high frequency blinking On Off time 50ms gt 10Hz 1 ORTEN Connect to target and perform init sequence constant Flashing operation in progress 1 Erasing slow blinking on off time 80 GREEN ms gt 6 25 HZ 2 EE 2 Programming slow blinking on off SIGMA BIKING time 300ms gt 1 67 Hz 3 Verifying slow blinking on off time 100ms gt 5 Hz 3 GREEN Operation successful Goes back to state 0 constant automatically RED Operation failed Goes back to state 0 automat 4 constant ically but red LED remains on until state 1 next programming cycle is entered again Table 2 1 Flasher LEDs 2 2 3 MSD mode When pressing the Start Stop button of Flasher while connecting it to the PC Flasher will boot in the MSD mode This mode can be used to downdate a Flasher firmware version if a firmware update did not work properly and it can be used to configure Flasher for the stand alone mode without using J Flash If Flasher has been configure
44. ganization of the flash memory for example 1 8 bits 1 16 bits 2 16 bits or 32 bits The RAM code requires data to be programmed into the flash memory The data is supplied by downloading it to RAM 7 1 2 Data download to RAM The data or part of it is downloaded to another part of the RAM of the target sys tem The Instruction pointer PC of the CPU is then set to the start address of the Ram code the CPU is started executing the RAM code The RAM code which con tains the programming algorithm for the flash chip copies the data into the flash chip The CPU is stopped after this This process may have to be repeated until the entire data is programmed into the flash 7 1 3 Available options for flash programming In general there are two possibilities in order to use Flasher for flash programming e Using Flasher stand alone to program the target flash memory stand alone mode e Using Flasher in combination with J Flash to program the target flash memory Flasher in J Link mode 7 1 3 1 Using Flasher in stand alone mode In order to use the Flasher in stand alone mode it has to be configured first For more information about how to setup Flasher for using in stand alone mode please refer to Setting up Flasher for stand alone mode on page 19 7 1 3 2 J Flash Complete flash programming solution J Flash is a stand alone Windows application which can read write data files and program the flash in almost any AR
45. ges ERR255 Invalid parameters or ERR255 Baudrate is not supported Note After sending the BAUDRATE command you will first have to wait until the Flasher responds with the tok message It is recommended wait 5ms before sending the next command with the new baudrate in order to give the Flasher the time to change the baudrate CANCEL This command can be sent to abort a running program It may take a while until the current program is actually canceled Flasher will respond with ERROO7 CANCELED ERASE This command can be sent to erase all selected target flash sectors Flasher will reply the following sequence of messages ACK STATUS INITIALIZING STATUS CONNECTING STATUS UNLOCKING STATUS ERASING OK Total 0 893s Erase 0 483s PROGRAM This command can be used instead of AUTO to program a target without erasing the target before programming and without performing a final verification RESULT This command can be sent any time even during other command execution Flasher responds with the last result of the previously executed command Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 41 SELECT Filename The SELECT command is used to select a specific config and data file pair which should be used by Flasher to program the target Filename specifies the name of file pair without extensions CFG and DAT o
46. gramming continuous serial numbers Serial number is 1 4 bytes in size Start serial number increment serial number size and address is configured in the J Flash project 2 Programming custom serial numbers from a serial number list file Start line into serial number list file to get next serial number bytes line increment serial num ber size and address is configured in J Flash project Serial number list file needs to be specified and created by user In the following some generic information how to setup Flasher amp the J Flash project for serial number programming are given Note Full serial number programming support has been introduced with V4 51d of the J Flash software and the Flasher firmware that comes with it Note Currently programming of serial numbers is only supported for stand alone mode Future versions of J Flash may also support serial number programming in J Link mode 2 4 1 Serial number settings In order to enable the programming of serial numbers in stand alone mode the J Flash project has to be configured to enable programming a serial number at a spe cific address This is done by enabling the Program serial number option as shown in the screenshot and table below r Production mode Delay before start 20 ms Voltage threshold 3000 mv Delay before start 500 ms M Program serial number Address 08001000 Len 4 Next SN 1234567 Increment 1 r Actions performed by Auto
47. gs 2 4 2 Serial number file When selecting File gt Download serial number file to Flasher J Flash will cre ate a Serial number file named as lt JFlashProjectName gt _Serial txt This file is downloaded as SERIAL TXT on Flasher The file is generated based on the serial num ber settings in the J Flash project and will contain the value defined by the Next SN option The serial number file can also be manually edited by the user since the serial number is written ASCII encoded in the SERIAL TXT file 2 4 3 Serial number list file In order to program custom serial numbers which can not be covered by the standard serial number scheme provided by J Flash e g when programming non continuous serial numbers or having gaps between the serial numbers a so called serial num ber list file needs to be created by the user Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 28 CHAPTER 2 Working with Flasher When selecting File gt Download serial number file to Flasher J Flash will look for a serial number list file named as lt JFlashProjectName gt _SNList txt in the directory where the J Flash project is located This file is downloaded as SNList txt on Flasher The serial number list file needs to be created manually by the user and has the following syntax e One serial number per line e Each byte of the serial number is described by two hexadecimal digits Example A 8 byte seri
48. h Name Address 0 100000 xt x2 al Connection USB Device 0 Target interface Init JTAG speed 200 kHz FF JTAG speed 12000 kHz 86 TAP number lt not used gt IRPre not used 88 MCU Atmel ATS1SAM7X256 98 Clock speed 47923200 Hz Endian Little Ba Check coreld Yes 86 BA Hed Core Id Ox3FOFOFOF 68 CRT Da EE Ee Use target RAM Yes eg EE Ee RAM address 04200000 eg CEST En Er RAM size 64 KB 66 mad dggunu aa EE Flash memory ATS1SAMTX258 inter 66 Manufacturer Atmel eg BIIIRDIIBIIIGII Size 256 KB Ba E eee T Flash Id 0x0 un W I J K Checkflashld No L M N 0 Base address 0x100000 D P Q R 8 Organization 32 bits x 1 chip ir c ee m 190178 5 5D 98 aa ee See ities El El Loc List of MCU devices read successfully 1964 Devices Creating new project file C Program Files 86 SEGGER JLinkARM_V458a Default flash New project created successfully Close project Project closed Opening project file C Program Files 86 SEGGER JLinkARM_V458a Samples JAlash ProjectFiles AT91SAM7X256 flash Project opened successfully Generating test data 1024 of 1024 sectors selected 1 range 0x 100000 x13FFFF Test data generated successfully 262144 bytes 1 range Completed after 0 261 sec 4 Ready E Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 21 Before downloading the configurati
49. hich data file should be used for programming A sample content of a FLASHER INI file is shown below FILES DataFile Flasherl dat ConfigFile Flasherl cfg Using this method all configuration files and data files which are used in the produc tion only have to be downloaded once From there on a configuration file data file pair can be switched by simply replacing the FLASHER INI by a new one which con tains the new descriptions for the configuration file and data file The FLASHER IN can be replaced in two ways 1 Boot Flasher in MSD mode in order to replace the FLASHER IN 2 If Flasher is already integrated into the production line runs in stand alone mode and can not be booted in other mode Use the file I O commands provided by the ASCII interface of Flasher to replace the FLASHER INI For more information about the file I O commands please refer to File I O commands on page 42 Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 26 CHAPTER 2 Working with Flasher 2 4 Serial number programming Flasher supports programming of serial numbers In order to use the serial number programming feature the J Flash project to be used as well as some files on the Flasher depending on the configuration need to be configured first In general Flasher supports two ways of programming a serial number into the tar get 1 Pro
50. in the Production tab in J Flash this sequence can differ from the one shown above Finally Flasher responds with e 0K if no error occurred e amp ERRxxx if any error occurred during operation xxx represents the error code normally replied to Flasher PC program The ERRxxx message may be followed by an additional error text During execution of the AUTO command Flasher automatically sends status mes sages via RS232 to reflect the state of execution Typically during execution of AUTO command Flasher will reply the following sequence of messages Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 40 CHAPTER 3 Remote control ACK STATUS INITIALIZING STATUS CONNECTING STATUS UNLOCKING STATUS ERASING STATUS PROGRAMMING STATUS VERIFYING OK Total 13 993s Erase 0 483s Prog 9 183s Verify 2 514s AUTO NOINFO This command may be used instead of AuTO if no status messages from Flasher should be sent during execution The NOINFO extension is also available for all other commands The command ends with OK or ERRxxx BAUDRATE lt Baudrate gt This command can be sent in order to change the baudrate of the UART used for the ASCII command interface communication lt Baudrate gt is expected in decimal format If this command succeeds Flasher responds with ACK OK Otherwise it will respond with one of the following error messa
51. input of target CPU It is recommended that this 11 TDI Output pin is pulled to a defined state on the target board Typically connected to TDI on target CPU Target CPU reset signal Typically connected to the RESET 13 nRES I O pin of the target CPU which is typically called nRST nRESET or RESET Table 5 4 Flasher RX pinout 14 pin connector e All pins marked NC are not connected to Flasher RX Any signal can be applied here Flasher RX will simply ignore such a signal e Pins 2 12 14 are GND pins connected to GND in Flasher RX They should also be connected to GND in the target system 5 2 1 Target power supply Pin 8 of the 14 pin connector can be used to supply power to the target hardware Supply voltage is 3 3V 5V max current is 300mA The output current is monitored and protected against overload and short circuit Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 54 CHAPTER 5 Hardware Power can be controlled via the J Link commander The following commands are available to control power Command Explanation power on Switch target power on power off Switch target power off power on perm Set target power supply default to on power off perm Set target power supply default to off Table 5 5 Command List Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 55 5 3 Flasher PPC 14 pin connect
52. l time Trao Tfdo lt 10ns Clock rise time ol Ti lt 10ns Clock fall time Tfc Tr lt 10ns Table 1 5 Flasher PPC specifications 1 2 3 4 Flasher PPC download speed The following table lists Flasher PPC performance values Kbytes second for writing to memory RAM via the JTAG interface Hardware Memory download Flasher PPC 530 Kbytes s 8 MHz JTAG Table 1 6 Download speed of Flasher PPC Note The actual speed depends on various factors such as JTAG clock speed host CPU core etc Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 16 CHAPTER 1 Introduction Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 17 Chapter 2 Working with Flasher This chapter describes functionality and how to use Flasher Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 18 CHAPTER 2 Working with Flasher 2 1 Setting up the IP interface Since hardware version 3 Flasher family comes with an additional Ethernet interface to communicate with the host system These Flashers also come with a built in web server which allows some basic setup of the emulator e g configuring a default gateway which allows using it even in large intranets 2 1 1 Connecting the first time When connecting Flasher the first time it attempts to acquire an IP address via DHCP The recommended way for finding out which IP addres
53. lasher e Three boot modes J Link mode stand alone mode MSD mode Stand alone JTAG SWD programmer Once set up Flasher can be controlled without the use of PC program No power supply required powered through USB Supports internal and external flash devices 64 MB memory for storage of target program Can be used as J Link emulator with a download speed of up to 720 Kbytes second Serial in target programming supported e Data files can updated via USB Ethernet using the J Flash software via RS232 or via the MSD functionality of Flasher Supported Flash programming speed Flasher model Supported cores target depending on target interfaces hardware Flasher ARM ARM7 ARM9 Cortex M JTAG SWD ee SE Renesas RX610 RX621 between 170 and 300 ashen e RX62N RX62T IAN Kbytes second Flasher PPC Power PC e200z0 JTAG up to 138 Kbytes second 1 1 2 Working environment General Flasher can operate 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 Microsoft Windows 2000 Windows XP Windows 2003 Windows Vista Windows 7 or Windows 8 It needs to have a USB Ethernet or RS232 interface available for com munication with Flasher Power supply Flasher requires 5V DC min 100mA via USB connector If USB is not connected the USB connector is used to power the device Supply volt
54. ly from Flasher on page 43 Note In order to use the FREAD command A file has to be opened before via the FOPEN command Otherwise Flasher will respond with the following sequence ACK ERR255 No file opened FSIZE The FSIZE command is used to get the size of the currently opened file on Flasher A typical sequence when using the FSIZE command does look like as follows FSIZE ACK OK 10 file on flasher which is currently open has a size of 16 bytes If the FS1ZE command succeeds Flasher will respond with a 0K lt Size gt reply mes sage For more information about the Flasher reply messages please refer to Reply from Flasher on page 43 Note In order to use the FREAD command A file has to be opened before via the FOPEN command Otherwise Flasher will respond with the following sequence ACK ERR255 No file opened FWRITE lt Offset gt lt NumBytes gt lt Data gt The FWRITE command is used to write to a file on Flasher lt offset gt specifies the offset in the file at which data writing is started lt NumBytes gt specifies the number of bytes which are send with this command and which are written into the file on Flasher lt NumBytes gt is limited to 512 bytes at once This means if you want to write e g 1024 bytes you have to send the FWRITE command twice using an appropriate offset when sending it the second time lt Offset gt and lt NumB
55. mbH amp Co KG 36 CHAPTER 3 Remote control 3 1 Overview There are 3 ways to control Flasher operation e Manual Programming operation starts when pressing the button The LEDs serve as visible indication e Via 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 output e Terminal communication via RS232 Note All three ways to control Flasher operation are working only if Flasher is in standalone mode In J Link MSD mode they have no effect Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 3 2 37 Handshake control Flasher can be remote controlled by automated testers without the need of a connec tion to PC and Flasher s PC program Therefore Flasher is equipped with additional hardware control functions which are connected to the SUBD9 male connector nor mally used as RS232 interface to PC The following diagrams show the internal remote control circuitry of Flasher START BUSY OK Flasher internal Logic Undefined previous state Pin No Function Description A positive pulse of any voltage between 5 and 30V with dura tion of min 30 ms starts Auto function Clear Program 1 START Verify on falling edge of pulse The behavior of the Auto function depends on the project settings chosen in J Flash at the
56. mmonly but incorrectly referred to as JTAG Image An executable file that has been loaded onto a processor for execution Instruction Register When referring to a TAP controller a register that controls the operation of the TAP IR See Instruction Register Joint Test Action Group JTAG The name of the standards group which created the IEEE 1149 1 specification Little endian Memory organization where the least significant byte of a word is at a lower address than the most significant byte See also Big endian Memory coherency A memory is coherent if the value read by a data read or instruction fetch is the value that was most recently written to that location Obtaining memory coherency is difficult when there are multiple possible physical locations that are involved such as a system that has main memory a write buffer and a cache Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 69 Memory management unit MMU Hardware that controls caches and access permissions to blocks of memory and translates virtual to physical addresses Memory Protection Unit MPU Hardware that controls access permissions to blocks of memory Unlike an MMU a MPU does not translate virtual addresses to physical addresses RESET Abbreviation of System Reset The electronic signal which causes the target system other than the TAP controller to be reset This signal is also known as nSRST nSYSRST
57. n the Flasher which should be selected Flasher saves the selected config and data file in the FLASHER INI file So this selec tion is remembered even between power cycling Flasher This may be verfy helpful in cases where several config and data files are stored on Flasher The user can easily switch between these config and data files without con necting Flasher to a host If this command succeeds Flasher responds with ACK OK Find below a sample sequence which shows how to use the SELECT command SELECT ATSAM7_1 ATSAM7_1 CFG and ATSAM7_1 DAT is selected ACK OK AUTO Start auto programming ACK STATUS INITIALIZING STATUS CONNECTING STATUS UNLOCKING STATUS ERASING STATUS PROGRAMMING STATUS VERIFYING OK Total 8 416s Erase 0 005s Prog 6 845s Verify 0 959s SELECT ATSAM7_2 ATSAM7_2 CFG and ATSAM7_2 DAT is selected ACK OK AUTO Start auto programming ACK STATUS INITIALIZING STATUS CONNECTING STATUS UNLOCKING STATUS ERASING STATUS PROGRAMMING STATUS VERIFYING OK Total 8 632s Erase 0 005s Prog 7 051s Verify 0 969s START This command can be sent to release Flasher s target interface All signals from Flasher to target will be set into high Z mode reset of target will be released It may be used to start target application program Flasher will reply with the followi
58. nd prompt or that appears on the display that is system functions file or pathnames Reference Reference to chapters tables and figures or other documents GUIElement Buttons dialog boxes menu names menu commands Table 1 1 Typographic conventions Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG SEGGER Microcontroller GmbH amp 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 SEGG ER 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 efficient 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 develops and produces programming tools for flash microcontrollers as well as J Link a JTAG emul
59. ng sequence of messages ACK STATUS INITIALIZING STATUS CONNECTING OK Total 1 148s STATUS This command can be sent any time even during other command execution Flasher responds with its current state All defined state messages are described under Reply from Flasher on page 43 VERIFY This command can used to verify the target Flash content against the data stored in Flasher Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 42 CHAPTER 3 Remote control 3 3 5 1 File 1 0 commands The ASCII interface of Flasher also supports file I O operations via RS232 The fol lowing file I O commands are supported FCLOSE The FCLOSE command closes the file on Flasher which was opened via FOPEN After this command has been issued further file I O operations except FDELETE are not allowed until the FOPEN command is send again A typical sequence when using the FCLOSE command does look like as follows FCLOSE ACK OK Note When using the FCLOSE command a file has to be open previously opened by FOPEN Otherwise Flasher will respond with the following if no file has been opened ACK ERR255 No file opened FDELETE lt Filename gt The FDELETE command is used to delete a file on Flasher where lt Filename gt speci fies the name of the file A typical sequence when using the FDELETE command does look like as follows
60. nt application can connect to Flasher via Telnet on port 23 Find below a screen shot of Flasher which is remot controlled via Telnet Bi Telnet 192 168 1141 Le a J Link ARM Flasher ARM U3 telnet shell E J Link ARM Flasher ARM U3 compiled Jan 29 2013 17 58 39 HSTATU RIF G Total 7 797s Erase 0 004s Prog 3 949s Verify 087s gt Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 39 3 3 5 Commands to Flasher The table below gives a overview about the commands which are supported by the current version of Flasher firmware Click on the names for a detailed descripion Commands AUTO AUTO NOINFO CANCEL ERASE PROGRAM RESULT SELECT lt Filename gt START STATUS VERIFY File 1 0 commands FCLOSE FDELETE lt Filename gt FOPEN lt Filename gt FREAD lt Offset gt lt NumBytes gt FSIZE FWRITE Offset NumBytes Data Reply from Flasher ACK NACK OK OK lt NumBytes gt lt Data gt OK lt Size gt STATUS ZERRxxx AUTO The AUTO command behaves exactly as the start button or external remote control input Usually the following command sequence will be performed when receiving the AUTO Command e Flasher starts erasing e Flasher programs target CPU e Flasher verifies target CPU Depending on the settings chosen
61. o Tfdo lt 10ns Clock rise time T c Tre lt 10ns Clock fall time Tfc Tg lt 10ns Table 1 1 Flasher ARM specifications The following table lists Flasher ARM perfo to memory RAM via the JTAG interface Flasher ARM download speed rmance values Kbytes second for writing Hardware ARM7 memory download Flasher ARM 720 Kbytes s 12MHz JTAG Table 1 2 Download speed of Flasher ARM Note host CPU core etc Flasher User Guide UM08022 The actual speed depends on various factors such as JTAG clock speed 2004 2013 SEGGER Microcontroller GmbH amp Co KG 12 CHAPTER 1 Introduction 1 2 2 Specifications for Flasher RX Gen eral Supported OS Microsoft Windows 2000 Microsoft Windows XP Microsoft Windows XP x64 Microsoft Windows 2003 Microsoft Windows 2003 x64 Microsoft Windows Vista Microsoft Windows Vista x64 Microsoft Windows 7 Microsoft Windows 7 x64 Microsoft Windows 8 Microsoft Windows 8 x64 Operating Temperature 5 C 60 C Storage Temperature 20 C 60 C Relative Humidity non condensing lt 90 rH Mechanical Size without cables 121mm x 66mm x 30mm Weight without cables 119g Available interfaces USB Host interface USB 2 0 full speed Ethernet Host interface 10 100 MBit RS232 Host interface RS232 9 pin Target interface JTAG 20 pin shipped with 14 pin adapter for
62. on project and program data data file to Flasher the connection type USB IP needs to be selected in the project These set tings are also saved on a per project basis so this also only needs to be setup once per J Flash project The connection dialog is opened by clicking options gt Project settings gt General Project settings Es General Target Interface CPU Flash Production J Flash ARM is a software for J Link ARM It requires a license which can be obtained from SEGGER www segger com This software is capable of programming the flash memory of several ARM micros as well as external Flash connected to ARM cores Connection to J Link Device 0 C USB SN 0 C ICPAP User interface mode Engineering More options typically used for setup Simplified Less options typically used for production The connection dialog allows the user to select how to connect to Flasher When con necting to a Flasher via TCP IP it is not mandatory to enter an IP address If the field is left blank and File Download to programmer is selected an emulator selection dialog pops up which shows all Flasher which have been found on the network The user then can simply select the Flash he wants to download the configuration to SEGGER J Link V4 58a Emulator selection Flasher ARM ENT J Link ARM Pro V3 00 J Link ARM Pro V3 00 J Link ARM Pro V3 00 J Link ARM Pro V3 00
63. or Flasher PPC itself has a 20 pin JTAG connector mounted but comes with a 14 pin adapter for Pow TDI erPC devices TDO TCK nRES VDDE7 The following table lists the Flasher PPC 14 pin JTAG nRDY pinout Pin Signal Type Description JTAG data input of target CPU It is recommended that this 1 TDI Output pin is pulled to a defined state on the target board Typically connected to TDI on target CPU JTAG data output from target CPU Typically connected to TE EG TDO on target CPU JTAG clock signal to target CPU It is recommended that this 5 TCK Output pin is pulled to a defined state on the target board Typically connected to TCK on target CPU 7 seg NC This pin is not connected to Flasher PPC 8 NC This pin is not connected to Flasher PPC Target CPU reset signal Typically connected to the RESET 9 nRES I O pin of the target CPU which is typically called nRST nRESET or RESET JTAG mode set input of target CPU This pin should be 10 TMS Output pulled up on the target Typically connected to TMS on tar get CPU This is the target reference voltage It is used to check if the target has power to create the logic level reference for 11 VDDE7 Input 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 Nexus ready output Indicates to the development tools that 13 nRDY Input th
64. output from a TAP controller to the data sink downstream Usually this is seen connecting the last TAP controller to the J Link Interface Unit Test Access Port TAP The port used to access a device s TAP Controller Comprises TCK TMS TDI TDO and nTRST optional Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 70 CHAPTER 8 Glossary Transistor transistor logic TTL 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 OV Word A 32 bit unit of information Contents are taken as being an unsigned integer unless otherwise stated Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 71 Chapter 9 Literature and references This chapter lists documents which we think may be useful to gain a deeper under standing of technical details Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 72 CHAPTER 9 Literature and references Reference Title Comments This document describes J Link and J Link J Link J Trace User Guide J Trace It is publicly available from SEGGER www segger com This document describes J Flash It J Flash J Flash User Guide is publicly available from SEGGER www segger com Table 9 1 Literature and References Flasher User Guide
65. pec tive holders Contact address SEGGER Microcontroller GmbH amp 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 Revisions This manual describes the Flasher device For further information on topics or routines not yet specified please contact us Revision Date By Explanation Chapter Working with Flasher Section LED status indicators updated Chapter Remote Control V4 63a Rev 0 1130131 EL Section ASCII command interface Chapter ASCII interface via Telnet added Flasher ARM Flasher RX and Flasher PPC manual have been combined V4 64a Rev O 132602 EL V4 62 Rev O 130125 EL Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG About this document This document describes the Flasher family Flasher ARM Flasher RX and Flasher PPC It provides an overview about the major features of the Flasher gives some background information about JTAG and describes Flasher related software packages available from Segger Finally the chapter Support and FAQs on page 61 helps to troubleshoot common problems For simplicity we will refer to Flasher ARM RX PPC as Flasher in this manual Typographic conventions This manual uses the following typographic conventions Style Used for Body Body text awed Text that you enter at the comma
66. pin adapter for Renesas PPC JTAG Interface Electrical Power Supply USB powered 100mA for Flasher ARM 500 mA if target is powered by Flasher ARM Target interface voltage VIF 1 2 5V Target supply voltage 4 5V 5V on the 14 pin adapter the tar get supply voltage can be switched between 3 3V and 5V Target supply current max 400mA Reset Type Open drain Can be pulled low or tristated Reset low level output voltage VoL VoL lt 10 of VIF For the whole target voltage range 1 8V lt Vip lt 5V LOW level input voltage Vj ViL lt 40 of VIF HIGH level input voltage Vj Vin gt 60 of VIF For 1 8V lt Vif lt 3 6V LOW level output voltage VoL with a load of 10 kOhm VoL lt 10 of Vig HIGH level output voltage Voy with a load of 10 kOhm Vou gt 90 of Vig For 3 6 lt Vie lt 5V LOW level output voltage VoL with a load of 10 kOhm VoL lt 20 of VIF HIGH level output voltage Voy with a Vox gt 80 of VIF load of 10 kOhm Table 1 5 Flasher PPC specifications Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG JTAG Interface Timing Max JTAG speed up to 12MHz Data input rise time Tal Trai lt 20ns Data input fall time Tri Tou lt 20ns Data output rise time Trao Trdo lt 10ns Data output fal
67. s has been assigned to Flasher is to use the J Link Configurator The J Link Configurator is a small GUI based utility which shows a list of all emulator that are connected to the host PC via USB and Ethernet For more information about the J Link Configurator please refer to UM08001 JLinkARM pdf J Link J Trace user guide chapter Setup section J Link Configurator The setup of the IP interface of Flasher is the same as for other emulators of the J Link family For more information about how to setup the IP inter face of Flasher please refer to UM08001 J Link J Trace User Guide chapter Setup section Setting up the IP interface For more information about how to use Flasher via Ethernet or prepare Flasher via Ethernet for stand alone mode please refer to Operating modes on page 19 Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 2 2 Operating modes Flasher is able to boot in 3 different modes e J Link mode e Stand alone mode e MSD Mass storage device mode If Flasher can establish an Ethernet uplink or can enumerate on the USB port it boots in J Link mode In this mode Flasher can be used as a J Link When supply power is enabled and Flasher can not establish a connection with the host the stand alone mode is started In this mode Flasher can be used as a stand alone flash programmer When the Start Stop button is pressed when power supply is enabled Flasher boots in MSD mode In
68. solator draws power over this pin VCC Output The target side of the isolator draws power over this pin nTRST Output JTAG Reset Output from Flasher to the Reset signal of the target JTAG port Typically connected to nTRST of the target CPU This pin is normally pulled HIGH on the tar get to avoid unintentional resets when there is no con nection TDI Output 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 TMS Output JTAG mode set input of target CPU This pin should be pulled up on the target Typically connected to TMS of target CPU TCK Output JTAG clock signal to target CPU It is recommended that this pin is pulled to a defined state of the target board Typically connected to TCK of target CPU 11 RTCK Input Return test clock signal from the target Some targets must synchronize the JTAG inputs to internal clocks To assist in meeting this requirement you can use a returned and retimed TCK to dynamically control the TCK rate 13 TDO Input JTAG data output from target CPU Typically connected to TDO of target CPU 15 RESET I O Target CPU reset signal Typically connected to the RESET pin of the target CPU which is typically called nRST nRESET or RESET 17 N C N C This pin is not connected on the target side of the isol
69. this mode Flasher boots as a mass storage device 2 2 1 J Link mode If you want to use Flasher for the first time you need to install the J Link software and documentation package After installation connect Flasher to the host PC via USB or Ethernet For more information about how to install the J Link software and documentation package please refer to the J Link J Trace User Guide chapter Setup which can be downloaded from http www segger com download_jlink html 2 2 1 1 Connecting the target system Power on sequence In general Flasher should be powered on before connecting it with the target device That means you should first connect Flasher with the host system via USB Ethernet and then connect Flasher with the target device via JTAG or SWD Power on the device after you connected Flasher to it Flasher will boot in J Link mode Verifying target device connection with J Link exe If the USB driver is working properly and your Flasher is connected with the host sys tem you may connect Flasher to your target hardware Then start the J Link com mand line tool JLink exe which should now display the normal Flasher related information and in addition to that it should report that it found a JTAG target and the targets core ID The screenshot below shows the output of JLink exe EI C Program Files x86 SEGGER LinkARM_V458a JLink exe eJ Ee ez SEGGER J Link Commander U4 58a for help Compiled Dec 5 2612 1
70. ytes gt are expected in hexadecimal format FWRITE 0 200 lt Data gt FWRITE 200 200 lt Data gt The data is expected in hexadecimal format two hexadecimal characters per byte The following example illustrates the use of FWRITE Data to be send Hello ASCII values 0x48 0x65 0x6C Ox6C Ox6F 0x20 0x21 FWRITE 0 7 48656C6C6F2021 Note In order to use the FWRITE command a file has to be opened via the FOPEN command first Otherwise Flasher will respond with the following sequence ACK ERR255 No file opened 3 3 6 Reply from Flasher The reply messages from Flasher follow the same data format as commands Any reply message starts with ASCII start delimiter ends with simple carriage return ASCII code 13 and is sent in uppercase In contrast to commands replies can be followed by a description message which gives more detailed information about the reply This description is sent in mixed case The sok reply for example is such a reply It is followed by a string containing information about the performance time needed for the operations OK Total 13 993s Erase 0 483s Prog 9 183s Verify 2 514s Flasher User Guide UM08022 2004 2013 SEGGER Microcontroller GmbH amp Co KG 44 CHAPTER 3 Remote control The following reply messages from Flasher are defined ACK Flasher replies with ACK message on reception of any defined command before the command itself is executed
Download Pdf Manuals
Related Search
Related Contents
Alzheimer et dépendances - Espace national de réflexion éthique HP xw4400 PC Desktop Français - Teddington ht1260 - Human Touch Samsung L83T Manuel de l'utilisateur Copyright © All rights reserved.
Failed to retrieve file