Home
H-JTAG - AS-kit hardware
Contents
1. 4 1 4 5 Auto Flash Download 4 1 dA luigi u u uuu cC 4 2 45 USB LFT Interface Selection k l 4 3 46 JTAG COnne uration 4 3 427 LET Fort Seint u u Eie uu ME M IM iiis 4 6 4 8 aue SILIO EE 4 6 4 90 ireet Manaseru u uuu Rr 4 7 410 TAP Gu IPC IDIOT T PTT 4 7 www 4 8 4 12 TER TOONS 45i dicio S b ci ci coe 4 10 4 1 Check Tor Updates uuu E 4 10 Configure H Flasher 5 1 H Flasher Confiouration Fil 5 1 5 2 H Flasher Production 2 2225 5 1 5 3 Workflow of H Flasher 5 2 USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 5 4 Program ou 5 3 JM TUM CI Pee 5 9 5 0 Example ATOISAMTX2350 5 10 5 7 Example 2 221055 220020064668 5 14 Chapter 6 Initialization Script 6 1 Definition of Script Commands
2. 6 1 6 2 Edit EImtialization SCEIpE 6 4 Chapter7 Configure Debuggers Tel MCOMMO UPC AXD m EE 7 1 1 2 mtt H Sas 7 4 7 3 Cone ure TAR uuu lu 7 8 T Conleure IK 7 12 Chapter 8 Auto Flash Download 8 1 Example Auto Flash Download For 766 8 2 Chapter 9 H Flasher Production Mode Appendix A H JTAG Q amp A Appendix B List of Chips Supported by H JTAG USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved III Preface A About this manual H Jtag user manual introduces how to configure and use H Jtag and H Flasher Some illustrative examples are also given in this manual for reference For more information please visit www hjtag com or forum hjtag com B Using this manual This manual is intended to assist user In the use of H Jtag and H Flasher If you are a beginner this manual is a good quick start guide If you are a advanced user you can use this manual as a reference and read it selectively C Feedback If you find any error or omission in this document please contact us Any suggestions and comments are welcome The contact email address is twentyone hjtag com USER MANUAL Copyright 2014 WWW HJTAG C
3. 2 TARMP DLL pL PC21 Cancel Defaults Fig 7 25 Debug Page USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 7 13 In the Debug page H JTAG drivers ARM H JTAG H JTAG CORTEX M3 and H JTAG CORTEX MA can be found on the list as shown in Fig 7 26 and 7 27 User should select one of the drivers accordi ngly Options for Target HCB2100 Device Target Output Listing User C C Asm Linker Debug Use Simulator Limit Speed to Real Time Settings Load Application at Startup Run to main Initialization File Measure a Edit Restore Debug Session Settings Breakpoints Toolbox Watchpoints amp Memory Display CPU DLL SARM DLL E 2100 Parameter Dialog DLL Parameter DARMP DLL 21 9 Use H JTAG ARM Settings ULINK Lajet Initialization m Restore Debug Session Settings Breakpoints Toolbox Watchpoints Memory Display Driver DLL SARM DLL Parameter Dialog DLL Parameter TARMP DLL 21 9 Fig 7 26 H JTAG Debug Drivers W Options for Target LPC1768 Flash USER MANUAL Device Target Output Listing User CAC Asm Linker Debug Utiities Use Simulator Limit Speed to Real Time Load Application at Startup Initializ
4. 202 SST39VF400A 55 39 512 SST39VF6401 SST39VF6401B SST39VF6402 SST39VF6402B SST39VF800A SST39WF400A STM32F050X4 STM32F100X6 STM32F101X4 SIM32FIOI XE STM32F102XB STM32F103XD STM32F105XC STM32F205XF STM32F207XG STM32F302XC STM32F373XB STM32F405XE STM32F407XG STM32F417XE SIM32F429XI STM32L100X8 STM32L151XC STM32F050X6 STM32F100X8 STM32F101X6 STM32F101XF STM32F103X4 STM32F 103 XE STM32F107XB SIM32F205XG SIM32F215XE STM32F303XB SIM32F373XC 51 32 405 STM32F415XC STM32F417XF SIM32F437XG STM32L100XB SIM32LISIXD STM32L152X8 STM32L152XB STM32L152XC STM32L152XD STM32L162XD 7 SIR7IXFXI SIR75XFEXI STR75 XFX2 5 91 2 STR9IXFAX42 STR9I XFAXA4A M29DWI28F M29DW 128G SIR7IXFX2 5 73 SIR73XFXI SIM32F051 X4 STM32F100XB STM32F101X8 STM32F101XG STM32F103X6 STM32F103XF STM32F107XC SIM32F207XB SIM32F215XG SIM32F303XC SIM32F383X8 STM32F405XG STM32F415XE STM32F417XG STM32F437XI SIM32L100XC SIM32L152X6 SIR73XFX2 5 75 46 STR9IXFAXA7 STRO9IXFX32 5 91 42 STROI XFX44 STROI XFX46 STROI XFXA7 FLASH DEVICEs M29DW323DB M29DW323DT M29DW324DB M29DW324DT M29DW640F M29DW641F M29W008AB M29WO08AT M29W064FB M29WO064FT M29W128FH M29W128FL M29W128GH M29W128GL M29W160EB M29WI60ET M29W160FB M29W160FT M29W320DB M29W320DT M29W320EB M29W320ET M29W320FB M29W320FT M29W400DB M29W400DT M29W640FB M29W640FT M29W640GB M29W640GH M29W64
5. 25 275 0940 Reset Configuration Target ARMTTDMI Little Endian Check Init Scripts Security Programming Options General Plain Binary Format On Chip Flash Flash Base Address Nand Flash Sie File H Flasher Help Entire Chip Erase Entire Chip Blank PO Read Fig 5 8 Programming Settings Then click Program to start the programming During the process user can see the progress average speed and used time When the programming is completed successfully H Flasher notifies user with a message as shown in Fig 5 9 USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 5 12 nx Mew Load Save Save amp s Options Exit About Program Wizard gt gt Programming 915 256 1 Flash Selection Flash ATSISAMTX256 275 0940 Reset Configuration Target ARM7TDMI Little Endian Check 3 Init Scripts amp Programming H Flasher 5 Options General Programmed and Verified 2 successfully Program b On Chip Flash Verify Nand Flash 40 512 KB s Size 256 KB H Flasher Help o Cese Erase To Entire Chip Blank Address 1 Read Size Fig 5 9 Programming Is Completed 5 6 6 Save Configuration User can save the above configuration as a HFC file Later user can load the HFC file in H Flasher directly and need not to configure aga
6. Enable Auto Init New Load DK Cancel ITCK 1 0M USB Fig 6 1 H Jtag Script Editor Mew Load Save SaveAs Options Exit About Program Wizard gt gt Init Scripts Flash Selection cide width Address Value Configuration Init Scripts Programming Options General Or Chip Flash Nand Flash Production H Flasher Help Fig 6 2 H Flasher Script Editor USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 6 4 6 2 1 Edit Buttons In the script editor there are four buttons for editing These four buttons are used to add delete move up or move down a script The detailed definitions are listed below 4 Move up the selected script Add a new script 4 Delete selected script Move down the selected script 6 2 2 Edit Script For each new script user first needs to select a command and then specify the parameters as defined To add a new script click Add on the right side After a new script has been added the editor looks like Fig 6 3 gt gt Init Script Fig 6 3 Add a New Script A command list can be shown up by double clicking column The command list is shown in Fig 6 4 User can select a command from the list as needed gt gt Init Scripts Address Value 1 gt Fig 6 4 Command List USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 6 5 If SysReset
7. H Flasher New Load Save SaveAs Options Exit About Program Wizard gt gt Programming SST39 F1601 Flash Selection Flash SST38VF1501 0x234B00BF Reset Configuration 5 LITTLE ENDIAN Check Init Scripts Security UnProtect Programming Pom Options General Plain Binary Format Program On Chip Flash Flash Base Address Verify Sre File N CATEST BIN wo H Flasher Help Entire Chip Erase Entire Chip Blank Address 1 Read Size Fig 5 15 Programming Settings Then click Program to start the programming During the process user can see the progress average speed and used time When the programming is completed successfully H Flasher notifies user with a message as shown in Fig 5 16 New Load Save SaveAs Options Exit About Program Wizard gt gt Programming SST39 F1601 n l0 xl H Flasher 1 Flash Selection Flash SST38VF1B01 0 234800 Reset P Configuration Target ARM7TDMI S LITTLE ENDIAN 3 Init Scripts _ Programming t Q 5 Options Programmed and Verified x2 successfully General On Chip Flash Aem 110KB s 122 KB s H Flasher Help Fig 5 16 Programming Is Completed 5 7 6 Save Configuration As shown previous example user can also save the above configuration as a HFC file for future use USER MANUAL Copyright 2014 WWW HJTAG COM All Ri
8. 0x378 LP2 0x278 LPs AA w Testing Mn Fig 4 10 LPT Port Setting 4 8 Target Setting H Jtag reads device ID via JTAG and determines what the ARM core is H Jtag can recognize most of the common chips For target that can t be recognized user can designate the ARM core in target settings The dialog for target settings 1s shown in Fig 4 11 Most of the ARM chips support both little endianess and big endianess With different endianess the storage of data and instructions are totally different If the endianess 1s not specified correctly the debug definitely goes wrong User can specify the endianess in target settings see below Target Settings E xl f Little Endian Big Endian Fig 4 11 Target Setting USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 4 6 4 9 Target Manager In above section it is mentioned that H Jtag determines the ARM core based on the device ID For chips can t be recognized user can specify the ARM core manually User can also add the new device ID into the chip list After the chip list is updated H Jtag can detect and recognize the new chip automatically All this can be done in the target manager To add a new device ID user needs to input the ID and specify the according ARM core In target manager user also can delete existing device IDs The target manager 1s shown in Fig 4 12 Target Manager X Delete Existing ID Code MU ID Cad
9. 4RM Examples Blinky Blinky c ut window s 1 Keil ARM Examples Blinky Blinky Uy2 a Buia Ki Unknown Target L 12C 67 2 Fig 7 23 Menu of Options Set Project options USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 7 12 Then a dialog of options is shown up which looks like Fig 7 24 Options for Target 1 2100 BJ Device Target Output Listing Asm LA Locate L Misc Debug Utilities Philips LPC2124 tal MHz Endian Use On chip ROM 00 Dx3FFFF Operating system None Use On chip RAM 0540000000 40003 External Memory Stark Size Cancel Defaults Fig 7 24 Dialog of Options In the dialog shown in Fig 7 24 active the Debug page Device Target Output Listing Asm L Locate LA Debug tilities C Use Simulator Settings Use ULINK ARM D ebugger Settings Limit Speed to Real Time Load Application at Startup Run to maini Load Application at Startup Aur to maini Initialization File Initialization File Restore Debug Session Settings Breakpoints Toolbox Z W atchpoints amp Memory Display Restore Debug Session Settings Breakpoints Toolbox Watchpoints Memory Display CPU DLL Parameter Driver DLL Parameter SARM DLL SARM DLL Dialog DLL Parameter Dialog DLL Parameter DARMP DLL
10. H JTAG USER MANUAL Doc Edition L Release Date 2014 02 28 WWW HJTAG COM H JTAG USER MANUAL Copyright 2014 H JTAG All Rights Reserved Release Information Date Issue 2007 10 01 A 2007 11 30 2008 03 03 2009 01 08 2009 04 24 2009 10 08 2010 01 20 2010 06 01 2010 08 20 2011 06 01 2012 02 15 2014 02 28 EE m Im lt Property Notice Change Release first edition Revised edition Corrected the illustration of TAP configuration Updated for new software version Updated for new software version Updated for new software version Updated for new software version Updated for new software version Updated for new software version Updated for new software version Updated for new software version Updated for new software version l JTAG is a standard IEEE 1149 proposed by IEEE The copyright belongs to IEEE 9375227 Official Website HTTP ANWW HJTAG COM Support HTTP FORUM HJTAG COM SUPPORT HJTAG COM All the registered trademarks and logos mentioned in this manual belong to their respective owners All the products and services described in this manual also belong to their respective owners If this manual harms your copyright please contact us and we will make the correction accordingly This manual is an open document User can redistribute it freely 1f only the integrality can be guaranteed USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved
11. Preface Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Contents AX Xbout this NEIanudl d A aaa GE IV Use this M nual n IV C Feedback IV H Jtag Introduction LE Aout 1 1 1 27 COMMUNICATION a uuu asus ks IS L Supported ARM C Ores ss 1 2 Ld Supported IDES 1 2 Installation and GUI 21 Tnsta lation een eee 2 1 2 2 2 3 229 GUI OUEST 2 3 24 GULOLTEEIaSDOE u sau O q 2 8 H Jtag USB Emulator 31 Hardware Feature Interface iss wu sss ei ben gs 3 1 5 2 Different Emulator Editions u u aS u u 3 3 3 3 Driver 5 5 Configure H Jtag 41 Detect Tartil 4 1 522
12. r H JTAG Server Control Flasher Init Tools Settings Options Help Unlock Debug Port Luminary Fig 2 12 Tools Menu Unlock debug port for Luminary series Settings Menu as shown in Fig2 13 File Control Flasher Init Tools Settings Options Help x 5 P LISBILPT Selection b USB Jtag Setting LPT Jtag Setting LPT Port Setting Target Setting ilb Target Manager TAP Configuration Fig 2 13 Settings Menu USB LPT Selection Selection of hardware interface USB JTAG Setting JTAG setting for USB LPT JTAG Setting JTAG setting for LPT 4 LPT PORT Setting Port setting for LPT Target Setting Target setting 4 Target Manager Device ID manager 4 Configuration TAP configuration B Options menu as shown in Fig2 14 E File Control Flasher Init Tools Settings Options Help gt Jd Options Window B Connection Made U vector Catch Config v Disable Semihasting Disable vector Catch Report Data Abort Disable IAR 0x8 Fig 2 14 Options Menu 4 Options Window Open the main window of options Connection Mode Selection of different connection modes 4 Vector Catch Config Configuration for vector catch 4 Disable Semihosting Disable semihosting function 4 Disable Vector C
13. x Not connect Mer Remote 9 Click to Cc Me Enter a name and a description the new entry in the ARMulator connection list Add DLL Reset list Configure Remove Duplicate Close Currently opened fle sing oP Fig 7 11 Create New RDI Target Dialog USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 7 6 After that user can find that H Jtag has been added into RVDS as shown in Fig 7 12 In this step user can check the basic information about H Jtag by clicking Configure or double clicking H JTAG The basic information is shown in Fig 7 13 To complete the configuration please click Close in Fig 7 12 wa RYDEBUG Unattached ni BO File Edit Target List uum Use the check boxes ta add or remove ADI targets from the connection manager Ret i SOL inti LL Nam Version Description O O O CHITA E Wot connect Click to Cc 27 Remote v1 2 Angel debug protocol serial part v lt S Wee ARM JTAG debug interface parallel port 1 ARMulator v1 2 ARM instruction set simulator 4 El Name il Add DLL Reset list Configure Remove Duplicate Close Currently opened File Ln 1 Col 1 ER xd Fig 7 12 RVDS Configuration About H JTAG xi H JTAG Ver Na BUILD Date Http hitag
14. 1 351635 1 351958 1 352412 1 352651 1 352939 1 351601 1 351637 1 351960 1 352432 1 352671 1 352948 1 351607 1 351751 1 351968 1 352533 1 352678 1 352950 1 351608 1 351776 1 352016 1 352601 1 352730 1 352965 1 351620 1 351850 1 352110 1 352608 1 352739 1 352893 LM38300 1 385301 LM38308 1 395310 LM3S315 1 385316 1 385317 35328 1 353739 0 353748 1 353749 1 353759 1 353768 0 353326 0 355632 1 355652 1 355662 0 355732 1 355737 1 355739 1 355747 1 355749 1 355752 1 355757 1 355762 0 355767 0 355768 0 355769 0 365600 LM3S601 LM3S608 LM3S610 1 356100 1 385611 0 356110 LM3S612 1 385613 LM3S615 0 345617 LM3S618 1 35628 1 356420 1 356422 0 356432 1 356537 0 356610 0 356611 1 356618 1 356633 1 356637 1 356730 0 356753 1 356911 1 356916 1 356918 1 356938 1 356950 1 356952 1 356965 LM3S800 LM3S801 35808 LM3S811 1 345812 1 365815 1 365817 1 358818 1 385828 1 358530 1 358538 1 358630 1 358730 1 358733 1 358738 1 358930 1 358933 1 358938 1 358962 1 358970 1 358971 1 359790 1 359792 LM3S9B90 1 353651 USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved B 3 LM3S9B92 LM3S9B95 LM3S9B96 MACRONIX FLASH DEVICEs MX29F040X MxX29F200XB MX29F200XT MX29F400XB MX29F400XT MX29GLI2SE MX29GL256 MX29LV002XB MX29LV002XT MX29LV004XB MX29LV004XT MX29LV008XB MX29LV008XT MX29LV040X MX29LVI28XB MX29LVI28XT MX29LV160XB MX29LV160XT
15. Click Next bo continue the installation WARNING This program is protected by international copyright law and treaties Unauthorized reproduction or distribution of this program or any portion of it may result in severe civil and criminal penalties and will be prosecuted to the maximum extent of the law e Fig 2 1 Installation Step 1 In the second step user will see the license agreement as shown in Fig 2 2 Please read the agreement carefully To accept it tick I agree with the above terms and conditions Then click Next Otherwise click Exit to exit the installation Installing H JTAG E x License Agreement To proceed with the installation you must accept this License D 4 Agreement Please read it carefully is a Free software For personal use only Please do not use For commercial purpose Please note that this program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY User should be responsible For any consequences caused Install or use this software means you agree with and accept the above terms and conditions Otherwise please stop to use this software rights reserved Copyright C3 Twentyone 2004 2007 1 agree with the above terms and conditions lt Back Fig 2 2 Installation Step 2 In the third step user will see the destination folder dialog shown in Fig 2 3 In this dialog user can choose
16. Flease select a target environment from the above list or add a target environment HDI Lag J to the list Note that a target environment has to be configured at least once before Log file it can be used Severe Cancel Help gt Pas No Image 2 For Help press F1 Fig 7 2 Choose Target Dialog In the above figure click an open dialog Fig 7 3 is popped up In this dialog please choose H JTAG DLL which is located under the folder where H Jtag 15 installed Then click File Search m Ec aba r i nx i Ux T Open 3 xl arge Tare E Add Look in HJTAG EJ Remove Rename Saye As Eontigure System Outp RDI Log L Log file File name HDI Severe Files of type DLLs dll Cancel 2 Cancel Help 4 gt Image Mame 2 For Help press F1 Fig 7 3 Choose H JTAG DLL USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 1 2 After H JTAG DLL 1s selected user can find that H JTAG DLL has been added as shown in Fig 7 4 In this step user can check the basic information about H Jtag by clicking Configure or double clicking H JTAG The basic information 15 shown in Fig 7 5 To complete
17. MX29LVIO6I XB MX29LVI6I XT MX29LV320XB MX29LV320XT MX29LV321 XB MX29LV321 1 XT MX29LV400XB MX29LV400XT MX29LV640XB MX29LV640XT MX29LV800XB MX29LV800XT MARVELL ARM MCUs PXA210 PXA250 PXA255 PXA260 PXA270 PXA300 PXA310 PXA320 IXPAXX IXP2XXX MICREL ARM MCUs KSZ8695 KSZ8695PX KSZ8695X KSZ9692PB KSZ9692XPB KSZ8692PB KSZ8692XPB MICRON FLASH i5 Fr MT29FIGxxABB MT29FIGxxABB MT29F2G08 MT29F4G08 MT29F8GO8 MT29F2G16 MT29F4G16 4 NUMONYX FLASH NANDO0IG B2B NAND02G B2C NXP ARM MCUs LPC1101LV LPC1102 LPC1102LV LPC1104 LPC1110 LPC1111 002 LPC1111 101 LPC1111 102 LPC1111 103 LPC1111 201 LPC1111 202 LPC1111 203 LPC1112 101 LPC1112 102 LPC1112 103 LPC1112 201 112 202 112 203 LPC1112LV 003 11121 103 113 201 LPC1113 202 LPC1113 203 113 301 LPC1113 302 LPC1113 303 LPC1114 102 LPC1114 201 LPC1114 202 LPC1114 203 LPC1114 301 LPC1114 302 LPC1114 303 LPC1114 323 LPC1114 333 LPCIIIALV 103 303 115 303 0 2 1 04 LPC11A11 001 LPC11A12 101 LPC11A13 201 LPC11A14 301 LPC11C12 301 LPC11C14 301 LPC11C22 301 LPC11C24 301 LPC11D14 302 1 101 2 201 LPC11E13 301 LPC11E14 401 LPC11E36 501 LPCIIE37 501 LPC11U12 201 LPC11U13 201 LPC11U14 201 LPC11U23 301 LPC11U24 301 LPC11U24 401 LPC11U34 311 LPC11U34 421 LPC11U35 401 LPC11U35 501 LPC11U36 401 LPC11U37 401 LPC11U37 501 224 101 224 121 225 301 LPC1225 321 LPC1226 301 LPC1227 301
18. USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 5 5 operation DUMP operation is also provided for Nand Flash For Nand Flash the read operation only read data from the main area of each page while the dump operation read data from both the main area and spare oob area of each page 5 4 5 Program Options H Flasher provides some useful options for example reset target after programming additional verification and encryptions User can choose these options as required RESET When enabled H Flasher will reset the target when the programming 15 done VERIFICATION When enabled H Flasher will read the data from flash and compare them with the source file for the second time when the programming is done SKIP ID CHECK When enabled H Flasher will skip the check of flash ID during the operations ERASE CHIP When enabled H Flasher will erase the entire flash chip instead of those covered sectors before perform the flash programming SMART MODE When enabled H Flasher will backup the content of the flash before programming and then restore them during the programming This option can ensure the data which are not covered by the programming keep unchanged NXP LPCLPC1100 LPC1200 LPC1300 1700 LPC1800 2000 For LPC series the checksum of the vector table is used by the internal bootloader to determine if user s application is valid or not By default H Flasher adjusts the checksum automatically before th
19. Vendor ATSISAM Type 15 ATMEL EUN Black FUJITSU Size INTEL LUMINAR MACARONI NAP SAMSUNG SPAN SION 55 5T STM32F ATAT Configuration Init Scripts Programming Sector Pam Options General On Chip Flash Nand Flash Page Production H Flasher Help gd 3 4 5 gt gt ie gt x Fig 2 18 Main Window of H Flasher 2 4 1 Menu of H Flasher The menu of H Flasher is shown in Fig 2 19 New Load Save SaveAs Options Exit About Fig 2 19 Menu of H Flasher The menu 15 defined as follows Load Load configuration file 4 Save Save current configuration Save current configuration as another file Options Select different options Exit Exit H Flasher About Information about H Flasher 2 4 2 H Flasher Tray Menu When H Flasher is minimized the main window is hidden automatically and only an icon is shown in the system tray The main window can be restored by left clicking the icon Right clicking the icon the system tray menu 1s popped up USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 2 8 Restore 4 About Fig 2 20 H Flasher Tray Menu The tray menu is defined as follows Restore About Exit Restore the main window Information about H Flasher Exit H Flasher 2 4 3 H Flasher Program Wizard The program wizard include
20. a search and installation options dialog Fig 3 6 will be shown In this dialog choose Search for the best driver in these locations De select Search removable media Select Include this location in the search Meanwhile use the Browse button to locate the proper driver under the Drivers folder in the H JTAG installation directory User needs to ensure that the proper windows platform and architecture is selected Then click Next Found New Hardware Wizard Please choose your search and installation options S Search for the best driver in these locations Use the check boxes below to limit or expand the default search which includes local paths and removable media The best driver found will be installed Search removable media floppy CD ROM Z Include this location in the search C Program Files HITAG Drivers WINMPIX8S C Don t search will choose the driver to install Choose this option to select the device driver fram a list Windows does not guarantee that the driver you choose will be the best match for your hardware lt Back gt Cancel Fig 3 6 Search and installation options Soon a confirm dialog will be popped up after a quick search In the following picture click Continue Anyway to proceed with the installation Found New Hardware Wizard _ Please wait while the wizard installs the software Hardware Installation
21. gt gt Programming LPC1 66 1 Flash Selection ash LPC1766 x00013F33 2 Configuration CORTEX M3 LITTLE ENDIAN Init Scripts Lin Protect Programming Pgm Options General gt Flash Download Program Hash Verify Nand Flash 7 777 Production J EE 05 7 Read 3 4 5 P E Fig 8 5 Check Flash Successfully Next user can launch debugger from the IDE First user will see the programming progress dialog of H Flasher as shown 10 Fig 8 6 When it is done user can start debugging H Flasher Fig 8 6 Progress Dialog USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 8 3 Chapter 9 H Flasher Production Mode H Flasher supports production mode In production mode the programming process is controlled automatically through the detection of connecting disconnecting of targets which can improve the efficiency significantly To enable production mode please tick the option as shown in following figure Load Save SaveAs ptions Exit About Program Wizard gt gt Options AT831SAM7554 Flash Selection PRDDLICTIDH MODE Configuration liia Enable production mode far flash programming Programming Options 400 ON General Enable h flasher add On Chip Flash Nand Flash 1 g 3 u 5 gt H Flasher
22. mechanism H Flasher will backup some data before erase and restore them during the programming With this mechanism the contents of the flash are kept unchanged except those covered by current programming Tip 5 When user sees the error message Destination flash address is out of range it means that the specified destination address or the destination address extracted from HEX file is not inside the valid flash address range Please check the destination address and ensure it 1s valid Tip 6 For some chip the ID might be changed after some new version 15 released In this case please contact us We will provide updated flash driver 7 If something goes wrong during the operation please check the configuration and ensure that correct configuration is provided If the error still occurs when correct configuration 15 provided please contact us We will analyze where the problem is and provide updated flash driver when necessary USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 5 9 5 6 Example 1 AT91SAM7X256 AT91SAM7X256 is an ARM7 based chip from ATMEL This chip comes with 256K Bytes internal flash and 64K Bytes internal SRAM This section shows how to configure and program it with H Flasher 5 6 1 Flash Selection In this step select AT91SAM7X256 as the target flash as shown in Fig 5 3 r H Flasher E x Load Save SaveAs Options Exit About Program Wizard gt gt Flash S
23. user needs to provide the basic addressing information for example bit width flash start address RAM start address XTAL init and program this information is a must In this step if an input area is In gray it means no input is required Normally the information 15 fixed for on chip flash New Load Save SaveAs Options Exit About r 1 3 4 5 gt b be gt 3 Init Script Program Wizard Flash Selection Scripts Programming Pam Options General On Chip Flash Nand Flash Production H Flasher Help Flash width Chip Flash Start Address Start Address Ext MHz INIT TCK gt gt Configuration 32 Bit x 1 Chip 0 0 0000000 Fig 2 22 Program Wizard Configuration Init script is the third step of the programming wizard In this step the display 15 shown Fig 2 23 User input any scripts for initialization During the programming H Flasher first executes the provided init script in order to initialize the target system For on chip flash the initialization has been included the flash driver so no additional init script is needed In this case the buttons for editing are all disabled Load Save SaveAs Options Exit About Program Wizard i d lov Y Y Y OW USER MANUAL Flash Selection Configuration Programming Pam Options General On Chip F
24. 32 bit USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 6 1 6 1 2 Setmem This command can be used to read the value of a specific memory address The format of this script command is Getmem bit width dest address B Command B Bit Width Bit width of the read operation which could be 8 bit 16 bit or 32 bit B Dest Address Destination address of the read operation Please ensure that the address is aligned Examples Getmem 08 Bit 0x0 Read the value at address 0x0 bit width is 8 bit Getmem 16 Bit 0x0 Read the value at address 0x0 bit width is 16 bit Getmem 32 Bit 0x0 Read the value at address 0x0 bit width 1s 32 bit 6 1 3 Delay Delay command is used to add certain delay between two scripts Some operation needs some time before it takes affect This command can be used as null operation to wait previous script gets completed The format of this script command is Delay time millisecond B Delay Command Time Delay time in millisecond Examples Delay 100 Delay 100 milliseconds Delay 5000 Delay 5000 milliseconds 6 1 4 SysReset SysReset command 1s used to perform system reset This command can only be used as the first command in user s scripts If SysReset appears in other position it will be ignored Note SysReset command can only be used as the first command in user s scripts The format of this script command is SysReset No param
25. BKPT 0x8 Under IAR a breakpoint is set at Ox8 during debugging This breakpoint Is invisible the breakpoint list When debugging inside flash user can disable this invisible breakpoint to free a breakpoint unit USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 4 9 4 12 H jtag Tools H Jtag provides some tool under the Tools menu In the future we are going to add more tools to this menu as required by user 4 13 Check for Updates User can check for updates by using the check menu If there is any newer version available H Jtag would notify user User also can visit the homepage www hjtag com of H Jtag for more information USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 4 10 Chapter 5 Configure H Flasher H Flasher is a powerful flash programming tool which supports the programming of On Chip flash Nor Flash Spi Flash and Nand Flash This chapter introduces how to configure and use H Flasher details At the end of this chapter two examples are given for reference 5 1 H Flasher Configuration File H Flasher supports the save load of HFC H Flasher Configuration File HFC contains all the configuration information includes flash type flash width flash starting address RAM starting address and initialization scripts User can save current configuration as a HFC for later use or load existing HFC into H Flasher Under the installation directory of H JTAG there 15 a fold
26. Download a dialog will be shown to tell that H Flasher may change the clock configuration of the MCU during flash programming This change might have potential affect on the debugging of user s program H JTAG Sserver Please be aware that H Flasher may change MCUs clock contiguration during the flash programming Fig 8 3 Auto Download Note Next start H Flasher and select LPC1766 as the target flash as shown in Fig 8 4 Mew Load Save SaveAs Options Exit About Program Wizard gt gt Flash Selection LPC1 66 pe LPC1754 NXP Contiguration sein LPC1766 Init Scripts LPC1758 LPC1759 FLASH Programming LPC1763 Pam Options General On Chip Hash Nand Flash LPC1768 LPC1769 i LPC1773 H Flasher Help L LPCI774 ie LPCT776 i LPC1777 LPC1778 LPC1785 LPC1786 LPC1787 i BC178RR Production Fig 8 4 Select LPC1766 USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 8 2 Because H Flasher contains all the essential information for LPC1766 user can skip other configurations and go directly to the Programming page In the programming page click CHECK to see if the target flash could be checked successfully This operation can tell user if the configuration works or not As shown Fig 8 5 LPC1766 can be checked successfully LI Load Save SaveAs Options Exit About Program Wizard
27. LPC12D27 301 LPC1311 LPC1313 LPC1315 LPC1316 LPC1317 LPC1342 LPC1343 LPC1345 LPC1346 LPC1347 LPC1751 LPC1752 LPC1754 LPC1756 LPC1758 LPC1759 LPC1763 LPC1764 LPC1765 LPC1766 LPC1767 LPC1768 LPC1769 LPC1773 LPC1774 LPC1776 LPC1777 LPC1778 LPC1785 LPC1786 LPC1787 LPC1788 LPC2101 LPC2102 USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved B 4 LPC2103 LPC2104 LPC2105 LPC2106 LPC2109 LPC2114 LPC2119 LPC2124 LPC2129 LPC2131 LPC2132 LPC2134 LPC2136 LPC2138 LPC2141 LPC2142 LPC2144 LPC2146 LPC2148 LPC2194 LPC2212 LPC2214 LPC2292 LPC2294 LPC2361 LPC2361 IRC LPC2362 LPC2362 IRC LPC2364 LPC2364 IRC LPC2365 LPC2365 IRC LPC2366 LPC2366 IRC LPC2367 LPC2367 IRC LPC2368 LPC2368 IRC LPC2377 LPC2377 IRC LPC2378 LPC2378 IRC LPC2387 LPC2387 IRC LPC2388 LPC2388 IRC LPC2458 LPC2458 IRC LPC2468 LPC2468 IRC LPC2478 LPC2478 IRC LPC3250 SAMSUNG ARM MCUs S3C44B0 SEC4510 53 24 0 83C2410 53 2416 53 2440 83C2442 53 2443 53 2450 83C2500 53 6400 53 6410 5512010 FLASH DEVICEs K5L3316CAM K8A5615ETA K8C1315ETM K8D1716UTC 1215 KSF5715ETM K8A2815EBB K8A6415EBB K8C5615EBM K8D3216UBC K8F1315EBM K8P2915UQB 8 2815 K8A321 5bEBE K8A6415ETB K8CI2IS5EBM K8C5615ETM 8 5715 K8D3216UTC K amp D6316UBM 8 8 56 8 56 5 852815 K8A3215ETE K8C1215ETM K8C5715ETM K8D6316UTM KSF5615ETM K8S2815ETB K8A5615EBA K8C1315EBM K8D1716UBC KSF1215EBM 5715 K8S3215E
28. The software you installing this hardware has not passed Windows Logo testing to verify its compatibility with Windows Tell me why this testing is important Continuing your installation of this software may impair or destabilize the correct operation of your system either immediately or in the future Microsoft strongly recommends that you stop this installation now and contact the hardware vendor for software that has passed Windows Logo testing Continue Anyway STOP Installation Fig 3 7 Confirm dialog USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 3 5 Later a completing dialog will be seen If the installation is completed successfully the dialog looks like Fig 3 8 Found New Hardware Wizard Completing the Found New Hardware Wizard The wizard has finished installing the software for H JTAG gt Click Finish to close the wizard Fig 3 8 Completing dialog After driver has been installed successfully H JTAG 15 listed as a device in device manager as shown in Fig 3 9 If you can t see H JTAG in the device manager please try to install the driver again File Action Help Network adapters 81 29 Ports COM amp LPT mm Processors 1 5 SCSI and RAID controllers m Sound video and game controllers H System devices 12 Universal Serial Bus controllers I
29. When H Jtag is minimized the main window is hidden automatically and only an icon is shown in the system tray The main window can be restored by left clicking the icon Right clicking the icon the system tray menu 15 popped up The tray menu includes some common operations and settings Restore H JT 46 Home 3 About H JTAG Options Script Flasher h Kill Connection Detect Target Reset Target OF Exit Fig 2 17 System Tray Menu of H Jtag The tray menu 15 defined as follows Restore H JTAG Home About H JTAG Options Script Flasher Kall Connection Detect Target Reset Target Exit f f f f USER MANUAL Restore the main window Visit homepage of H Jtag Information about H Jtag Options menu Script menu H Flasher menu Kill current connection Detect target Reset target Exit H Jtag Copyright 2014 WWW HJTAG COM All Rights Reserved 2 7 2 4 GUI of H Flasher The main window of H Flasher looks like Fig 2 18 In the figure 1 is the menu bar 2 is the program wizard and 3 16 the configuration window In the wizard user can go to different steps According to the selection on the wizard the configuration window has different displays For detailed information please refer to Chapter 5 H Flasher EB E i Dl xj New Load Save Saves Options Ext About Program Wizard gt gt Flash Selection Flash Selection
30. and relocation mode For the skip mode H Flasher will skip a bad block and jump to the next good one For the relocate mode H Flasher will relocate a bad block to a good block in the specified reserved area When skip mode is selected H Flasher will simply skip a bad block and program the data to the next good one in sequence When the relocate mode is selected H Flasher will first scan the flash to collect the bad block information by erasing the entire chip or only erasing the affected blocks During the programming if a bad block 1s encountered H Flasher will program the data to the first free good block in the reserved area for relocation At the same H Flasher will record the relocation information When the programming is done H Flasher will send the bad block table and relocation table information to the NAND flash driver In the flash driver a function named info table will receive all the information sent by H Flasher User can modify this function to build the bad block table and relocation table in the reserved area for user table as required Note 1 In skip mode H Flasher will not send the bad block table and relocation table information to the NAND flash driver when the programming is done Note 2 Due to the characteristic of NAND flash it is not possible to provide a common flash driver which fits all hardware platforms and software architecture When the bad block table or relocation table are needed user s
31. be accessed directly after powered up but this is not the case for external SDRAM External SDRAM needs to be initialized before it can be accessed correctly For beginners one of the common problems is that the program can not be downloaded into external SDRAM correctly The reason is that the external SDRAM is not initialized properly There are two methods to initialize the target system The first one is to write an initialization program into flash This program will be executed right after the target Is powered up So the target 15 initialized automatically after powered up and is ready for use second one is to use initialization script For the convenience of user H Jtag defines some script commands and provides auto initialization To use auto init user needs to input or load proper initialization scripts and enables auto init If auto init is enabled H Jtag will execute the provided initialization scripts whenever a connection 15 opened by debugger The script editor is shown in following figure For the details on the initialization script please refer to Chapter 6 Cmd width Address Setmem S2 Bit 000000000 512345 78 Load Fig 4 2 Script Editor ri H JTAG Server B File Control Flasher Init Tools Settings Options Help Fig 4 3 Auto Init Note If auto init is enabled in H Jtag server initialization scripts must be provided Otherwise H Jtag would no
32. com Http rarum cam Twentyonecelhjtag com Copyright E Twentyone 2004 2008 Fig 7 13 H Jtag Information USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 7 7 7 3 Configure IAR stands for Embedded Workbench which is from IAR Corp This section introduces how to configure IAR to work with H Jtag First start and click Project gt Options Embedded Workbench IDE File Edit view Project Tools Window Help ares 4 Y RUD e B gt Bs w Workspace Add Group Import File List _ Configurations Remove _ blink Create Mew Project hello Add Existing Project Options Source Code Control Fy Compile Rebuild All Clean Batch build F8 Stop Build i blink Cverview Debug Ctrl D Edit options For the Make amp Restart Debugger 2 Fig 7 14 Options Menu Then following dialog of options is shown up Options for node blinky Category General Options C C Compiler Target Output Libraru Configuration Library options MISRA Processor variant Custom Build Build Actions Core ARM7TDMI 5 Linker Debugger Device Philos 2294 Simulator Angel R HM marnitor FPU J LinkAl Trace None Generate interwork code Third Party D
33. exceptions Reset Data FIQ Undef Prefetch Swa IRQ Log ADI communication DIRS cspycomm log Fig 7 17 RDI Configuration USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 7 9 In Fig 7 17 click Browse and select H JTAG DLL located under the installation folder of H JTAG After this the dialog looks like Fig 7 18 Options for node blinky Factory Settings General Options C C Compiler HDI Assembler Custom Build Manufacturer RDI driver Build Actions JL sProgram Files H I TAG SH JTAG dll x Note ebugger Simulator Allow hardware reset Use the RDI menu to specify Kegel additional driver settings This menu available after the ADI MONRO ETM trace driver has been located J LinkJ Trace Macraigor Catch exceptions Reset Data FIG Undef Prefetch Sw IRG Third Party Driver Log RDI communication STOOLKIT_DIRS cspycomm log Fig 7 18 Choose H JTAG DLL In above figure click to complete the configuration After the configuration 15 completed new menu named RDI is added in the main window as shown in Fig 7 19 To check the basic information about H Jtag click RDI gt Configure The basic information about H Jtag 15 shown in Fig 7 20 Embedded Workbench IDE Edit View Project RDI Tools Window Help s Configur
34. initialization stage and the PGM specifies the speed used during the actual programming stage Normally the target system can support higher TCK speed after appropriate initialization Hence user can specify a lower TCK speed for successful initialization and a higher speed for better programming speed Please note that INIT and PGM are active only when the following conditions are satisfied lt gt USB based H JTAG emulator is in use lt gt Both INIT TCK and PGM TCK are set lt INIT lt SET IN H JTAG SERVER lt 5 4 3 Init Script In this step user needs to provide the init scripts for the initialization of target system User can edit scripts in the editor comes with H Flasher For more information on the definition of scripts please refer to Chapter 6 For on chip flash no init script 1s needed because the driver already includes it For external flash init scripts are necessary The purpose of init scripts is to configure the system clock and memory system The later One is more important because correct initialization of memory system is the prerequisite Otherwise H Flasher can t access flash and RAM SDRAM If H Flasher can t download driver to RAM it notifies user with error message Can t download driver to specified address Most of the time the cause 15 no init script Is provided or the init script Is not correct To provide right scripts user
35. needs to have good understanding on the target system Hence user is suggested to read the datasheet carefully especially the configuration of memory and clock Tip When USB based H JTAG emulator is used user is suggested to configure the system clock through init scripts to achieve better performance 5 4 4 Programming In this step user can perform operations on flash The supported operations include check flash and target information program flash verify flash erase flash and check whether the flash 15 blank 4 Reset The reset operation can be used to perform system reset on target USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 5 4 Check The check operation reads the flash ID and other basic target information User can use this operation to test whether the configuration 15 correct or not UnProtect This operation can be used to un protect a protected flash chip When the selected flash 15 not supported by this operation the button will be disabled automatically Currently the STM32F series are supported Program For different flash types H Flasher provides different types of programming B On Chip Flash Nor Flash Spi Flash A Auto Flash Download For Auto Flash Download no source file and destination address are needed to be specified AII the information is from H Jtag server B Intel HEX Format HEX file includes both the data program and address information Hence user
36. of the main window When no target is detected or the target is unrecognized H Jtag displays UNKNOWN USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 2 3 2 3 1 Menu of H Jtag File Menu as shown in following figure H JTAG Server File Control Flasher Init Tools Settings Options Help Exit b Db BJ Fig 2 8 File Menu 4 Exit Exit H Jtag B Control Menu as shown in Fig 2 9 r Server File Control Flasher Init Tools Settings Options Help mou g Reset Target Detect Target Kil Connection Fig 2 9 Control Menu 4 Reset Target Reset target Detect Target Detect target Connection Kill current connection B Flasher menu as shown in Fig 2 10 I ix Control Flasher Init Tools Settings Options Help Start H Flasher Jd m Auto Download Fig 2 10 Flasher Menu 4 Start H Flasher Start H Flasher Auto Download Enable Disable auto flash download B Init Menu as shown in Fig 2 11 r Server j xl File Control Flasher Init Tools Settings Options Help S Init Script Auto Init Fig 2 11 Init Menu Init Script Configure init script 4 Init Enable Disable auto init USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved Tools Menu as shown in Fig2 12 4 Unlock Debug Port
37. only needs to specify the source file when Intel HEX format is selected H Flasher extracts the address from HEX file automatically and uses it as the destination address C Plain Binary Format Plain binary file includes only the progranvdata For plain binary format user needs to specify both the source file and the destination address B Nand Flash A Plain Binary Format Main Only When this type 1s selected it means that the specified binary file only contains data for the main area of each page B Plain Binary Format Main Spare Oob When this type is selected it means that the specified binary file contains data for both the main area and spare oob area of each page As a result the length of the file should aligne to the size of main area spare oob area Verify This operation can be used to verify the programming by reading the content of target flash and comparing it with the source file Erase amp Check Blank The erase and check blank operations can be used to erase the flash or check whether the flash is blank For both operations user can specify the range using the list boxes Read Dump The read operation is provided to obtain the content of memory on specified address To read the content of memory please specify both the start address and size in terms of bytes for Nor Flash and On Chip Flash or specify the starting sector starting page ending sector and ending page for Nand Flash Besides READ
38. the configuration please click in Fig 7 4 Sucker Faruka imbine Drararenr Via Fie Search i Choose Target ES T arget Im Target Environments Add Remove Rename Save Configure System ADI Log L Log HDI Severe Debug Interface for ARM In Circuit Emulation Cancel Help Pos gt No Image 2 For Help press F1 Fig 7 4 AXD Configuration Ver Mo BUILD Date Http com Http z zForurn hiltaq cam Twentvone hitag com Copyright C Twentyone 2004 2008 Fig 7 5 H Jtag Information USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 7 3 7 2 Configure RVDS RVDS stands for Realview Developer Suit which is from ARM Corp This section introduces how to configure RVDS to use with H Jtag The introduction is based on RVDS2 0 but the configuration for other versions 1S similar First start RVDS and then click Click to Connect to a Target as shown in Fig 7 6 RYDEBUG Unattached l ni Brie Edit Find View Project Tools Debug Help File SOURCE Not copmected mo or scope Tlick to Connect to a Target 4 Dsm Sre hmi Fig 7 6 RVDS Main Window For more information select Help From Menu Next the conne
39. the destination folder After choosing the destination folder click and go to next step USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 2 1 Installing H JTAG x Destination folder Select a destination folder where will be installed K 2 Setup will install Files in the Following Folder TF vou would like to install H TTAG into a different Folder then click Browse and select another folder Destination Folder c Program Files H JTAG Browse Fig 2 3 Installation Step 3 In step 4 the progress dialog shown in Fig 2 4 will be seen This dialog shows the progress of installation In this step H Jtag will install all the files automatically Installing Installing Files Copying files to your computer amp interrupt or pause the installation process click Cancel Directory C Program FilesiH JTAGYFDevice AMD File 2 Cancel Fig 2 4 Installation Step 4 In the final step user will see the dialog shown in Fig 2 5 The dialog indicates that H Jtag has been installed successfully To complete the installation click Finish Installing H JTAG x H JTAG has been successfully installed Thank you for choosing H JTAG Click Finish ta complete the installation Fig 2 5 Installation Step 5 USER MANUAL Copyright 2014 WWW HJTAG COM All Righ
40. where the global disable vector catch option is enabled the configuration on the following dialog is ignored automatically Vector Catch H ARM FARM 9785 CALE x ES NE EM EE DE A U S P D F CORTEX M3 RESET STATERR MMERR BUSERR NOCPERR INTERR CHKERR HARDERR Cancel Fig 4 17 Vector Catch Configuration DISABLE SEMIHOSTING Semihosting is a mechanism for debugging which can be used for the communication between host and target Semihosting needs the support from both the emulator and the program running inside the target In addition semihosting can only be used for debugging and can t be use in real product Semihosting also consumes breakpoint resources So user is suggested to disable semihosting B DISABLE VECTOR CATCH Vector catch is used to capture exceptions When vector catch 15 enabled in both H Jtag and debugger exceptions are notified when they occur Please note that vector catch also consumes breakpoint resources So user 15 suggested to disable vector catch REPORT DATA ABORT During debugging even when the processor 1s halted debugger needs to access the memory of target Data abort may occur when undefined space or access protected area is accessed If report data abort is enabled H Jtag would notify user when data abort occurs Otherwise H Jtag would only handle the data abort internally without notifying user DISABLE IAR
41. width and destination address need to be specified When Getmem command 15 selected a bit width list will be shown up by double clicking the Width column Fig 6 10 User can select the right bit width from the list Next user needs to input the destination address in the Address column Fig 6 11 shows script Getmem amp Bit 0x10000000 which is to read the 8 bit value at address 10000000 Cmd width 1 Fig 6 10 List of Bit width Fig 6 11 Getmen Script If SetPPMR command 15 selected the value for PPMR register also needs to be specified Fig 6 12 shows a script which set PPMR register to 0x70000013 gt gt Init Scripts SetPPMR 0 70000013 9 gt 6 12 SetPPMR Script USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 6 8 6 2 3 Add Script Comment For each script command user can add a comment In the script editor double click the index number before a command a dialog will be popped up as shown in Fig 6 13 User can review the existing comment or add a new one in the dialog gt gt Init Scripts E Cmd width Address Value 1 SetMem 32 Bit Ox 10000000 012345679 Script Comment Comment E Update Cancel Fig 6 13 Script Comment USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 6 9 Chapter 7 Configure Debuggers This chapter illustrates how to configure common debugger so
42. 0GL M29W640GT M29W800DB M29W800DT M29W800FB M29WSOOFT NANDO1G B2B NAND02G B2C Copyright 2014 WWW HJTAG COM All Rights Reserved B 6 TOSHIBA FLASH DEVICEs TCS58FVM7BDD 58 7 TV00570002CDGB TV00570003CDGB WINBOND NUVOTON ARM MCUs NUCIOOLCIBN NUCIOOLDIBN NUCIOOLD2BN NUCIOORCIBN NUCIOORDIBN NUCIOORD2BN NUCIOOLD3AN NUCIOOLE3AN NUCIOORD3AN NUCIOORE3AN NUC100VD2AN NUCIOOVD3AN NUCIOOVE3AN NUCI20LCIBN NUCI20LDIBN NUCI20LD2BN NUCI20RCIBN NUC120RDIBN NUC120RD2BN NUC120LD3AN NUC120LE3AN NUC120RD3AN NUC120RE3AN NUC120VD2AN NUC120VD3AN NUC120VE3AN NUC122ZC1AN NUCI22ZD2AN NUCI22LCIAN NUCILD2AN NUCI22RCIAN NUCI22RD2AN NUC130LCIBN NUC130LD2BN NUCI30RCIBN NUC130RD2BN NUC130LD3AN NUCI30LE3AN NUCI30RD3AN NUCI30RE3AN NUC130VD2AN NUC130VD3 AN NUC130VE3AN NUCIAO0LCIBN NUCIAOLD2BN NUCIAORCIBN NUCIAORD2BN NUCIAO0LD3AN NUCIAOLE3AN NUCIAORD3AN NUCIAO0RE3AN NUC140VD2AN NUC140VD3 AN NUCIA0VE3AN NUCS501A 501 NUC710A NUC740A NUC745A NUC910A NUC920A NUC945A NUC950A NUC960A FLASH DEVICEs W19B320AB W19B320AT W19B320BB W19B320BT W39F010 W39L010 W39L020 W39L040 W39L040A W39L512 W39V040A W39V040B W39V040C W39V040FA W39V040FB W39V040FC W39V080A W39V080FA WA49F002U W49F020 NAND FLASH MCU FLASH COMBINATION Hi3515 HY27UG088G 13515 9 1608 13515 9 2608 13515 9 4 08 1 MX27 K9F 1208 1 MX27 K9F1G08 1 MX27 K9F2G08 1 27 29 2608 LPC2478 K9F1G08 LPC2478 K9F5608 LPC32X0 K 9F 1G08 MLC LPC32X0 K9F1G08 SLC LPC32X0 K9F2G08
43. 14 WWW HJTAG COM All Rights Reserved 4 4 Next let s look at an illustrative example The schematic of the JTAG emulator used in the example is show in Fig 4 7 The connection between LPT and JTAG be obtained from the schematic and is listed following table Please note that the nTRST signal is inverted and no nSRST signal is provided TMS gt LPT DI PIN3 TCK gt LPT D2 TDI gt LPT D3 PINS TDO gt LPT BUSY PINI1 nTRST LPT DO PIN2 INVERTED nSRST X NOTAVAILABLE 14 LPT TDI R4 51 TDI nl LPT LPT IMS 16 R5 51 TMS 15 LPT TCK 14 R 51 TCK 3 LPT 5 1 TDO R8 51 LPT TDO i LPT 5 LPT TD ps ay BEL O R3 51 nTRST LPT RST Q1 G 2N3114 CONN FLEX20 Fig 4 7 Example Schematic of JTAG Emulator Based on the schematic given in Fig 4 7 and the above analysis any of the following settings can be used Both the settings given in Fig 4 8 tell exactly how LPT 16 connected to the JTAG interface via the JTAG emulator The given example is only for reference In practice please configure according to the schematic of user s own JTAG emulator x x Selection Selection User Defined Fin Assignment Wiggler Predefined 7 C Wiggler Predefined TMS Pina D1 C SdtJtag Predefined C Sg g Predafined C User Defined f User Defined Fina 02 TDI Fire D3 Finit Busy Pind
44. 29LVOOST AM29LVOIOB AM29LV017B AM29LV017D AM29LV017M AM29LV033C AM29LV033MU AM29LV040B AM29LV065D AM29LV065M AM29LV081 AM29LV081B AM29LVIIG6BB AM29LVIIGBT AM29LV116DB AM29LVIIGDT AM29LVIIO6MB AM29LVII6MT AM29LV128MH AM29LV128ML AM29LVI60BB AM29LV160BT AM29LV160DB AM29LV160DT AM29LVI60MB 29 160 AM29LV200B AM29LV200T AM29LV256MH AM29LV256ML AM29LV320DB AM29LV320DT AM29LV320MB AM29LV320MH AM29LV320ML AM29LV320MT AM29LV400B AM29LV400T AM29LV640D AM29LV640MB AM29LV640MH AM29LV640ML AM29LV640MT AM29LV640MU AM29LV641D AM29LV641MH AM29LV641ML AM29LV652D AM29LV800B AM29LV800BB AM29LV800BT AM29LV800DB AM29LV800DT AM29LV800T ANALOG DEVICE ARM MCUs ADuC7019 ADuC7020 ADuC7021 ADuC7022 ADuC7023 ADuC7024 ADuC7025 ADuC7026 ADuC7027 ADuC7028 ADuC7029 ADuC7060 ADuC7061 FLASH DEVICEs A29LI60AT A29LI60AU 291160 A29LI60U A29L320AT A29L320AU A29L320T A29L320U 29 400 A29LA00AU A29LA00T A29LA00U A29 ATMEL ARM MCUs AT91SAM7A3 AT91SAM7S128 915 7516 AT91SAM7S161 915 75256 915 7532 915 75321 915 75512 AT9ISAM7S64 AT9ISAM7SE256 AT9ISAM7SE32 915 75 512 AT9ISAM7X128 AT9ISAM7X256 AT9ISAM7X512 915 7 128 USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved B 1 AT91SAM7XC256 1915 7 512 915 9 128 915 9 256 915 9 512 AT91SAM9200 915 9260 915 9261 915 9263 915 96545 ATSAM3SIA ATSAM3S1B ATSAM3S1C ATSAM3S2A ATSA
45. 81 8ST38VF1682 ZE T aoe anna x Fig 5 10 Flash Selection SST39VF1601 5 7 2 Configuration In this step we need to provide the information on memory system SST39VF1601 supports only 16 Bit mode So we can use the default bit width SST39VF1601 is expanded via BANKO so that the flash start address is 0x80000000 Although LPC2210 has internal SRAM we use external SDRAM in this example for illustration The external SDRAM is expanded via BANKI Hence the RAM start address is 0x81000000 Actually we specify any 4K space within the SDRAM range The XTAL also doesn t need to be specified In this example the final settings are shown in Fig 5 11 USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 5 14 H Flasher LPC2210 55T39VF1601 hfc x New Load Save SaveAs Options Exit About Program Wizard gt gt Configuration SST39VF1501 Flash Selection Flash Width Chip 16 Bit 1 Chip Init Scripts Programming Flash Start Address 080000000 Options General Start Address 0000 2 On Chip Flash Ext XT L MHz Production H Flasher Help INIT TCK 3 i 5 gt gt p PGM TCE Fig 5 11 Configuration LPC2210 SST39VF1601 5 7 3 Init Script According to the datasheet of LPC2210 we need to configure three registers PINSEL2 0xE002C014 BCFGO OxFFE00000 and BCFG1 OxFFE00004 PINSEL2 is a pin selection reg
46. BE K8S3215ETD 853215 855615 K8S5615ETA 856415 K8S6415ETB 9 5608 K9F1208 K9F1G08 K9F2G08 K9F4G08 K9F8G08 K9G8G08 K9K8G08 SPANSION FLASH DEVICEs 529 0080 01 S29AL008J M02 529 0160 01 S29AL008D MO2 S29ALO08D MRI S29ALOOSD MR2 S29AL008J MO1 S29AL008J MO3 S29AL008J M04 S29ALOOSJ MRI S29AL008J MR2 529 0160 02 529 1016 S29AL016JT S29ALOIG6MB 529 1016 S29AL032D MOO S29ALO32D MO3 S29ALO32D MO4 S29GL016A MOI S29GL016A M02 S29GL016A MRI S29GL016A MR2 S29GLOIGP S29GL032A MRI1 S29GL032A MR2 S29GL032A MR3 52901032 4 S29GL032A MW3 S29GL032A MW4 S29GL032M MRO S29GLO32M MRI S29GLO32M MR2 58529GL032M MR3 S29GL032M MR4 S29GL032N MO1 S29GL032N M02 S29GL064A MRI S29GL064A MR6 S29GL064M MRI S29GL064M MR6 S29GL064N M02 S29GL032N M03 S29GL064A MR2 S29GL064A MR7 S29GL064M MR2 S29GL064M MR7 S29GL064N M03 S29GL032N M04 S29GL064A MR3 S29GL064A MR8 S29GL064M MR3 S29GL064M MR8 S29GL064N M04 S29GL032N MV1 S29GL064A MR4 S29GL064A MR9 S29GL064M MR4 S29GL032N MV2 S29GL064A MR5 S29GL064M MRO S29GL064M MR5 S29GL064M MR9 S29GL064N MO1 S29GL064N M06 S29GL064N M07 S29GLO64N MV1 S29GL064N MV2 S29GL064N MV6 S29GL064N MV7 S29GL128M S29GL128N S29GLI28P S29GL256M S29GL256N S29GL256P S29GL512N S29GL512P S29JLO32H M02 S29JLO32H M21 S29JLO32H M22 S29JLO32H M3 1 S29JLO32H MO1 S29JLO32H M32 USER MANUAL S29JLO32H M41 S29JLO32H M42 529 064 S29NS064N S29NS128
47. F2G08 S 3C2416 K9F4G08 53 2416 9 5608 S3C2416 K9G8G08 S3C2416 K9K8G08 S3C2440 HS8ACSOEHOACR S3C2440 HY27US08121A 3C2440 K 9F 1208 53 2440 9 1 908 S 3C2440 K9F2G08 3C2440 K9F4G08 53 2440 9 5 608 S 3C2440 K9G8 amp G08 S 3C2440 K9K8G08 3C2443 K9F 1208 3C2443 K9F 1608 3C2443 K9F2G08 S 3C2443 K9F4G08 53 2443 9 5608 3C2443 K9G8 amp G08 3C2443 K9K8G08 53 2450 9 1208 S3C2450 K9F1G08 3C2450 K9F2G08 3C2450 K9F4G08 53 2450 9 5608 S3C2450 K9G8G08 S3C2450 K9K8G08 53 6410 9 1208 53 6410 9 908 53 6410 9 2 0908 53 6410 9 4 908 53 6410 9 5 608 3C64104K9G8G08 S3C6410 K9K8G08 Copyright 2014 WWW HJTAG COM All Rights Reserved B 8
48. Help Fig 9 1 Enable Production Mode When production mode is enabled H Flasher will enter this mode by clicking Program in the Programming page As shown Fig 9 2 H Flasher is waiting status and user is required to connect target to the emulator Waiting for connection 4 gt Tried 000 Succeed 000 Failed 000 Waiting 00 00 00 00 00 KB s Size 00 KB Stop Fig 9 2 Production Mode Waiting Status Please Connect Target USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 9 1 When a target is connected H Flasher will detect it and then start the programming automatically as shown in Fig 9 3 Programming Tried 000 Succeed 000 Failed 000 Programming and Verifying I 00 01 10 29 71 KB s Size 256 KB Stop Fig 9 3 Production Mode Programming When the programming 1s completed H Flasher will show the result and tell user to disconnect the target from emulator Programming done Please disconnect Tried 001 Succeed 001 Failed 000 Programmed and Verified x1 successfully 00 03 60 100 72 KB s size 256 KB stop Fig 9 4 Production Mode Programming Completed Please Disconnect Target USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 9 2 When the target is disconnected H Flasher will enter waiting status again User can connect next target for programmin
49. M3S2B ATSAM3S2C ATSAM3S4A ATSAM3S4B ATSAM3S4C ATSAM3UIC ATSAM3UIE ATSAM3U2C ATSAM3U2E ATSAM3U4C ATSAM3U4E FLASH DEVICEs 49 040 AT49BV160 AT49BV1604 AT49BV1604A 49 1604 AT49BV1604T AT49BV160T AT49BV161 AT49BV1614 49 1614 AT49BVI614AT AT49BV1614T 49 161 AT49BV162A AT49BVI62AT AT49BV163A AT49BVI63AT AT49BV163D AT49BV163DT AT49BV322A AT49BV322AT AT49BV322D AT49BV322DT AT49BV6416 AT49BV6416T AT49BV642D AT49BV642DT AT49BV802A AT49BV802AT 149 1024 AT49LV160 AT49LV161 AT49LV1614A ATA9LVI614AT AT49LV161T ATA98V322D AT49S V322DT CIRRUS LOGIC ARM MCUs EP7309 EP7311 EP7312 EP9301 EP9302 EP9307 EP9312 EP9315 EON FLASH DEVICEs EN29F010 29 512 EN29LV010 EN29LV040A EN29LVI60AB EN29LV160AT EN29LV160BB EN29LV160BT EN29LV320AB EN29LV320AT EN29LV320BB EN29LV320BT EN29LV400AB EN29LV400AT EN29LV512 EN29LV640B EN29LV640H EN29LV640L EN29LV640T EN29LV800BB EN29LV800BT EN29LV800CB EN29LV800CT 2951160 EN29SL160T EN29SL400B EN29SL400T EN29SL800B EN29SL800T ESI FLASH DEVICEs ES29LV160XB ES29LV160XT ES29LV320XB ES29LV320XT ES29LV400XB ES29LV400XT ES29LV640XB ES29LV640XT ES29LV800XB ES29LV800XT FREESCALE ARM MCUs MAC7101 MAC7106 MAC7111 MAC7112 MAC7116 MAC7121 MAC7122 MAC7126 MAC7131 MAC7136 MAC7141 MAC7142 IL MX21 23 25 LMX27 L MX35 FUJITSU FLASH DEVICES MBM29DL640E MBM29LVI60BE MBM29LVI60TE MBM29LV400BC MBM29LV400TC MBM29LV800BE MBM29LV800TE USER MANUAL Copyright 2014 WW
50. MLC LPC32X0 K9F2G08 SLC PXA300 H8BCSOSIOMBR PXA300 K9F1G08 PXA300 K9F2G08 PXA300 K9F4G08 PXA300 K9K8G08 PXA300 MT29F1G16 PXA300 NANDOIGR3B2B PXA300 NANDO1GR4B2B PXA300 NANDO1GW3B2B PXA300 NANDOIGW4B2B PXA300 NANDO2GR3B2C PXA300 NANDO2GR4B2C PXA300 NANDO2GW3B2C PXA300 NANDO2GW4B2C PXA300 TYAOOOBOOOALKF40 PXA30X H8BCSOSIOMBR PXA30X K9F1G08 PXA30X K9F2G08 PXA30X K9F4G08 PXA30X K9K8G08 PXA30X MT29F1G16 PXA30X NANDO1IGR3B2B PXA30X NANDOIGR4B2B PXA30X NANDO1GW3B2B PXA30X NANDOIGWAB2B PXA30X NANDO2GR3B2C PXA30X NANDO2GR4B2C PXA30X NANDO2GW3B2C PXA30X NANDO2GW4B2C 000 000 40 PXA31X H8BCSOSIOMBR PXA31X K9F1G08 PXA31X K9F2G08 PXA31X K9F4G08 PXA31X K9K8 amp G08 PXA31X MT29F1G16 PXA31X NANDOIGR3B2B PXA3IX NANDOIGRAB2B PXA31X NANDOIGW3B2B PXA3IX NANDOIGWAB2B PXA31X NANDO2GR3B2C PXA31X NANDO2GR4B2C PXA31X NANDO2GW3B2C USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 7 USER MANUAL PXA31X NANDO2GW4B2C 4 PXA32X H8BCSOSIOMBR PXA32X K9F1G08 PXA32X K9F2G08 PXA32X K9F4G08 PXA32X K9K8G08 PXA32X MT29F1G16 PXA32X4 NANDOIGR3B2B PXA32X NANDO1GR4B2B PXA32X NANDO1GW3B2B PXA32X4 NANDOIGWAB2B PXA32X NANDO2GR3B2C PXA32X NANDO2GR4B2C PXA32X NANDO2GW3B2C PXA32X NANDO2GW4B2C 2 0 0 4 53 2410 9 1208 S3C2410 K9FIGO8 853 2410 9 2608 3C2410 K9F4G08 53 2410 9 5 608 S3C2410 K9G8G08 3C2410 K9K8 amp G08 53 2416 9 1208 S3C2416 K9F1G08 S3C2416 K9
51. N S29NS128P S29NS256N S29NS256P S29NS512P 829PL032J S29PL064J S29PL127J S29PLI27N S29PLI29N S29PL256N S29WS128N S29WS128P S29WS256N S29WS256P S29WS512P Copyright 2014 WWW HJTAG COM All Rights Reserved B 5 SST FLASH DEVICEs 551295 020 551295 040 55129 020 SST29VFO40 SST34HF1681 SST36VF1601C SST36VFI601E SST36VFI1601G SST36VF1602C SST36VF1602E SST36VF1602G SST36VF3203 SST36VF3204 SST39LF0IO SST39LF020 SST39LF040 SST39LF080 SST39LF160 SST39LF200A SST39LF400A SST39LF512 SST39LF800A SST39SF010A SST39SF020A SST39SF040 SST39VFO10 SSI39VF020 SST39VF040 SST39VF080 SST39VF088 SST39VF160 SST39VF1601 SST39VF1601C SST39VF1602 SST39VF1602C SST39VF1681 SST39VF3201 SST39WF800A ST Microelectronics ARM MCUs USER MANUAL STM32F030X4 STM32F05 1X6 STM32F100XC STM32F101XB STM32F102X4 STM32F103X8 STM32F103XG SIM32F205XB SIM32F207XC SIM32F217XE SIM32F313XB STM32F383XB STM32F407XC STM32F415XF STM32F427XG SIM32F439XG STM32L151X6 STM32F030X6 STM32F051X8 STM32F100XD STM32F101XC STM32F102X6 STM32F103XB STM32F105X8 STM32F205XC STM32F207XE STM32F217XG STM32F313XC STM32F383XC STM32F407XE STM32F415XG 51 32 427 1 STM32F439XI STM32L151X8 STM32F030X8 STM32F100X4 STM32F100XE STM32F101XD STM32F102X8 STM32F103XC STM32F105XB STM32F205XE STM32F207XF STM32F302XB STM32F373X8 STM32F405XC STM32F407XF STM32F417XC STM32F429XG STM32L100X6 SIM32LISIXB SST39VF1682 SST39VF200A SST39VF320 SST39VF3201B SST39VF3202 55139
52. OM All Rights Reserved IV Chapter 1 H Jtag Introduction 1 1 About H Jtag H Jtag is a debug agent likes the popular Multi ICE H Jtag includes three tools H Jtag server H Flasher and H Converter Fig 1 1 H Jtag server is a debug agent H Flasher is a flash programmer and H Converter is a conversion tool which supports different file formats like BIN HEX and ELF H JTAG H JTAG SERVER H FLASHER H CONVERTER Fig 1 1 H JTAG Structure H Jtag supports the debug of all the 0 CORTEX M3 4 ARM7 ARM9 ARMII and XSCALE based chips and can be used with most of the popular debuggers including ADS RVDS IAR and KEIL MDK H Jtag provides flexible configuration with which H Jtag can work with H JTAG USB emulator Wiggler SDT Jtag and other user defined JTAG interface boards The integrated H Flasher supports the programming of most flash chips With H Jtag it 1s easy to build up a debug platform Summed up H Jtag has following features Support wide range of ARM processors ARM7 ARM9 ARMII XSCALE 0 CORTEX M3 and CORTEX M4 Support all the popular IDEs ADS1 2 KEIL MDK and RVDS2 2 Support flexible target initialization Support both THUMB and ARM mode Support Little Endian and Big Endian Support high speed H JTAG USB emulator provide reliable and high performance solution Support LPT port provide a low cost a
53. PTIVE 1s selected but H JTAG SERVER can t detect the RTCK signal The possible reasons are 1 The target doesn t support RTCK 2 The connection of the RTCK signal has some problem Q The TCK speed is too high Please reduce the TCK speed manually A This indicates that the TCK speed is too fast for the target The possible reasons are 1 The TCK is too high 2 The TAP configuration is not correct Q Can t find h flasher Please make sure that h flasher has been started properly A This message indicates that H FLASHER is not running Please start H FLASHER Q Can t download driver into the specified address A This error indicates that H FLASHER can t download the driver into the specified RAM space Possible reasons are 1 The address 15 not correct 2 The specified RAM space isn t initialized properly Q Flash ID doesn t match Please make sure that the right flash device is selected A This means that the read FLASH ID 1s different from the expected one Possible reasons are 1 The configuration is not correct which makes H FLASHER can t read or read the wrong FLASH ID 2 The selected FLASH device is not correct 3 The FLASH ID is modified by manufacturer In this case please enable SKIP ID CHECK in H FLASHER Q Application isn t successfully downloaded into RAM during debugging A Normally this is because the RAM isn t initialized which make the program can t be downloaded successfull
54. Reset Signal Output D3 Reset Signal Output nTRST output inverted nSAST output inverted v nTRST output inverted 6 output inserted Control Speed 1 Cancel nTRST Fina D nsRST SYS RSI TEK Control TCK Speed MAX 1 nTRST Fir DO nsRST s Fig 4 8 Example JTAG Settings In the dialog of LPT JTAG settings user can also choose different speed The selectable speed ranges from MAX to MAX 8 Actually the parallel port 15 a low speed interface In practice user 15 suggested to use as the default speed to achieve maximum performance USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 4 5 Jtag Settings xX Jtag Selection 4 Wiggler Predefined SdtJtag Predefined User Defined Wiggler Pin Assignment Reset Signal Output nTRST output inverted nSRST output inverted in 1 Busy nTRST Pin2 DO TCE Contre OK Cancel Fig 4 9 Selection of LPT TCK Speed 4 7 LPT Port Setting For most PCs the default LPT address is 0x378 but there are some exceptions In H Jtag different port addresses can be specified The dialog for port setting is shown in Fig 4 10 In the dialog there also has a test button which can be used for some simple port read write test x Part Addre
55. W HJTAG COM All Rights Reserved B 2 HISILICON ARM MCUs HI3510 HI3511 HI3512 HI3515 HI3516 520 HYNIX FLASH DEVICEs HY29F040 HY29F040A HY29LV160B 29 160 HY29LV320B HY29LV320T HY29LV400B HY29LV400T HY29LV800B HY29LV800T HY27US 08 16 1 21A HY27SS 08 16 121A H8BCSOSIOMBR H8ACSOEHOACR INTEL ARM MCUs PXA210 PXA250 PXA255 PXA260 PXA270 PXA300 PXA310 PXA320 IXPAXX IXP2XXX FLASH DEVICEs 28F004B3B 28F004B3T 28F008B3B 28F008B3T 28F016B3B 28F016B3T 28F128J3 28F128K18 28F128K3 28 128118 28 128118 28F128L30B 28F128L30T 28F128P30B 28F128P30T 28F128P33B 28F128P33T 28F128WIS8B 28FI28W18T 28F128W30B 28F128W30T 28F160B3B 28F160B3T 28F160C3B 28F160C3T 28F256J3 28F256K18 28F256K3 28F256L18B 28F256L18T 28F256L30B 28F256L30T 28F256P30B 28F256P30T 28F256P33B 28F256P33T 28F320B3B 28F320B3T 28F320C3B 28F320C3T 28 32013 28F320WI1S8B 28F320W18T 28F320W30B 28F320W30T 28F400B3B 28F400B3T 28F640B3B 28F640B3T 28F640C3B 28F640C3T 28F640J3 28F640K18 28 640 3 28 640118 28F640LIST 28F640L30B 28F640L30T 28F640P30B 28F640P30T 28F640P33B 28F640P33T 28F640W18B 28F640W18T 28F640W30B 28F640W30T 28F800B3B 28F800B3T 28F800C3B 28F800C3T LUMINARY ARM MCUs 35101 LM3S102 1 351110 351133 1 351138 LM3S1150 LM3S1162 LM3S1165 1 351332 1 351435 1 351625 1 351911 1 352139 1 352616 1 352776 1 351439 1 351626 1 351918 1 352276 1 352620 1 352911 1 351512 1 351627 1 351937 1 352410 1 352637 1 352918 1 351538
56. _SOL Not connect v1 2 Angel debug protocol serial port Click to COM v2 2 ARM JTAG debug interface parallel port ARMulator v1 2 instruction set simulator Add DLL Reset list Remove Duplicate 4 Search for text in File Ln 1 Col 1 Fig 7 9 RDI Target List Dialog USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 7 5 In Fig 7 9 click Add DLL the Select RDI DLL dialog is popped up The Select RDI DLL dialog is shown below In this dialog choose H JTAG DLL located under the installation folder of H Jtag Then click Open wae Select RDI DLL rui My File S Documents Desktop Name Documents er Computer Fie name H ITAG dll m Places Search For tex Files of type RDI Target DLL Cancel pes 7 10 254 H JTAGDLL After H JTAG DLL 1s selected a new dialog Fig 7 11 1s popped up The new dialog is used to create a new RDI target In this dialog user can input a short name and a brief description or use the default ones Z RYDEBUG Unattached KIT ioj E ri co ET x D tar ki Use the check boxes to add ar remove AD targets fram the connection manager File 501 Tem Create New RDI Target New RDI Target
57. an only be reset manually 4 3 Auto Flash Download H Jtag supports auto flash download for debugging With auto flash download program can be directly downloaded or written to flash for debugging just like debug in RAM SDRAM To use auto flash download please enable the auto download option as shown in Fig 4 1 Meanwhile please choose appropriate target flash and provide right configuration in H Flasher During downloading H Jtag will determine where the program should be downloaded according to the information extracted from the image For those need to be written to flash H Jtag will call H Flasher to complete it automatically H JTAG Server f m x Flasher Init Tools Settings Options Help Fr Start H Flasher Auto Download Auto Download gt Fig 4 1 Auto Flash Download File Control Note Auto flash download can be used for both on chip flash and external NOR flash For chips supports complicated memory configuration like MMU REMAP it is recommended to disable MMU REMAP through init script before debugging Note H Flasher Lite does not support Auto Flash Download To use Auto Flash Download please run H Flasher USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 4 1 4 4 Initialization Script For most systems initialization need to be performed after powered up The initialization of memory system is one of these Most of the time flash and on chip SRAM can
58. atch Disable vector catch function Report Data Abort Enable Disable report of data abort USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 2 5 4 Disable IAR bkpt 0 8 Disable the breakpoint set at 0x8 by Help menu as shown In Fig 2 15 Server E C xl File Control Flasher Init Tools Settings Options Help 1 x FS wb H ITAG Home Check Update Auto Update User Manual User Manual EM About H ITAG o Fig 2 15 Help Menu 4 H JTAG Home Visit H Jtag homepage Check Update Check for updates Auto Update Enable Disable automatic check for updates User Manual CN Chinese user manual User Manual EN English user manual 4 About H JTAG Information about H Jtag 2 3 2 H Jtag Toolbar This section gives a brief introduction to the toolbar The toolbar of H Jtag includes most of the common operations and settings The toolbar is shown in Fig 2 16 Ax FF b bp B Fig 2 16 Toolbar of H Jtag The definition and function of each button 1s shown below Reset target Detect target Kill current connection Start H Flasher Configure init script Selection of USB LPT JTAG setting for USB Configure target Configure TAP Exit H Jtag f f f E m X u 1 X 24 USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 2 6 2 3 3 H Jtag Tray Menu
59. ation File Run to main Restore Debug Session Settings v Breakpoints Toolbox Watch Windows amp Performance Analyzer Memory Display CPU DLL SARMCM3 DLL Parameter Dialog DLL Parameter 1 DLL pLPC1768 Settings Use Cortex M4 Settings Signum Systems JTAGjet a J LINK J Trace Cortex ST Link Deprecated Version Load ULINK Pro Cortex Debugger NULink Debugger SiLabs UDA Debugger ST Link Debugger A C METS DAP Debugger IHJTAG Cortex MD Bri H JT AG Cortex M3 JTAG Cote Initializatic Memory Display Driver DLL SARMCM3 DLL MPU Pararneter Dialog DLL Parameter TARMP 1 DLL PLPC1768 Fig 7 27 H JTAG Debug Drivers Copyright 2014 WWW HJTAG COM All Rights Reserved 1 14 Then active the Utilities page as shown Fig 7 28 Options for Target Target 1 X Device Target Dutput Listing Vser C C Asm Linker Configure Flash Menu Command Use Target Driver for Flash Programming ULINK ARM Debugger Settings Update Target before Debugging Init File C Use External Tool for Flash Programming Command Arguments Run Independent Fig 7 28 Utilities Page In the Utilities page H JTAG drivers H JTAG ARM H JTAG 0 CORTEX M3 and H JTAG CORTEX MA can be found on the list as show
60. cate if target 1s connected appropriately C ACT Indicate JTAG SWD activity when flashing USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 3 1 Fig 3 1 Appearance of Emulator Debug Interface There are two common debug interfaces JTAG SWD for ARM MCUs The JTAG interface is used all ARM MCUs while the SWD interface is only seen on CORTEX M R based MCUs H JTAG USB emulator supports both JTAG and SWD H JTAG emulator equipped with a standard 20 pin JTAG SWD interface The definitions of signals are shown in Fig 3 2 VREF nT RST TDI SWDIO TMS SWDCLK TCK RTCK TDO nSRST NC NC Fig 3 2 JTAG SWD interface of H JTAG emulator USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 3 2 3 2 Different Emulator Editions H JTAG USB emulator has two editions which are the standard edition and the professional edition These two editions can be differentiated by colors as shown in Fig 3 3 Standard Edition c Professional Edition Fig 3 3 Different emulator editions The differences of functionalities are listed in Table 3 1 750KB S 750KB S Speed Upload 550KB S 550KB S Laws S 8 ARM CORE o Y _ o w Table 3 1 Differences of functionalities USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 3 3 3 3 Driver Installation After the installation of H JTAG software a fol
61. ction control dialog 15 popped up Fig 7 7 gt RYDEBUG Unattached B File Edit Find view Tools Debug File fio _ SOLIRCE Connection Control Ewentyone srvdebug brd Not connected no 1 Help _ Description Context m ARM A RF APM Ltd RDI targets xS ARMulator ARM instruction simulator a ICE ARM JTAG debug interface parallel al 218 SeRemote Angel debug protocol serial port Server Connection Broker Simulator Broker zd t Search For Eext in File Ln 1 Col 1 Fig 7 7 Connection Control Dialog USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 7 4 In Fig 7 7 right click inside the dialog to pop up the context menu shown in Fig 7 8 wae RYDEBUG Unattached B File Edit Find View Project Tools Debug Help Ci coe li x Bs m D T ien py m ERE x z i x Context parallel al port Ta Remo te E o Co localhost 4 Search For text in fle 4 Fig 7 8 Context Menu In the menu shown in Fig 7 8 click Add Revmove Edit Devices RDI Target List dialog 1s popped up The dialog 1s shown in following figure 2 RYDEBUG Unattached ml x 100 Target List Ta D gt Use the check boxes to add or remove AD targets fram the connection manager File BNO
62. der named Drivers is created under the installation directory This folder includes the drivers for different WINDOWS platforms Next user needs to install the driver for emulator This section shows how to install the driver step by step First connect the emulator to PC via a USB cable The PC will show a new hardware wizard dialog soon which looks like Fig 3 4 Found New Hardware Wizard Welcome to the Found New Hardware Wizard This wizard helps you install software for 8 If your hardware came with an installation CD lt gt floppy disk insert it now What da you want the wizard to do Install the software automatically Recommended Install from list or specific location Advanced Click Next to continue Cancel Fig 3 4 New hardware wizard In the wizard choose Install from a list or specific location Advanced as shown in Fig 3 5 Then click Next Found New Hardware Wizard Welcome to the Found New Hardware Wizard This wizard helps install software for e If your hardware came with an installation CD lt floppy disk insert it now What da you want the wizard to do C Install the software automatically Recommended Install from a list or specific location Advanced Click Next to continue Cancel Fig 3 5 Install from list USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 3 4 Next
63. e Wor ks pace Trace Window blink Internal Flash Trace Setup Trace Save E phytec Breakpoint Usage Ha 1 v Inter Overview hello Fig 7 19 New RDI Menu USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 7 10 About H JTAG H JTAG Ver BUILD Date Http hitag com Http Forum cam Twentyonecelhjtag com Copyright E Twentyone 2004 2008 Fig 7 20 H Jtag Information Note If user wants to use auto flash download in please disable Verify Download and Use Flash Loader s in IAR Fig 7 21 shows how to disable these options Options for node blinky Category Factory Settings General Options C C Compiler Setup C Download xtra Options Plugins Assembler Attach t Custom Build Attach to program Build Actions Verity download Suppress download Linker Simulator J Use flash loader s Angel ROM monitor eel default J Link Al Trace Macraigor RDI Third Party Driver Fig 7 21 Disable Verify Download Option USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 7 11 7 4 Configure KEIL MDK KEIL for ARM is an IDE from KEIL Corp This section introduces how to configure KEIL to work with H Jtag From H JTAG V0 9 2 H JTAG uses the AGDI interface under KEIL The RDI interface has b
64. e x 5 Close Fig 4 12 Target Manager Tip According to IEEE 1149 standard device ID is 32 bit and the lowest bit should be User can tell whether an ID 15 valid or not based on this If you have any chip that H Jtag can t recognize please email us the device ID and the ARM core We will update the chip list In next version 4 10 TAP Configuration For most ARM chips the JTAG scan chains are separated For these chips the default TAP configuration should be adopted as shown Fig 4 13 The figure indicates that no other scan chain 15 concatenated before and after that of the ARM core TAP Configuration X Default OK Cancel Fig 4 13 Default TAP Configuration Some chip integrates other scan chains besides that for ARM core For this kind of chips user needs to configure TAP accordingly STR91xF is chip from ST This chip integrates several scan chains inside as shown in Fig 4 14 STR91xF has 3 TAPs TAP 2 and TAP 3 Among all these TAPs only TAP 2 15 for ARM debugging 1 and TAP 3 are concatenated before and after TAP 2 The IR length of TAP 1 and TAP 3 15 5 Bit and 8 Bit respectively For this chip the TAP configuration should look like Fig 4 15 The TAP USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 4 7 configuration shown in Fig 4 15 tells that there is one scan chain before that of the ARM core and its IR length is 5 Bit In addition there is anoth
65. e Program Wizard 1 d 3 5 Program Options Flash Selection Configuration Init Scripts Pam Options General On Chip Flash Nand Flash Production H Flasher Help Save As Options gt gt Programming 53C2440 K9F1G08 Flash Target Security Type Dst Addr Src File From Exit About Unchecked Unchecked Plain Binary Format Main Only 5 Block 0000 Page 0000 mi Entire Chip Entire Chip Reset Check Program Verify Erase Blank ll EE Dump Fig 2 26 Program Wizard Programming Nand Flash Is Selected This is the fifth step of the programming wizard As shown in following figures user can make different selections based on the selected FLASH chip USER MANUAL Mew Load Save Program Wizard Flash Selection Configuration Init Scripts Programming General On Chip Flash Nand Flash Production H Flasher Help Save As Options Exit About gt gt Pgm Options 3C2440 K9F1G08 Flash Programming Options General Options Options for On Chip Flash Options for Nand Flash Options for Production Fig 2 27 Program Wizard Program Options Copyright 2014 WWW HJTAG COM All Rights Reserved 2 12 251 New Load Save SaveAs Options Exit About Program Wizard gt gt Options S3C2440 K3F1G08 USER MANUAL Flash Selection Confi
66. e programming If user doesn t want to adjust the checksum please tick the box ATMEL AT91SAM When enabled H Flasher will set the security bit to enable flash protection when the programming is done ST STM32F When enabled H Flasher will set the RDP option byte to enable flash protection when the programming 15 done USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 5 6 NAND FLASH PGM OPTIONS To program NAND flash user needs to provide the following information to H Flasher v Programming Mode Specify how to program the NAND flash skip bad blocks or relocate bad blocks v Verification Mode Specified how to perform the verification verify the main area only or verify both the main and spare area Please note that this option 15 active only when the file type 15 specified as Plain Binary Format Main Spare Oob v Scan of Bad Blocks Specify how to scan the bad blocks for relocation mode erase the entire chip or only erase the used blocks reserved area for relocation and reserved blocks for relocation v Reserved Area for Relocation Specify the reserved blocks for relocation purpose v Reserved Area for User Table Specify the reserved area for bad block table relocation table or user data During programming H Flasher skips this area User can write this area at the end of the programming through function info table H Flasher supports two NAND flash programming modes skip mode
67. een disabled by H JTAG under KEIL First run TOOLCONF EXE located under the installation direction of H JTAG The purpose 15 to update configuration file TOOS INI of KEIL In TOOLCONF EXE use the browse button to locate the configuration file TOOLS INI which can be found under the installation direction of KEIL as shown in Fig 7 22 Then click the Config button to perform the update After the update is completed successfully click Exit to exit H JTAG ToolConf for KEIL MDK x KEIL MDK TOOLS INI H D SKEILSTOOLS INI Configure Exit Fig 7 22 ToolConf for KEIL MDK Next start KEIL and open a project Then click Project gt Options for Target as shown in Fig 7 23 W Blinky DKeil ARM sExamples sBlinky Blinky c lol x E Eile Edit view Project Debug Flash Peripherals Tools SVCS Window Help 18 x E yr Mew Project Import pvisionl Project m e Open Project d EE Close Project HH us LPC2100 Startup t i Star Options For Target LPC2100 gt Ss 5 Buld target ct d cE cE ci cts ceta wta wta wta vta tta cta cba t pepe pop development tools Select Device For Target 2100 GmbH 2002 2004 d Components Environment Books k T m cr m TT zu mq wi Translate
68. election S KTA D EL ATSISAM Vendor AT91SAM 2 Configuration 0 L ATSISAMTA3 ATSISAMIS128 PartNo 817915 25 ATSTSAMTSTE FLASH ATSTSAM S161 5 Options 815 7525 Programming Sector 1024 15 532 Block N A 22 1 15 753221 General Nand Flash 0 ATSISAM7S64 Size 256 915 5 25 ATSISAMTSE32 5 12 32 BIT ow ALIISAMZXDZO Aa AT SISAM FX 2568 12 ATSTSAMTAXC128 oo ATSTSAMTXC256 12 Lo AT OC 2 H Flasher Help LATA Fig 5 3 Flash Selection AT91SAM7X256 5 6 2 Configuration In this step user needs to provide some basic memory information For 915 7 256 the bit width flash start address and RAM start address are all fixed Default configuration is used In this example no XTAL needs to be specified H Flasher ES GO x Mew Load Save Save amp s Options Ext About Program Wizard gt gt Configuration ATS1SAM X256 Flash Selection Flash Width x Chip 92 Bit 1 Chip Init Scripts Programming Flash Start Address Pom Options General Start Address On Chip Flash U Y Y FW H Flasher Help INIT TCK J EV a 2 Fig 5 4 Configuration AT91SAM7X256 USER MANUAL Copyright 2014 WWW HJTAG COM All Righ
69. er called HFC EXAMPLES In this folder user can find lots of HFC configuration files which can be used as reference 5 2 H Flasher Production Mode H Flasher supports production mode In production mode the programming process is controlled automatically through the detection of connecting disconnecting of targets which can improve the efficiency significantly To enable production mode please tick the option as shown in following figure x Mew Load Save Saveds Optons Ext About Program Wizard gt gt Options 564 Flash Selection PRODUCTION MODE Configuration Enable production mode for flash programming Init Scripts Programming Pam Options ADD ON General Enable hflasher add on On Chip Flash e d Mand Flash 1 d 3 4 5 gt H Flasher Help Fig 5 1 Enable Production Mode USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 5 1 5 3 H Flasher Workflow The workflow of H Flasher is very simple As shown 10 Fig 5 2 the workflow includes four steps execute init script download flash driver check flash ID and operate on flash These four steps are executed sequence If any step goes wrong the operation is interrupted immediately Y Execute Check Init Script Flash ID Is ID pp Correct or Download Era
70. er scan chain after that of the ARM core and its IR length is 8 Bit Based on the TAP configuration H Jtag knows how to access the scan chain of the ARM core for debugging TCK TCK TCK TMS TMS TMS TAP 1 TAP 2 TAP 3 Boundary Scan ARM DEBUG Flash Memory IR 5 IR 4 IR 8 TDI TDI TDO TDI TDO TDI TDO TDO nTRST m nTRST nTRST nTRS Fig 4 14 5 Scan Chains TAP Configuration Default Cancel Fig 4 15 TAP Configuration STR91xF 4 11 H Jtag Options H Jtag provides some common options User can make the selection using the main options window or the option menu The main window of options is shown in Fig 4 16 Disable Semihosting Semihosting Vector Catch Data Abort Note If you don t need semihosting for debugging you can disable it here Fig 4 16 Main Window of Options USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 4 8 CONNECTION MODE Different connection modes are defined H Jtag From the connection mode list user can select different modes as required User can also check the description of each connection mode in the configuration dialog VECTOR CATCH CONFIG H Jtag server manages the vector catch configuration In the configuration dialog Fig 4 17 user can decide which exception s interrupt s to be caught during the debugging When all the flags are cleared vector catch is disabled automatically In another case
71. eter B SysReset Command USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 6 2 6 1 5 SoftReset SoftReset command is used to perform software reset The main purpose is to reset CP15 control register For target with CACHE and MMU this command can be used to disable both the MMU and CACHE For this kind of target the program or OS inside the flash may configure the MMU and perform complicated remap operation To re program the target it is suggested to disable the MMU and CACHE with SoftReset By disabling the MMU and CACHE it 15 easy to mange the memory map and make it same as what we expected The format of this command is SoftReset No parameter B SoftReset Command 6 1 6 SetPPMR SetPPMR command 1s used to set the CP15 Peripheral Port Memory Remap Register for ARM11 The format of this command is SetPPMR Value B SetPPMR Command B Value New value for PPMR register Example SetPPMR 0x70000013 Set PPMR register to 0x70000013 USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 6 3 6 2 Edit Init Script Both H Jtag and H Flasher provide script editor The editors are shown Fig 6 1 and Fig 6 2 respectively Actually the editors of H Jtag and H Flasher are same The introduction in this section covers both H H JTAG Server ee File Control Flasher Init Tools Settings Options Help Init Script Cmd width Address Value
72. f the emulator 15 connected to PC properly 2 Check if the driver of the emulator 15 installed correctly Q H jtag server is not ready A Generally it means that no target is detected by H JTAG SERVER Q Can t find h jtag server A It means that H JTAG SERVER is not running Please start H JTAG SERVER Q Auto init has been enabled but no init script is found A It indicates that no init script is found but the Auto Init option is enabled Please do one of the follows 1 Disable Auto Init H JTAG SERVER gt Init gt Disable Auto Init 2 Provide the init script H JTAG SERVER gt Init gt Init Script Q Unknown target A It means that H JTAG SERVER can t recognize the target Possible reasons are The JTAG ID of the target 15 not in the list of H JTAG SERVER So it can t be recognized User designate the ARM core manually 2 H JTAG SERVER read the wrong JTAG ID Please check the software settings and the hardware connection USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 1 Q Can t receive response from target s SWD interface A This error indicates that the SWD mode 15 selected but H JTAG SERVER can t receive response from target The possible reasons are 1 The target doesn t support SWD 2 The connection has some problem No RTCK signal is detected Please ensure that the target supports and the signal is connected A This error indicates that ADA
73. ftware which include AXD RVDS IAR and KEIL For details on how to use respective debuggers please refer to their own user manuals 7 1 Configure AXD ADS Arm Developer Suit is the most widely used IDE from ARM Corp AXD 1s the debugger comes with ADS This section introduces how to configure AXD and use it with H Jtag First start AXD and click Options gt Configure Target as shown in Fig 7 1 File Search Processor Views System Views Execute Options Window Help I i k 2 g a Wa ERE Target Image Files Class Configure Interface Configure Target Gonhigure Processor Source Path w Status Bar Profiling System Monitor Log Debug Log Log file HDI Severe Error 00500 Could nat find h jtag server Please make sure that h ag server has been started properly gt Image 2 Configure target and debugging agent options Fig 7 1 Configure Target Menu USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 7 1 Next the choose target dialog Fig 7 2 is popped up Sucker Minkianc File Search LDirmcaccaomrg Via Choose Target Im Tag Jaje Remove Rename Save As zarifigure Target Environments System
74. g Fig 9 5 Production Mode Waiting Status Please Connect Next Target USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 9 3 Appendix Q amp A This is the Q amp A section which collects some of the common questions and answers User can refer to this section for trouble shooting If you need any further help please contact our technical supports Q Can t halt target and make it enter debug state A Normally this is caused by hardware issue It is also possible that the problem is caused by other issues To locate the cause please do the following checks 1 Check if the TAP configuration is correct Some chip requires special TAP configuration 2 Check if the target is encrypted which makes the JTAG inaccessible 3 Check if the JTAG cable 16 connected well If a non standard cable is used double check the connection Q Unable to find target Please make sure that the hardware is properly connected and powered up A Please do following checks to locate the cause 1 Check if the target is connected to the emulator properly 2 Check if the cable is connected well If a non standard cable 15 used double check the connection 3 Check if the TAP configuration is correct 4 Check if the TGT light of the H JTAG USB emulator is on Q Can t open the H JTAG USB hardware emulator A It means that the H JTAG SERVER can t access the H JTAG USB emulator Please check follows 1 Check i
75. g server and the JTAG emulator can communicate to each other via USB or LPT When LPT 15 used user needs to provide the accurate JTAG configuration and tell H JTAG exactly how the JTAG emulator is connected to LPT For the details on how to configure J TAG please refer to the following sections LPT USB SERVER EMULATOR i ARM JTAG TARGET Fig 4 5 JTAG Connection USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 4 3 4 6 3 USB JTAG Setting H Jtag USB emulator supports two different modes JTAG mode and SWD mode SWD mode 15 a new debug interface proposed for the debugging of CORTEX M R cores H Jtag USB emulator also supports different TCK speeds 25K 15M Hz In the USB JTAG setting dialog Fig 4 6 user can specify the TCK speed manually let H JTAG select the TCK speed automatically or use adaptive TCK RTCK When AUTO TCK is chosen H Jtag will determine the appropriate speed automatically through testing When adaptive 15 used the real TCK speed is determined by the RTCK signal from MCU MODE JTAG MODE SWD MODE SPEED MHz C AUTOMATIC SELECTION ADAPTIVE RTCK OK Cancel Fig 4 6 USB JTAG Setting Note 1 The TCK speed has direct affect on the debugging performance Different target system has different highest supported TCK speed The highest su
76. ghts Reserved 5 17 Chapter 6 Initialization Script This chapter introduces the definition of initialization scripts and how to edit scripts in H Jtag and H Flasher 6 1 Definition of Script Commands H Jtag defines 6 script commands Setmem Getmem Delay SysReset SoftReset and SetPPMR The purpose of each script command is listed in Table 6 1 These 5 script commands can be combined to initialize different systems Table 6 1 Script Commands Function SetPPMR Set CP15 Peripheral Port Memory Remap Register for ARM11 Note Currently only 6 script commands are defined But these commands can satisfy most situations In the future the command set may be extended to accommodate new requirements 6 1 1 Setmem Setmem is the most important script command This command can be used to set the value of memory which includes memory mapped registers The format of this script command 15 Setmem bit width dest address value B Setmem Command B Bit Width Bit width of the write operation which could be 8 bit 16 bit or 32 bit B Dest Address Destination address of the write operation Please ensure that the address is aligned B Value The value written to the destination address Examples Setmem 08 0x0 0x12 Write 0x12 to 0x0 bit width 1s 8 bit Setmem 16 Bit 0x0 0x1234 Write 0x1234 to 0 0 bit width 15 16 bit Setmem 32 Bit 0x0 0x12345678 Write 0x12345678 to 0 0 bit width is
77. guration Init Scripts Programming Options On Chip Flash Nand Flash Production H Flasher Help RESET Reset the target after programming has been completed VERIFICATION Perform second verification by reading after programming SKIP ID CHECK Skip the check of flash id before all the flash operations ERASE CHIP Erase entire chip instead of sectors before programming SMART MODE Backup flash data before erasing and then restore them during programming Fig 2 28 Program Wizard General Options Mew Load Save Program Wizard Flash Selection Configuration Init Scripts Programming Pam Options General Nand Flash Production H Flasher Help LT Options Ext About gt gt Options ATS1SAM7S64 10041 2001 300 1 7007180022000 Disable the adjustment of the vector table check sum ATMEL ATS1S4M Set the security bit after programming to enable protection ST STM32 Active the read protection by setting the RDP option byte ST STR X Enable Debug Headliut protection after programming Fig 2 29 Program Wizard On Chip Flash Options Copyright 2014 WWW HJTAG COM All Rights Reserved 2 13 H Flasher Flash Selection Configuration Init Scripts Programming Pam Options Erase anid scan the entire fash chip General On Chip Flash Mand Flash CET ES and scan the covered blocks Pr
78. hould modify info table function in the flash driver based on user s own requirements USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 5 PRODUCTION MODE When this option is enabled H Flasher enters production mode In production mode the software operations are simplified to improve the efficiency After entering production mode H Flasher keeps detecting target When a target is detected H Flasher starts the flash programming process automatically When the programming is done user 15 notified to disconnect the target and connect the next So the only thing user needs to do is to connect a target for programming and disconnect it when the programming is done then connect the next one USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 5 8 5 5 Useful Tips Tip 1 H Flasher and Flasher Lite are same except that H Flasher Lite does not support Auto Flash Download To use Auto Flash Download please run and configure H Flasher Instead of H Flasher Lite Tip 2 During the configuration if any edit box or list box is in gray it means that only one option is available User doesn t need to specify Tip 3 Before starting the programming H Flasher will erase certain part of the flash automatically Hence user doesn t need to erase the flash manually Tip 4 The erase operation 15 sector based To avoid the loss of data H Flasher provides auto backup and restore
79. in USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 5 13 5 7 Example 2 LPC2210 SST39VF1601 LPC2210 is ARM7 based chip from NXP Former PHILIPS Semiconduct This chip 15 equipped with 16K Bytes internal SRAM but without internal flash This chip has four external memory banks which can be used to expand external flash and SDRAM In this example it is assumed that BANKO Is used for external flash SST39VF1601 The address range is 0x80000000 to Ox8OFFFFFF BANK1 is used for external SDRAM and the address range 15 0x81000000 to 0 81 Next we are going to introduce how to program H Flasher SST39VF1601 with H Flasher 5 7 1 Flash Selection In the first step as indicated select target flash In this example SST39VF1601 should be selected The selection is shown in Fig 5 10 H Flasher 728 Load Save SaveAs Options Exit About Program Wizard gt gt Flash Selection 1 Flash Selection SST39LFDBD Vendor g Configuration L 85T38LF160 PartNo SSTSIVF1601 3 Init Scripts SST 39LF 2004 SST3SLF400A NOR FLASH i POSST3SLFBI2 5 Pam Options SSTSSLF8004 gt General d 5513951 4 Block SST33SF 20A Flash o e SST38VFDTO 2 gt 55 39 020 us E 2 H Flasher Help gt SST3SVFDAD 042346 00BF SSTSIVFO80 16 BIT SST38VF B8 38 E amp Programming SST39VF16
80. ion But some system supports remap and can map flash to different addresses For this case user needs to ensure that the specified flash start address is consistent to the provided init scripts In a word please provide the init scripts when necessary and make sure that H Flasher can access flash on the specified address RAM Start Address User needs to designate a RAM space which should be gt 4K Bytes because H Flasher requires a 4K Bytes RAM space for driver use The valid address range is from RAM Start Address to RAM Start Address 4K 1 H Flasher downloads the flash driver into this area The flash driver can be downloaded into both SRAM and SDRAM If the target system has on chip SRAM it is suggested to use on chip SRAM instead of external SDRAM The reason is that the access of SRAM is much faster than that of SDRAM Meanwhile please provide necessary init scripts for the initialization of memory system and ensure that the designated USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 5 3 RAM space 15 accessible XTAL For some chips H Flasher needs to know the frequency of the external crystal oscillator H Flasher uses this for the configuration of system clock When the flash chip is specified the input for XTAL may be disabled or enabled accordingly When it is enabled please specify the X TAL Otherwise ignore it INITTCK amp PGM INIT specifies the speed used during the
81. is selected no other parameter is needed Fig 6 5 shows how the editor looks like after the completion of the SysReset script gt gt Init Scripts Fig 6 5 SysReset Script If SoftReset is selected no other parameter is needed Fig 6 6 shows how the editor looks like after the completion of the SoftReset script rar 41 SoftReset Fig 6 6 SoftReset Script USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 6 6 If Delay command 1s selected the delay value also needs to be specified Fig 6 7 shows a script which delays 5000 milliseconds gt gt Init Script Cmd _ width Delay 5000 Fig 6 7 Delay Script If Setmem command 15 selected all the bit width destination address and target value need to be specified When Setmem command 15 selected a bit width list will be shown up by double clicking the Width column Fig 6 8 User can select the right bit width from the list Next user needs to input the destination address and value in the Address column and Value column respectively Fig 6 9 shows script Setmem 32 Bit 0x0 0x12345678 which is to write 0x12345678 to 0 0 Cmd width Address Value 1 Setmem 08 Bit 16 Bit 32 Bit Fig 6 8 List of Bit width gt gt Init Script 4 a etmerm Fig 6 9 Setmen Script USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 6 7 If Getmem command is selected both the bit
82. ister which is used to configure some multiplexed pins BCFGx is bank configuration register which is used to set the bus width and read write wait cycles For details please refer the datasheet In this example we need three scripts listed in Fig 4 12 to make sure that the flash and SDRAM are accessible LT uisi Mew Load Save SaveAs Options Exit About Program Wizard gt gt Init Scripts SST39VF1601 ue Flash Selecti Ee P as election m Address Y Fa Taan SetMem 32 Bit 08 0020014 0 0 814914 2 SetMem 32Bi 0x10007DE7 M Programming SetMem 32Bit 4 0x10000400 Pom Options 5 b General On Chip Flash Nand Flash 2 H Flasher Help Fig 5 12 Init Script LPC2210 SST39VF1601 USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 5 15 5 7 4 Program Options Before starting the operation user can choose different program options as required In this example we choose to perform the additional verification and reset target when the programming is done r H Flasher ioj x Load Save SaveAs Options Exit About Program Wizard gt gt Options 55 Flash Selection RESET Configuration eset the target after programming has been completed TE Scrip VERIFICATION Programming erform second verification by reading after programming pam Opttans SKIP ID CHECK Skip the check of flash id before all the fla
83. lash Nand Flash Production H Flasher Help gt gt Init Scripts Cmd Width Address Value Fig 2 23 Program Wizard Init Script Copyright 2014 WWW HJTAG COM All Rights Reserved 2 10 4 Programming Programming is the fourth step of the wizard In this step user can operate on the target flash like reset target check flash write erase flash verify and check if tt 1s blank Depends on the type of the selected flash user can see different dialogs as shown in Figs 2 24 2 25 and 2 26 New Load Save SaveAs Options Exit About Flash Selection Configuration Init Scripts Options PLEASE SELECT THE TARGET FLASH DEVICE General On Chip Flash Nand Flash Production H Flasher Help Fig 2 24 Program Wizard Programming No Chip Is Selected 251 New Load Save SaveAs Options Exit About Program Wizard gt gt Programming ATS1SAM S64 Flash Selection Flash Unchecked Reset Configuration Target Unchecked Check Init Scripts Security IJnProtect Pam Options Type Auto Flash Download Program On Chip Flash Dst Addr j Verify Flash Src File Production em Entire Chip Erase To Entire Chip Blank Address O Read Size Fig 2 25 Program Wizard Programming On Chip Flash Nor Flash or Spi Flash Is Selected USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 2 11 six Mew Load Sav
84. n in Fig 7 29 and 7 30 User should select one of the drivers accordingly Y Options for Target HCB2100 Ea Device Target Output Listing User Asm Linker Debug Utilities Configure Flash Menu Command Use Target Driver for Flash Programming ULINK2 ME ARM Debugger JULINK2 ME ARM Debugger Init Hle Signum Systems JTAGiet J LINK J TRACE ARM Settings Update Target before Debugging HJTAG AR Run Independent Fig 7 29 H JTAG Utilities Drivers USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 7 15 H JTAG Cortex M4 Fig 7 30 H JTAG Utilities Drivers USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 1 16 Chapter 8 Auto Flash Download Sometimes user needs to debug the program in Flash Flash and RAM are different To write data into Flash certain instructions must be executed So to debug in Flash the program need to be written into it first H Jtag supports auto flash download for debugging in flash With auto flash download program can be directly downloaded or written into flash before debugging just like debug in RAM SDRAM use auto flash download please enable the auto download option in H Jtag as shown in Fig 8 1 Meanwhile please select right target flash and provide appropriate configuration in H Flasher r Server File Control Flasher Init To
85. n restore them during programming ADD ON Enabke hflasher add on Fig 5 6 Program Options USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 5 11 5 6 5 Programming After the configuration is completed in the first 4 steps user can operate on flash in this step First let s try to check the target information by click Check In this example the check result 15 shown Fig 5 7 The result indicates that the configuration works well H Flasher x Load Save SaveAs Options Exit About Program Wizard gt gt Programming ATS1SAM X256 Flash Selection ATSISAM7X256 275 0940 Reset Configuration Target Little Endian Check Init Scripts Security UnProtect Programming Options Auto Flash Download Pragram On Chip Flash Dest Addr Verify Nand Flash Src File p uc eee H Flasher Help tee Entire Chip Entire Chip Blank Address Q Read Size Fig 5 7 Check Result AT91SAM7X256 Next let s try to program a binary file this example the settings are shown Fig 5 8 Plain binary format is selected the source file is TEST bin located under C and the destination address is 0 0 Flash base address H Flasher Mew Load Save Saveds Options Ext About Program Wizard gt gt Programming 915 lt 256 Flash Selection Flash 15
86. nd reliable solution Support different Windows platforms NT 2000 XP VISTA WINDOWS7 WINDOWSS Support the programming of ON CHIP Flash NOR Flash NAND Flash and SPI Flash Support auto flash download during debugging See y quee EY gt 11 Support production mode for maximum efficiency 1 2 Communication Structure H Jtag supports RDI interface from ARM Limited Through the RDI interface H Jtag can support most of the popular debuggers The connection structure for debugging is shown in Fig 1 2 USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 1 1 DEBUGGER m H JTAG TTAG ARM AXD RVDS IAR KEIL SERVER EMULATOR TARGET Fig 1 2 Connection for Debugging Debuggers communicate with H Jtag server via RDI H Jtag server accesses the JTAG SWD port of target system through the JTAG controller connected to LPT USB With proper configuration H Jtag can work with H JTAG USB emulator and different LPT emulators Besides debugging H Flasher can download data application into flash chips H Flasher supports most on chip flashes and external flashes For flash programming the connection between H Flasher and H Jtag server is shown in Fig 1 3 H JTAG JTAG ARM H FLASHER SERVER EMULATOR TARGET Fig 1 3 Connection between H Flasher and H Jtag Server As shown in the above figure H Flasher also talk
87. nk 5 4 H Flasher Program Wizard H Flasher comes with a program wizard to easy the configuration User can follow the wizard to complete the configuration 5 4 1 Flash Selection In this first step user can select the target flash from the list User needs to check the information and ensure that the selection is correct The correct selection is very important because different flash chips define different command sets 5 4 2 Configuration In this step user needs to provide necessary information about the target system which includes flash bit width flash start address RAM start address XTAL and TCK Bit Width and Chip Number Some external flash chips can operate at different bit widths for example 8 Bit 16 Bit and 32 Bit Normally drivers for different bit widths are different Hence user needs to specify the bit width for this kind of chips For chips support only one bit width the default one is used and user doesn t need to specify it In some design multiple chips are used In this case user also needs to specify the right chip number Flash Start Address To operate on the target flash H Flasher needs to know the flash start address So user needs to specify the start address of the flash To H Flasher the valid address space is from Flash Start Address to Flash Start Address Size 1 Any address out of this range 15 treated as illegal Generally flash can be accessed by address 0x0 without initializat
88. ntel R 82801D6B D6BM USB 2 0 Enhanced Host Controller 24CD Intel R amp 2801DB JDBIM USB Universal Host Controller 242 Intel R amp 2801DBJDBIM USB Universal Host Controller 2404 Intel R 82801 USB Universal Host Controller 247 Logitech USB Camera IMiC Connect USB Root Hub USB Root Hub USB Root Hub USB Root Hub Fig 3 9 Device manager USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 3 6 Chapter 4 Configure H Jtag This chapter introduces how to configure and use H Jtag in details Meanwhile some simple examples are given for reference 4 1 Detect Target Before detection please connect the JTAG emulator to the USB or parallel port and connect target to the JTAG emulator During the start up H Jtag tries to detect the target automatically After H Jtag is started up user can click the detect button to detect target If the target 1s detected successfully the ARM core and device ID are displayed in the middle of the main window Otherwise please check the configuration and hardware connection 4 2 Reset Target User can reset target via H Jtag For a standard JTAG interface two independent reset signals system reset nSRST JTAG TAP reset nTRST are defined With these two reset signals H Jtag can perform system reset and JTAG TAP reset Note Some LPT based JTAG emulator doesn t provide system reset signal so H Jtag can t perform system reset on target The target c
89. ntroduces the hardware interface and some hardware features of H JTAG USB emulator and the installation of the driver 3 1 Hardware Features and Interface H JTAG USB emulator is a high performance ARM in circuit emulator which supports both JTAG and SWD debug interfaces and provides 10 15 Hz JTAG SWD clock The maximum download speed 15 up to 800K B S and the maximum upload speed is up to 550K B S Hardware Features USB 2 0 Controller FPGA design High speed USB 2 0 Powered through USB 15MHz JTAG SWD clock 20 PIN standard JTAG interface Standard SWD interface Wide target voltage 1 8 5 0V Note H JTAG USB emulator only supports high speed USB 2 0 interface Maximum RAM Read Write Speed ARM7 Max write speed 750K B S Max read speed 550K S ARMO Max write speed 750K B S Max read speed 520K S Max write speed 800K B S Max read speed 550K S XSCALE Max write speed 750K B S Max read speed 520K S CORTEX M3 write speed 420K B S Max read speed 340K S 4 Note The above data is for reference only The actual speed may be different Appearance The appearance of the emulator 1s shown in Fig 3 1 The USB interface locates on the left side and the 20 pin JTAG SWD interface locates on the right side There are three LED indicators on the upper side which are used to indicate the USB power target power and JTAG activity respectively A USB Represent the USB power B Indi
90. oduction H Flasher Help H Flasher Program Wizard gt gt Options ET SAM 7554 Flash Selection Configuration Init Scripts a Programming Options General Enable hflaster add On Chip Flash Flash Production H Flasher Help Y Y Y In T Li Fig 2 31 Program Wizard Production Options USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 6 Help In the wizard a help section is also included This help section has the basic information on how to use H Flasher Load Save SaveAs Options Exit About Program Wizard gt gt H Flasher Help Flash Selection program flash device please follow the steps listed below 1 Select flash device Init Scripts i 2 Configure target system 3 Fill the seript for initialization Pam Options 4 Select the pgm options General 5 Program Erase Check Blank On Chip Flash To view the following helps please expand double click the Nand Flash iel ilet Froduction Help on Hash selection Programming 1 3 4 5 P Help on configuration Help on init script Flash Selection Help on programming Configuration Help on pgm options Init Script Programming ptains Fig 2 32 Program Wizard Help USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 2 15 Chapter 3 H JTAG USB Emulator This chapter i
91. ols Settings Options Help a bia EJ Fr Start H Flasher Fig 8 1 Enable Auto Flash Download While starting debugging H Jtag will determine where and which part of the program should be downloaded according to the information extracted from the image For those need to be written into flash H Jtag will call H Flasher to complete it automatically Meanwhile a dialog will be shown to indicate the progress Note Auto flash download can be used for both on chip flash and external NOR flash For chips supports complicated memory configuration like MMU REMAP it is recommended to disable MMU REMAP through init script before debugging Note H Flasher Lite does not support Auto Flash Download To use Auto Flash Download please run H Flasher Next an example based on NXP LPC1766 is given to illustrate how to use Auto Flash Download for flash debugging For other hardware platforms the basic procedure is the same USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 8 1 8 1 Example Auto Flash Download For LPC1766 In this example LPC1766 15 used to illustrate how to use Auto Flash Download for debugging in Flash First enable Auto Flash Download in H Jtag as shown in Fig 8 2 H JTAG Server E ni xi File Control Flasher Init Tools Settings Options Help 9 c g 4 Fr Start H Flasher Download Fig 8 2 Enable Auto Download After enabling Auto Flash
92. pported TCK speed also depends on the system clock configuration of target system Appropriate TCK speed should be designated Over high TCK speed leads to unpredictable debugging behavior AUTO TCK may not work under some situation In this case please designate a lower TCK speed manually Note 2 The adaptive TCK is only for JTAG mode and it is not useable for SWD mode To use adaptive TCK the target under debug needs to support RTCK and the RTCK signal also need to be connected to the JTAG interface properly 4 6 4 LPT JTAG Setting The LPT based JTAG controller does not have a fixed schematic even for WIGGLER and SDT JTAG Some JTAG emulator comes with nSRST while others don t have Some JTAG emulator provides separate nSRST and nTRST while others connected them together To support different LPT based emulators H JTAG provides a flexible configuration interface What user needs to do is tell H Jtag exactly how JTAG emulator 15 connected to LPT The LPT provides 8 data bits DO D7 as output and several status bits as input The data bits can be used as JTAG output signals TMS TCK TDI nSRST and nTRST Any one of the status bits can be used as input to sample The JTAG configuration 15 to specify how the JTAG signals are connected with the data bits and status bits On some JTAG emulator the nSRST and nTRST are inverted These also need to be specified in the JTAG configuration USER MANUAL Copyright 20
93. river Processor mode Endian mode Stack align Am Little 4 bytes Thumb Big C Bbytes Cancel Fig 7 15 Dialog of Options USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 7 8 In Fig 7 15 select Debugger category and then active Setup page In Setup page please select RDI as the driver After the selection the page looks like Fig 7 16 Options for node blinky EM x Category Factory Settings General Options C C Compiler Setup Download Extra Options Plugins Assembler Custom Build Driver Run to Build Actions Links main Debugger Angel IAR ROM monitor Use macro file Setup macros J Link J Trace SSS n El Device description Third Party Dri Override default TOOLEIT BIRS CDNFIGioIpc 2233 ddf Fig 7 16 Debugger Configuration Then select RDI category as shown in following figure In this page user needs to specify the path for H JTAG DLL Options for node blinky D i Category Factory Settings General Options C C Compiler RDI Assembler Build Manufacturer ADI driver Build Actions Browse to your ADI driver Linker m Debugger Simulator Allow hardware reset the RDI menu to specily Angel additional driver settings This I menu available after the ADI IAR ROM monitor ETM trace driver has been located J Link J Trace i Catch
94. s 5 steps and 1 help section This section gives a brief introduction to the program wizard 1 Flash Selection Flash selection 15 the first step of the program wizard as shown in Fig 2 21 In this step all the supported flash chips are categorized by vendors User needs to specify the target flash chip When a chip is selected the basic information of the chip 15 displayed on the right side Y Y Y WE USER MANUAL SaveAs Options Exit About Flash Selection 15 0 CATSTSAMTA3 915 75128 ATSTSAMTS1B ATSISAM7S161 ATSTSAMTS5256 ATS15AM7532 ATSISAM S321 ATSTSAM S512 ATSISAM SB4 ATSTSAMTSE256 ATSTSAMTSE32 ATSTSAMTSE512 ATSISAMFX128 ATSTSAMTX256 ATSISAMFX51 2 i ATSISAMPXC1 28 ATSTSAMTXC256 i ATSTSAMTAC512 20 Configuration Init Scripts Programming Options General On Chip Flash Nand Flash Production H Flasher Help H Flasher q New Load Save Program Wizard Vendor PartNo Type Sector Block Page Size ID 15 xl gt gt Flash Selection n 15 15 2 ON CHIP FLASH 1024 256 KB 027560940 32 Fig 2 21 Program Wizard Flash Selection Copyright 2014 WWW HJTAG COM All Rights Reserved 2 9 2 Configuration Configuration is the second step of the wizard The display is shown in Fig 2 22 In this step
95. s to H Jtag server via RDI which is similar to that for debugging 1 3Supported ARM Cores H JTAG supports the debugging and programming of all the popular ARM cores CORTEX MO CORTEX M3 4 ARM7TDMI ARM7TDMI S ARM720T 740 920 ARM922T ARM940T ARM926EJ S ARMO946E S ARMO966E S ARM1136 1176 21 PXA25X PXA27X IXPAXX IXP2XXX 4 Note Detailed list of chips supported by H JTAG can be found in the Appendix 1 4 Supported IDEs H JTAG supports all the popular IDEs which include SDT2 5 ADS1 2 RVDS2 0 RVDS2 2 KEIL MDK and IAR Embedded Workbench USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 1 2 Chapter 2 Installation and GUI This chapter introduces both the installation of H JTAG and the software GUI For the detailed configurations please refer to Chapter 4 7 2 1 Installation User can download the latest version installation file from www hjtag com Normally the downloaded file 15 zipped and need to be unzipped first After unzipped user can get the installation exe file h jtag exe By double clicking the exe file the installation can be started First user will see the welcome dialog as shown in Fig 2 1 Click Next and go to next step x Welcome to the H JTAG Installation This setup program will install H ITAG Y0 4 4 BUILD 20070401 on your computer Click Exit if you da not want to install this application
96. se Flash Driver or Program or Check Blank Download Succesfully Stop Complete Successfully Fig 5 2 Workflow of H Flasher 5 3 1 Execute Init Script If init scripts are specified H Flasher first executes them to initialize the target If no init script is specified or no script 15 needed H Flasher skips this step If something goes wrong during the initialization H Flasher stops immediately and notifies user 5 3 2 Download Flash Driver After successful completion of initialization H Flasher searches appropriate flash driver according to the selected flash and specified bit width Then H Flasher downloads the flash driver into SRAM SDRAM based on the designated RAM start address If the download is successful go to next step Otherwise error out and notify user with message Can t download driver to specified address 5 3 3 Check Flash ID After the download of driver H Flasher checks the flash ID The purpose is to ensure that the selected flash is the right one and check whether the flash can be accessed by the specified address USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 5 2 5 3 4 Read Erase Program Verify Check Blank After the previous three steps have been executed successfully H Flasher can perform any operations on target flash as required The supported operations include read erase program verify and check whether the flash is bla
97. sh operations On Chip Flash ERASE CHIP Nand Flash Erase entire chip instead of sectors before programming H Flasher Help SMART MODE Backup flash data before erasing and then restore them during programming ADD ON IS Enabke h flasher add ar Fig 5 13 Program Options 5 7 5 Programming After the configuration is done we can operate on target flash in the fourth step of the wizard First let s try to check the target information by clicking Check In this example the check result is shown in Fig 5 14 The result indicates that the configuration is correct H Flasher Load Save SaveAs Options Exit About Program Wizard gt gt Programming S5ST39VF1501 Flash Selection Flash SST39VFIBO1 0 234 00 Reset Configuration Target ARM7TDMI S LITTLE ENDIAN Check Init Scripts Security UnProtect Options Type Auto Flash Download Program On Chip Flash Dest Addr Verify Flash Sre File cee S E UU H Flasher Help From Entire Chip Erase To Entire Chip Blank Address Read Size Fig 5 14 Check Result LPC2210 SST39VF1601 USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 5 16 Next let s try to program a binary file In this example the settings are shown in Fig 5 15 Plain binary format is selected the source file is TEST bin located under and the destination address 15 0x80000000
98. tify user with error message Can t open specified init script Note For the detailed definition of script commands please refer to Chapter 6 USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved 4 2 4 5 USB LPT Interface Selection H Jtag supports both USB based H JTAG high speed emulator and LPT based JTAG emulator User should select the right hardware interface accordingly USB LPT Selection LPT Parallel Port C USB Universal Serial Bus Cancel Fig 4 4 USB LPT Interface Selection 4 6 JTAG Configuration This section introduces the definition of JTAG interface connection to USB LPT port and the configuration of JTAG 4 6 1 JTAG Signals JTAG is a test standard proposed by IEEE For ARM debugging JTAG 15 used as the interface The ARM JTAG interface defines 7 signals TMS TDI RTCK nSRST and nTRST For the debugging of ARM7 TMS TDI and TDO are indispensable while RTCK nSRST and nTRST are optional Note For XScale separate nSRST and nTRST signals are indispensable Otherwise debugging can not be proceeded 4 6 2 JTAG Connection The typical JTAG connection looks like Fig 4 5 The JTAG emulator connects to both the USB LPT and the target H JTAG generates JTAG signals via the JTAG emulator to control the target The JTAG interface between JTAG emulator and ARM target normally adopts the standard 20 pin interface The H Jta
99. ts Reserved 2 2 After the installation shortcuts will be created on the desktop and the start menu respectively The shortcuts are shown In Fig 2 6 HI H a H Flasher H Flasher Lite H Converter H JTAG H Flasher H Flasher Lite H Converter ToolConf Ez 1 L E ZU JE H JTAG USER MANUAL H ITAG USER MANUAL EN Uninstall Fig 2 6 Shortcuts of H Jtag san 2 Note The driver for H JTAG USB emulator needed to be installed manually Please refer to Chapter 3 on how to install the driver 2 2 Uninstallation To uninstall H Jtag please run unstall exe from the start menu This program will uninstall H Jtag automatically During the process please follow the instructions to perform the uninstallation 2 3 GUI of H Jtag main window of H Jtag is shown Fig 2 7 In the figure 1 15 the menu bar 2 1s the toolbar 3 15 the detected ARM core 4 is the device ID and 5 shows the connected debugger RDI version TCK speed and hardware interface H JTAG Server Bl _ El x Fisher Int Options GQ 4 g s soris RTT Fig 2 7 Main window of H Jtag The menu includes all the operations and configurations and the toolbar includes most of the common ones When a connected target is detected H Jtag displays the ARM core and 32 bit device ID in the middle
100. ts Reserved 5 10 5 6 3 Init Script In this third step user needs to provide the init script For AT91SAM7X256 the driver already includes the initialization Hence user doesn t need to provide init script for AT91SAM7X256 In this case the edit buttons are all disabled automatically as shown in Fig 5 5 H Flasher E E nul New Load SaveAs Options Exit About Program Wizard gt gt Init Scripts AT31S8AM7X25b Flash Selecti idx Cmd Address Value Configuration Init Scripts Programming Pom Options General On Chip Flash Nand Flash Y Y FW H Flasher Help Fig 5 5 Init Script AT91SAM7X256 5 6 4 Program Options Before starting the operation user can choose different program options as required In this example we choose to perform the additional verification and reset target when the programming 15 done H Flasher Mew Load Save SaveAs Options Exit About Program Wizard gt gt Pam Options ATS1ISAM X256 Flash Selection RESET Configuration the target after programming has been completed Init Scripts VERIFICATION Programming erform second verification by reading after programming Options SKIP ID CHECK General Skip the check of flash id before all the flash operations On Chip Flash ERASE CHIP Mand Flash Erase entire chip instead of sectors before programming H Flasher Help SMART MODE Backup flash data before erasing and the
101. y Q Application isn t successfully downloaded into FLASH during debugging A This problem happens when user wants to debug the application in FLASH To solve it please 1 Enable Auto Flash Download in H JTAG SERVER H JTAG SERVER gt Flasher gt Auto Download 2 Start H FLASHER and configure accordingly USER MANUAL Copyright 2014 WWW HJTAG COM All Rights Reserved A 2 Appendix B List of Chips Supported by H JTAG H JTAG supports all the MCUs based on 0 CORTEX M3 ARM7 ARM9 and XSCALE series from INTEL MARVELL In addition H JTAG supports the programming of large amount of FLASH devices which include ON CHIP FLASH NOR FLASH NAND FLASH and SIP FLASH We will upgrade our software frequently to keep it up to date with new MCUs and FLASH chips The following list show part of the MCUs and FLASH chips supported by H JTAG If you can t find your chip our lists please feel free to contact us and we will be pleased to provide supports AMD FLASH DEVICEs AM29DL640G AM29F002B AM29F002T AM29F004BB AM29F004BT AM29F010 AM29F010B AM29F016 29 016 AM29F016D 29 0170 AM29F032 AM29F032B AM29F040 AM29F040B AM29F080 AM29F080B AM29F100B AM29F100T AM29FI60DB AM29FI60DT AM29F200BB AM29F200BT AM29F400BB AM29F400BT AM29F800BB AM29F800BT AM29LV0OIBB AM29LVOOIBT AM29LV002B AM29LV002BB AM29LV002BT AM29LV002T AM29LV004B AM29LV004BB AM29LVO04BT AM29LV004T AM29LV008B AM29LVOOSBB 29 008 AM
Download Pdf Manuals
Related Search
Related Contents
Power House c-9990 Samsung SCH-S219 User Manual Copyright © All rights reserved.