How to Use JTAG with ARM7 MCU

20
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

description

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

Transcript of How to Use JTAG with ARM7 MCU

Page 1: How to Use JTAG with ARM7 MCU

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

Page 2: How to Use JTAG with ARM7 MCU

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/

Page 3: How to Use JTAG with ARM7 MCU

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.

Page 4: How to Use JTAG with ARM7 MCU

ARM MICROCONTROLLER TRAINING

www.imbuent.com

For Latest Embedded Information

Log to www.embeddedcraft.org

STEP 2: Open Setting Go to USB/LPT Selection

Page 5: How to Use JTAG with ARM7 MCU

ARM MICROCONTROLLER TRAINING

www.imbuent.com

For Latest Embedded Information

Log to www.embeddedcraft.org

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

Page 6: How to Use JTAG with ARM7 MCU

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.

Page 7: How to Use JTAG with ARM7 MCU

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

Page 8: How to Use JTAG with ARM7 MCU

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”.

Page 9: How to Use JTAG with ARM7 MCU

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

Page 10: How to Use JTAG with ARM7 MCU

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

Page 11: How to Use JTAG with ARM7 MCU

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.

Page 12: How to Use JTAG with ARM7 MCU

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

Page 13: How to Use JTAG with ARM7 MCU

ARM MICROCONTROLLER TRAINING

www.imbuent.com

For Latest Embedded Information

Log to www.embeddedcraft.org

STEP 11: Go to options > Debugger > Select RDI

Page 14: How to Use JTAG with ARM7 MCU

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

Page 15: How to Use JTAG with ARM7 MCU

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

Page 16: How to Use JTAG with ARM7 MCU

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

Page 17: How to Use JTAG with ARM7 MCU

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

Page 18: How to Use JTAG with ARM7 MCU

ARM MICROCONTROLLER TRAINING

www.imbuent.com

For Latest Embedded Information

Log to www.embeddedcraft.org

STEP 16: Now you can view Green color

Page 19: How to Use JTAG with ARM7 MCU

ARM MICROCONTROLLER TRAINING

www.imbuent.com

For Latest Embedded Information

Log to www.embeddedcraft.org

STEP 17: Process of debugging step by step

Page 20: How to Use JTAG with ARM7 MCU

ARM MICROCONTROLLER TRAINING

www.imbuent.com

For Latest Embedded Information

Log to www.embeddedcraft.org

THANKS [email protected]

[email protected]