How to Use JTAG with ARM7 MCU

Post on 08-Mar-2015

244 views 0 download

description

How to UseJTAG with ARM7NxP LPC2xxx MCU(Wiggler Clone with H-JTAG and IAR Workbench)

transcript

ARM MICROCONTROLLER TRAINING

www.imbuent.com

For Latest Embedded Information

Log to www.embeddedcraft.org

How

to Use

JTAG with ARM7

NxP LPC2xxx MCU

(Wiggler Clone with H-JTAG and IAR Workbench)

Step by Step Tutorial

ARM MICROCONTROLLER TRAINING

www.imbuent.com

For Latest Embedded Information

Log to www.embeddedcraft.org

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/

ARM MICROCONTROLLER TRAINING

For Latest Embedded

Log to www.embeddedcraft.org

STEP 1: After Installation Open H

ARM MICROCONTROLLER TRAINING

www.imbuent.com

Embedded Information

Log to www.embeddedcraft.org

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

Icon after Installtaion.

ARM MICROCONTROLLER TRAINING

www.imbuent.com

For Latest Embedded Information

Log to www.embeddedcraft.org

STEP 2: Open Setting Go to USB/LPT Selection

ARM MICROCONTROLLER TRAINING

www.imbuent.com

For Latest Embedded Information

Log to www.embeddedcraft.org

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

ARM MICROCONTROLLER TRAINING

www.imbuent.com

For Latest Embedded Information

Log to www.embeddedcraft.org

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

ARM MICROCONTROLLER TRAINING

www.imbuent.com

For Latest Embedded Information

Log to www.embeddedcraft.org

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

ARM MICROCONTROLLER TRAINING

www.imbuent.com

For Latest Embedded Information

Log to www.embeddedcraft.org

STEP 6: Switch “ON” LPC2148 Board having JTAG Connector and You may

recevice following Message “Detecting Target”.

ARM MICROCONTROLLER TRAINING

www.imbuent.com

For Latest Embedded Information

Log to www.embeddedcraft.org

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

ARM MICROCONTROLLER TRAINING

www.imbuent.com

For Latest Embedded Information

Log to www.embeddedcraft.org

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

ARM MICROCONTROLLER TRAINING

www.imbuent.com

For Latest Embedded Information

Log to www.embeddedcraft.org

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

upon.

ARM MICROCONTROLLER TRAINING

www.imbuent.com

For Latest Embedded Information

Log to www.embeddedcraft.org

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

STEP 10: Goto > Option for Settings for debugging

ARM MICROCONTROLLER TRAINING

www.imbuent.com

For Latest Embedded Information

Log to www.embeddedcraft.org

STEP 11: Go to options > Debugger > Select RDI

ARM MICROCONTROLLER TRAINING

www.imbuent.com

For Latest Embedded Information

Log to www.embeddedcraft.org

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

ARM MICROCONTROLLER TRAINING

www.imbuent.com

For Latest Embedded Information

Log to www.embeddedcraft.org

STEP 13 : Go to > Linker > Config > Select Override default > Brows path

$PROJ_DIR$\LPC2148_RAM.icf

ARM MICROCONTROLLER TRAINING

www.imbuent.com

For Latest Embedded Information

Log to www.embeddedcraft.org

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

ARM MICROCONTROLLER TRAINING

www.imbuent.com

For Latest Embedded Information

Log to www.embeddedcraft.org

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

ARM MICROCONTROLLER TRAINING

www.imbuent.com

For Latest Embedded Information

Log to www.embeddedcraft.org

STEP 16: Now you can view Green color

ARM MICROCONTROLLER TRAINING

www.imbuent.com

For Latest Embedded Information

Log to www.embeddedcraft.org

STEP 17: Process of debugging step by step

ARM MICROCONTROLLER TRAINING

www.imbuent.com

For Latest Embedded Information

Log to www.embeddedcraft.org

THANKS embeddedcraft@gmail.com

embeddedcraft@googlegroups.com