                           <<<< Read Me First >>>>
                                  USBJTAG NT/USBBDM NT
***Disclaimer:     ***
USBJTAG NT and USBBDM NT are development tools.
Use USBJTAG NT (USBBDM NT)at your own risk.
We take no responsibility damage or loss.
***Disclaimer Ends ***
*** Please give feedback to the software to improve the software ******
Email to usbbdm@usbjtag.com or go to forum at http://www.usbjtag.com/phpbb3
**************************************************************************
* Release notes.
*   April 11,2020
*   1.10
*   Add hardware diag for u-link and USB JTAG NT
*   Add one wire DS2431 for u-Link NT
**************************************************************************
* Release notes.
*   April 1,2020
*   1.09
*   Fix Error for Nor CFI flash detection.
*   Fix the folder selection after drag/drop the file.
*   Some minor bugs.
**************************************************************************
* Release notes.
*   Mar 8,2020
*   1.08
*   Fix error when create new SPI flash.
*   Add prompt for SPI lock status
**************************************************************************
* Release notes.
*   Mar 5,2020
*   1.07
*   Allow SPI 4K erase/programming.
*   Fix error on testing command
**************************************************************************
* Release notes.
*   Feb 29,2020
*   1.06
*   Fix anoter SDFP detect issue.
*   Add endian convert command.
*   Fix conenction display on 4K monitor.
**************************************************************************
* Release notes.
*   Feb 20,2020
*   1.05
*   Fix erase flash for u-Link NT. Improve u-Link Speed
*   Fix SDFP detect issue.
*   Add SDFP, CFI log. 
**************************************************************************
* Release notes.
*   Feb 06,2020
*   1.04
*   Add 93C EEPROM pinout
*   Fix CPLD display issue.
*   Fix crash on ARM9 target.
**************************************************************************
* Release notes.
*   Feb 01,2020
*   1.03
*   Fix issues on pin finder. First working pinfinder
*   Fix crash on ST20 target.
**************************************************************************
* Release notes.
*   Jan 26,2020
*   1.02
*   First release support MPC850 CPU
**************************************************************************
* Release notes.
*   Jan 22,2020
*   1.01
*   Fix U-Link Activation issue
*   Put back the single JTAG UI. Command window always at bottom.
**************************************************************************
* Release notes.
*   Jan 12,2020
*   1.00
*   Add ULink NT to the build
*   Add HiLo command for BDM target
**************************************************************************
* Release notes.
*   Dec 26,2019
*   0.91
*   Add stability to ST40 detect. Fix minor bug for ST40 nand target detect
**************************************************************************
* Release notes.
*   Dec 08,2019
*   0.90
*   Prevent multiple app from starting.
**************************************************************************
* Release notes.
*   Nov 10,2019
*   0.89
*   Restore most of the single JTAG controls. When only one JTAG is used, 
*   all the controls are similar to earlier version.
**************************************************************************
* Release notes.
*   Oct 14,2019
*   0.88
*   Support multiple JTAG. You need to plug in all the JTAG before start the software.
**************************************************************************
* Release notes.
*   Aug 26,2019
*   0.87
*   1. Fix minor bug for SPI flash detection
**************************************************************************
* Release notes.
*   July 26,2019
*   0.86
*   1. Remove legacy USBJTAG code.
*   2. Add MT7621 dual core MIPS support. ER-X router
**************************************************************************
* Release notes.
*   Mar 31,2019
*   0.85
*   Add support for Sti5517 target
*   Support SST25FV40B
**************************************************************************
* Release notes.
*   July 1,2018
*   0.84
*   Fix bugs on some large flash like N25Q512A
**************************************************************************
* Release notes.
*   May 6,2018
*   0.83
*   Fix the new style online activation.
**************************************************************************
* Release notes.
*   Mar 6,2018
*   0.82
*   Surface Pro support.
**************************************************************************
* Release notes.
*   0.81
*   1. Fix register view missing for BDM target.
**************************************************************************
* Release notes.
*   0.80
*   1. Restore the window position when it starts.
*   2. Online activation on new host server.
**************************************************************************
* Release notes.
*   May 7,2016
*   0.79
* 1. Revert the optimization for slow programming which caused some AMD programing issue.
* 2. When clone new XML, also clone the init values.
* 3. Fix bug found while debriking the CPEi25150 modem. This is because of the compiler used.
**************************************************************************
* Release notes.
*   April 16,2016
*   0.78
* 1. Add split and delete for create XML. View XML before it can be created
* 2. Some minor UI fix for the size of dialogs.
* 3. DLL fix for un-wanted unplug and replug USB when using CyUSB driver.
* 4. Fix the NAND detection for big endian MIPS. (Meraki M18)
**************************************************************************
* Release notes.
*   Jan 27 22,2016
*   0.77
*     Add SPI LCD. 
**************************************************************************
* Release notes.
*   June 22,2015
*   0.76
*     Restore the add flash feature after split the flash types.
*     Support NOR and SPI flash for now. NAND is not supported yet.
**************************************************************************
* Release notes.
*   June 16,2015
*   0.75a
*     1. Fix one minor AMD program algorithm.
**************************************************************************
* Release notes.
*   June 11,2015
*   0.75
*     1. Improve the ppc read speed to 190KB/s
*     2. Fix the speed issue for programming ppc. More stable now.
**************************************************************************
* Release notes.
*   June 2,2015
*   0.74
*     1. Fix a bug for ppc target to detect flash
**************************************************************************
* Release notes.
*   May 18,2015
*   0.73
*     1. DYB lock for S25FL128S erase and program
*     2. Fix a minor bug in 0.72 that each time restart app will do USB 
*        initialization.
**************************************************************************
* Release notes.
*   Dec 8,2014
*   0.72
*     1. Add Nand framwork for MIPS. EA2700 tested. Nand routines are in external dat file.
*     2. Splite flash files to nor/nand/spi flash. Take out the flash creating under menu.
*     3. Popup a dialog when switching target to avoid press the command too soon.
**************************************************************************
* Release notes.
*   Sep. 17,2014
*   0.71a
*     retain all the window sizes.
**************************************************************************
* Release notes.
*   Sep. 07,2014
*   0.71
*     1. Fix bug for SPI flash > 16M in programming
*     2. Allow trigger XML edit using system editor.
**************************************************************************
* Release notes.
*   Jul 30,2014
*   0.70
*     1. Restore back RTL8196C support. (Tested on TP-Link R402M)
*     2. Support larger SPI flash.
*     3. CFI like SPI flash detection for unknown flash 
*	  4. Add debug feature for flash detection.
**************************************************************************
* Release notes.
*   May 28,2014
*   0.69
*     1. Custom Nor flash for MIPS (AU1550)
*     2. Custom EEPROM for BDM (Audi TCU)
*     3. Change the deployment using MinGW Qt 4.8.6
*     4. BDM Target auto detect the flash when click the ID.
**************************************************************************
* Release notes.
*   Jan 19,2014
*   0.68
*     1. Speed up the target selection.
*     2. Smooth the hex screen screen with proper cursor.
**************************************************************************
* Release notes.
*   Jan 9,2014
*   0.67
*     1. Fix some spell errors.
*     2. Fix crash when working on PC that had run older versions
**************************************************************************
* Release notes.
*   Dec 29,2013
*   0.66
* Minor enhancements
*     1. Allow hex edit to do "finger scroll". Remove the copy and paste of hex data
*     2. File browser now can select the file by click the existing file.
*     3. Defatult to "allflash" instead of the first flash tab.
*     4. Allow save the software window size.
**************************************************************************
* Release notes.
*   Dec 6,2013
*   0.65
* This is major release. Please uninstall previous verion and run setup for this one.
*     1. Add title bar for hex display.
*     2. For settings do not use registry. The working folder is now at %appdata%usbjtag (Win32). This makes the log possible for Win 7 and Win8.
*     3. Rebuilt under Qt 4.7.3.
**************************************************************************
* Release notes.
*   Sept 27 02,2013
*   0.64
*     1. Fix memory leak when USB JTAG is not connected. jtagntwin.dll update
*     2. Fix text false alarm of "Hardware Error 1". Fix it enumeration USB.
*     3. Better log when error happens.
**************************************************************************
* Release notes.
*   July 02,2013
*   0.63
*     Fix bugs in add new flash for SPI.
**************************************************************************
* Release notes.
*   April 17,2013
*   0.62
*     Fix bugs in CPLD programming. CPLD was broken from 0.55
**************************************************************************
* Release notes.
*   Mar 29,2013
*   0.61
*     Framework for newer DLL.
**************************************************************************
* Release notes.
*   Jan 16,2013
*   0.60
*    1. Fix ARM940 issue.
*    2. Add BCM LV mode. BCM4716/BCM4718 SPI (Linksys M20 router)
**************************************************************************
* Release notes.
*   Jan 07,2013
*   0.59
*    1. Fix ARM926 issue.
*    2. Add WNR945T Marvell chip support
**************************************************************************
* Release notes.
*   Dec 11,2012
*   0.58
*    1. Add Nand flash configuration.
*    2. ST40 Nand support framework.
*    3. Better ST40 detecttion.
**************************************************************************
* Release notes.
*   Nov 10,2012
*   0.57a
*    1. Add support of AT25DF641 SPI flash.
*    2. better SPI detect support.
**************************************************************************
* Release notes.
*   may 9,2012
*   0.57
*    1. Add clear screen button.
*    2. Several bug fixes.
*    3. More enhancement on ST40. Add "regs" function to ST40 core.
*    4. Some other bug fixes (like read file from recent file list for AllFlash will fail)
**************************************************************************
* Release notes.
*   Feb 6,2012
*   0.56a
*    Fix issues on display BDM OFF whilt it should be ON
**************************************************************************
* Release notes.
*   Feb 4,2012
*   0.56
*   1. Fix the connection diag image for ST40
*   2. Implement the full programming mode for ST40. Sonicview 8000HD can get
*      const 320+KB/s programming speed on 29GL128
*   3. Significantly improve the read speed. Fast read speed is 384KB/s
**************************************************************************
* Release notes.
*   Jan 21,2012
*   0.55
*   1. Add ST40/SH4 support (Soncview 8000HD,Sti5202)
*   2. Better language support. Now support unicode folder and filename
*   3. Category now can be expanded via XML file.
**************************************************************************
* Release notes.
*   Oct 1,2011
*   0.54
*   Add CPLD JAM
* Bug fixed. The log now goes to temp directory
**************************************************************************
* Release notes.
*   Aug 30,2011
*   0.53
*   Add PPC DM500 support.
**************************************************************************
* Release notes.
*   Aug 21,2011
*   0.52
*   1. Add AMD256 support. 
*   2. "erase" and "sprogram" while TRAP ON (MIPS). More buffer flash support
**************************************************************************
* Release notes.
*   July 13,2011
*   0.51
*   Sti5105 DCU3 support. XV3300 tested
**************************************************************************
* Release notes.
*   Jun 27,2011
*   0.50a
*   Rebuild to solve side-by-side issue.
**************************************************************************
* Release notes.
*   Jun 19,2011
*   0.50
*    1. Add read/write EEPROM for Conexant CPU
*    2. Add regular ARM946/ARM920 support.
**************************************************************************
* Release notes.
*   May 31,2011
*   0.49
*      Fast programming Conexant CPU read speed 580KB+/s. Programming 
*   speed 150KB-250KB/s
**************************************************************************
* Release notes.
*   May 19,2011
*   0.48
*      1. Add recent target for fast taget swiching
*      2. Add recent files 
*      3. Add two Conexant CPU ARM946 and ARM 926
**************************************************************************
* Release notes.
*   April 1,2011
*   0.47
*      Add WRT160NL. AR71XX/9XXXX SPI support
**************************************************************************
* Release notes.
*   Feb 19,2011
*   0.46
*      Add language support
**************************************************************************
* Release notes.
*   Feb 3,2011
*   0.45b
*      Some minor fixes. Fix EEPROM read/write on 301-010
**************************************************************************
* Release notes.
*   Dec 12,2010
*   0.45a
*      Fix the force register view for non-BDM devices.
**************************************************************************
* Release notes.
*   Dec 11,2010
*   0.45
*     1. Improve the USB performance.
*     2. Add XML target edit.
*     3. Add function to go to config directory (under Help)
*     4. Add command "color"
*     5. Some minor fixes. (eg. Force the register view for BDM).
**************************************************************************
* Release notes.
*   Nov 18,2010
*   0.44
*     Minor fix. Make it work better on netbook display.
**************************************************************************
* Release notes.
*   Oct 19,2010
*   0.43
*     Several fixed. Major release.
**************************************************************************
* Release notes.
*   Oct 12,2010
*   0.42d
*     Fix BDM NT programming with duplicate "erase" prompt.
**************************************************************************
* Release notes.
*   Oct 10,2010
*   0.42c
*     Fix MIPS sprogram issue (DMA). Caused by SPI flash with JTAG on 0.36
**************************************************************************
* Release notes.
*   Sep 21,2010
*   0.42b
*     Fix backup error on some dpc2100 modems
*     Add some targets.
**************************************************************************
* Release notes.
*   Sep 10,2010
*   0.42a
*     1. Fix the crash when the directory is empty.
*     2. Add the per target default directory
**************************************************************************
* Release notes.
*   Sep 8,2010
*   0.42
*  1. Add file browser. Allow drag files with in app.
*  2. Fix minor issue when detect CPEi25150
*  3. Fix the file icon
**************************************************************************
* Release notes.
*   Aug 24,2010
*   0.41d
*  1. Fix the erase whole flash issue.
*  2. Add file name prompt.
**************************************************************************
* Release notes.
*   Aug 23,2010
*   0.41c
*    1. Fix issue on SB4200 programming
*    2. Allow live update the display when read memory. 
**************************************************************************
* Release notes.
*   Aug 22,2010
*   0.41b
*    1. Fix the SPI read/verify issue found in some cases.
*    2. Add All flash.
*    3. Fix two minor case that might caused the crash when inproper command is entered
*    4. Improve the hex screen display to speed up the memory read.
**************************************************************************
* Release notes.
*   Aug 21,2010
*   0.41a
*     Quick fix the directory issue caused the flash failed if quick launch 
* is clicked.
**************************************************************************
* Release notes.
*   Aug 21,2010
*   0.41
*     Major release. Redesign the whole code. For future Linux and Mac support.
**************************************************************************
* Release notes.
*   Aug 2,2010
*   0.40d
*     Hot patch for BDM NT programming on old two chip board
**************************************************************************
* Release notes.
*   July 24,2010
*   0.40c
*     AR430W Router SPI flash via JTAG support.General Atheros support
**************************************************************************
* Release notes.
*   July 20,2010
*   0.40b
*     Private release to support BCM53003 router.
*     More SPI mode added for MIPS core JTAG
**************************************************************************
* Release notes.
*   July 12,2010
*   0.40a
*     Hot patch. Auto script off
**************************************************************************
* Release notes.
*   July 10,2010
*   0.40
*     1. Add LPT JTAG support for SPI read.
*     2. Improve the activation dialog.
*     3. Add large SPI autodetect.
*     4. When find the target mismatch auto fix it.
**************************************************************************
* Release notes.
*   Jun 12,2010
*   0.39
*     Major software change. Be prepared to support more hardware
*     Support Old USB BDM (fully) 
*     Old USB JTAG (SPI read only)
**************************************************************************
* Release notes.
*   Jun 3,2010
*   0.38
*     Give error when wrong hardware/target is selected.
**************************************************************************
* Release notes.
*   May 2,2010
*   0.37b
*     Hot patch detect (F1 and toolbar) not working when auto detect is enabled
**************************************************************************
* Release notes.
*   April 27,2010
*   0.37a
*     Hot patch for DCt2224 auto script.
**************************************************************************
* Release notes.
*   April 25,2010
*   0.37
*     1. Allow visually display JTAG speed.
*     2. Allow paste for command.
*     3. Auto script option. Greatly improve the usability.
*     4. Display SPI chip connection.
**************************************************************************
* Release notes.
*   Mar 31,2010
*   0.36
*     Support JTAG SPI. Broadcom only for now. WGR614v9 supported.
**************************************************************************
* Release notes.
*   Mar 20,2010
*   0.35
*     Major release. Powerful script support.
**************************************************************************
* Release notes.
*   Mar 4,2010
*   0.34b
*     Fix bug for BDM flash detect.
**************************************************************************
* Release notes.
*   Jan 5,2010
*   0.34a
*     Fix bug for cmpram for big endian device. DCT700 SB510x
**************************************************************************
* Release notes.
*   Jan 1,2010
*   0.34
*    Add XBOX support. 256M and 512M nand support. Enhance speed.
*    Add SPI "program" command.
*    Display the latest version in about dialog.
**************************************************************************
* Release notes.
*   Dec 19,2009
*   0.33
*    Add XBOX support.
*    Add a few commands for EJTAG debugging.
*    Fix bugs for detect 0000 issue.
**************************************************************************
* Release notes.
*   Oct 29,2009
*   0.32
*    Improved activation
**************************************************************************
* Release notes.
*   Oct 4,2009
*   0.31
*    TM602G Byte mode support
*    Auto erase when click Write on tool bar for SB4100/SB4200/SB6120
**************************************************************************
* Release notes.
*   Sept 9,2009
*   0.30
*   Solve some time the target cannot get detected. Lower the speed a little
*  bit to solve some issue happen on cmpram fail.
**************************************************************************
* Release notes.
*   Sept 1,2009
*   0.29b
*   Hot patch, bugs BDM on 1.1 hub. getram code will not work.
**************************************************************************
* Release notes.
*   July 29,2009
*   0.29a
*   Hot patch, bugs for the first time runner that the config cannot be saved.
**************************************************************************
* Release notes.
*   July 25,2009
*   0.29
*   1. Fix bogs on CFI for Intel chip. Problem on DCT2500
*   2. Allow set the directory for script.
**************************************************************************
* Release notes.
*   July 8,2009
*   0.28
*   1. Enhance activation.
*   2. Display latest version when needed.
**************************************************************************
* Release notes.
*   June 9,2009
*   0.27a
* Changes
*  Bug fixed.
*   BDM NT does not show activated.
**************************************************************************
* Release notes.
*   June 8,2009
*   0.27
* Changes
*  Bug fixed.
*   Memory leak on hex load for PIC32MX
*   Revert back the Intel programming.
*  Feature.
*   First version of hardware breakpoint support.
**************************************************************************
* Release notes.
*   May 23,2009
*   0.26
* Changes
*   Big Serial EEPROM support.
*   Fix problems for some lockups when erase/program some Intel like flash.
**************************************************************************
* Release notes.
*   April 29,2009
*   0.25
* Changes
*   Serial EEPROM 24LC flash support.
**************************************************************************
* Release notes.
*   April 26,2009
*   0.24
* Changes
*   Better UI on tab selection.
**************************************************************************
* Release notes.
*   April 7,2009
*   0.23
* Changes
*   major UI upgrade.
**************************************************************************
* Release notes.
*   Mar 21,2009
*   0.22a
* Changes
*   One minor bug found on some BDM box that the read the code wrong after 
*  detect the flash. (On some flashes)
**************************************************************************
* Release notes.
*   Mar 7,2009
*   0.22
* Changes
*   1. Major support PIC32MX family.
*   2. Disable CFI for flash less equal of 2M if found in the database.
*      This is due to some AMD chip the erase blaock was inproperly set
**************************************************************************
* Release notes.
*   Feb 16,2009
*   0.21
* Changes
*   1. Fixed the script problem caused by CFI
*   2. Fix some error by some flash giving the wron CFI info on 
*      buffered programming,
**************************************************************************
* Release notes.
*   Feb 15,2009
*   0.20
* Changes
*   1. Enable the SGetram sSetram Scmpram command.
*   2. Add log command support.
*      Usage: log 1 start logging append to file name "usbjtagnt.log"
*             log 0 stop the logging.
**************************************************************************
* Release notes.
*   Feb 14,2009
*   0.19
* Changes
*   1. Add MIPS 64 buffer programming
*   2. Add SGetram sSetram Scmpram command.
*   3. Slow programming on little endian device
**************************************************************************
* Release notes.
*   Feb 6,2009
*   0.18
* Bug fixed
*   On USB 1.1 hub, the detect flash was broken due to CFI.
*   Enhance slow program for Intel chip with buffer.
**************************************************************************
* Release notes.
*   Feb 6,2009
*   0.17
* Bug fixed
*   Slow program for Intel chip.
* Bug still exist
*   Slow program for AMD with buffer. Exist on some VOIP device with big 
*   AMD flash 4-8M. Possible some routers
**************************************************************************
* Release notes.
*   Jan 31,2009
*   0.16
* Feature added
*  1. Add VOIP category
*  2. Add CFI for MIPS 32 and BDM.
**************************************************************************
* Release notes.
*   Jan 5,2009
*   0.15
* Bug fixed
*  On BDM NT MTF28F160C3B programming failed.
**************************************************************************
* Release notes.
*   Jan 3,2009
*   0.14
* Buf fixed
*  New architecture. Program NFusion FTA box.
**************************************************************************
* Release notes.
*   Dec 21,2008
*   0.13
* Buf fixed
*   Activation with space caused not activated.
*  Feature added.
*   Add "trap" comand to debrick SB4x00.
**************************************************************************
* Release notes.
*   Dec 15,2008
*   0.12
*  Bug fix
*     Major feature to allow trap. Allow cmpram right after program
*     One bug fixed for not getram properly after detect the flash.  
**************************************************************************
* Release notes.
*   Dec 7,2008
*   0.11
*  Bug fix
*      Crash when "getram" and "setram" with no parameter
*  Major feature
*      Add flash entry with GUI.    
**************************************************************************
* Release notes.
*   Nov 13,2008
*   0.10
*   Fix problems with script. One possible crash for BDM.
**************************************************************************
* Release notes.
*   Nov 13,2008
*   0.09
*   Fix problem that test dll command missing.
**************************************************************************
* Release notes.
*   Nov 9,2008
*   0.08
*   Add "tap" command for more powerful debrick,
**************************************************************************
* Release notes.
*   Oct 27,2008
*   0.07
*   Fix DCT700 sometime get unzip error.
*   Add SPI flash support.
**************************************************************************
* Release notes.
*   Oct 27,2008
*   0.06 
*   Fix BDM on slow device
**************************************************************************
* Release notes.
*   Oct 23,2008
*   0.05 
*   Fix when reset 1 for BDM
*   Add "speed" function.
**************************************************************************
* Release notes.
*   Oct 19,2008
*   0.04 Fix bugs on IRD 013
**************************************************************************
* Release notes.
*   Oct 15,2008
*   0.03 Add ST20 support. 
*   Fix minor error bugs.
**************************************************************************
* Release notes.
*   Oct 10,2008
*   0.02 DLL API change for DCT2224.DLL
*   Remove DCT2224PH7.xml. Add DCT2224.xml
**************************************************************************
* Release notes.
*   Oct 9,2008
*   0.01
* Initial release. Support USBJTAG NT and USBBDM NT hardware
**************************************************************************

The readme file here gives you the steps to use USBJTAG NT.

1. Hardware.
    Include in the package are
    One USBJTAG NT module with 14 pin flat cable attached.

IMPORTANT!!
	Every time you connect JTAG to target board, make sure both JTAG and target board is power off. 
	Fail to do that can damage your JTAG module or target!!!

2. Software,
    a. USB JTAG NT drivers are download separately at www.usbjtag.com.
    b. Readme.txt. This file.  Updated every time a newer version is issued.
    d.configuration files under config direcotry. Can be upgraded separately.
    e. usbjtagnt.exe Main excutable to access the target board.

3. Software setup.
   a.Extract files to your hard drive. If you download the test dll put them under dll directory.
   b. Plug in USB and select the drivers.
   c. Activation, when first time you run the application, when USBJTAG NT (USBBDM NT) plugged in, 
      it will popup dialog asking for you r email and activation code. Go to the shopping page and 
      retrieve your activation by entering your hardware ID displayed on the screen.
   d. The USB needs initialize. The JTAG connect status is shown on the bottom status bar.
   e. If something goes wrong, unplug the USB cable, exit application and start again.
   f. USB cable can plug in any time in the application.
   g. You need to setup the target under Tools->Config.


4. Run the application you will see three windows.
   a. Command window. Accept command from the keyboard and some output
result there.
   b. Memory tabs on top window. 
   c. File browser window.

5.Type "help" in your command window will list all the command available.
Type "help command" will show the usage of the command.
  eg. help reset.

6. Up, Down arrow keys can be used to go through the command history in command window.

7. Bottom right status indicates DEBUG status. 


