Вы находитесь на странице: 1из 20

ARM MICROCONTROLLER TRAINING www.imbuent.

com

How to Use JTAG with ARM7 NxP LPC2xxx MCU


(Wiggler Clone with H-JTAG and IAR Workbench)

Step by Step Tutorial

For Latest Embedded Information Log to www.embeddedcraft.org

ARM MICROCONTROLLER TRAINING www.imbuent.com

Introduction:
Joint Test Action Group (JTAG) is the common name for what was later standardized as the IEEE 1149.1 Standard Test Access Port and Boundary-Scan Architecture. It was initially devised for testing printed circuit boards using boundary scan and is still widely used for this application. Today JTAG is also widely used for IC debug ports. In the embedded processor market, essentially all modern processors support JTAG when they have enough pins. Embedded systems development relies on debuggers talking to chips with JTAG to perform operations like single stepping and breakpointing. Digital electronics products such as cell phones or a wireless access point generally have no other debug or test interfaces For More: Wikipedia Download H-JTAG Software from http://www.hjtag.com/

For Latest Embedded Information Log to www.embeddedcraft.org

ARM MICROCONTROLLER TRAINING www.imbuent.com

H-JTAG Server from Icon after Installtaion. STEP 1: After Installation Open H

For Latest Embedded Information Log to www.embeddedcraft.org

ARM MICROCONTROLLER TRAINING www.imbuent.com

STEP 2: Open Setting Go to USB/LPT Selection

For Latest Embedded Information Log to www.embeddedcraft.org

ARM MICROCONTROLLER TRAINING www.imbuent.com

STEP 3: Select LPT/Parallel Port for Wigger Clone.

For Latest Embedded Information Log to www.embeddedcraft.org

ARM MICROCONTROLLER TRAINING www.imbuent.com

STEP 4: Go to Setting and Select LPT JTAG Setting.

For Latest Embedded Information Log to www.embeddedcraft.org

ARM MICROCONTROLLER TRAINING www.imbuent.com

Step 5: Go To Wiggler(Predefined) Select following options


1) Wiggler (Predefined) from Jtag Selection 2) MAX/1 from TCK Control 3) Select pin6 D4 from Wiggle Pin Assignment 4) Select NO SYS RST from Wiggle Pin Assignment

For Latest Embedded Information Log to www.embeddedcraft.org

ARM MICROCONTROLLER TRAINING www.imbuent.com

STEP 6: Switch ON LPC2148 Board having JTAG Connector and You may recevice following Message Detecting Target.

For Latest Embedded Information Log to www.embeddedcraft.org

ARM MICROCONTROLLER TRAINING www.imbuent.com

STEP 7 : Goto H-Flasher Select > Configuration > Frequency of crystal

For Latest Embedded Information Log to www.embeddedcraft.org

ARM MICROCONTROLLER TRAINING www.imbuent.com


STEP 8 : Goto H-Flasher Select > Flash Selection > Target device Select Microcotroller LPC2148

For Latest Embedded Information Log to www.embeddedcraft.org

ARM MICROCONTROLLER TRAINING www.imbuent.com


STEP 9: Then you may see ARM7TDMI-S Core is Detected in which LPC2148 is based upon.

For Latest Embedded Information Log to www.embeddedcraft.org

ARM MICROCONTROLLER TRAINING www.imbuent.com


Note: Here you must have written some simple code of LED Toggle with IAR Workbench.

STEP 10: Goto > Option for Settings for debugging

For Latest Embedded Information Log to www.embeddedcraft.org

ARM MICROCONTROLLER TRAINING www.imbuent.com

STEP 11: Go to options > Debugger > Select RDI

For Latest Embedded Information Log to www.embeddedcraft.org

ARM MICROCONTROLLER TRAINING www.imbuent.com

STEP 12: Goto > RDI > Browse the path > C:\Program Files\H-JTAG\DLLS\H-JTAG.dll

For Latest Embedded Information Log to www.embeddedcraft.org

ARM MICROCONTROLLER TRAINING www.imbuent.com

STEP 13 : Go to > Linker > Config > Select Override default > Brows path $PROJ_DIR$\LPC2148_RAM.icf

For Latest Embedded Information Log to www.embeddedcraft.org

ARM MICROCONTROLLER TRAINING www.imbuent.com

STEP 14: Go to > Project > Download and Debug By selecting this process of Debugging will be start

For Latest Embedded Information Log to www.embeddedcraft.org

ARM MICROCONTROLLER TRAINING www.imbuent.com

STEP 15: After all settings you will see the Tool Bar of Debugging and veiw the status of pins and registers

For Latest Embedded Information Log to www.embeddedcraft.org

ARM MICROCONTROLLER TRAINING www.imbuent.com

STEP 16: Now you can view Green color

For Latest Embedded Information Log to www.embeddedcraft.org

ARM MICROCONTROLLER TRAINING www.imbuent.com

STEP 17: Process of debugging step by step

For Latest Embedded Information Log to www.embeddedcraft.org

ARM MICROCONTROLLER TRAINING www.imbuent.com

THANKS embeddedcraft@gmail.com embeddedcraft@googlegroups.com

For Latest Embedded Information Log to www.embeddedcraft.org

Вам также может понравиться