help step by step...

hi all.

I’m new on this forum and need help.

I try program with ARM7 (LPC2142) and write my litle program trought ISP serial port but I want to debug my code.

I create wingler JTAG for paralele port and test it with H-JTAG software. find MCU and can program, clear … .

But I cant debug.

I read post to use openOCD but still can start to work.

can any to help step by step how to set all parameter propetly and what need I install to work good???

best regards.

Hi H-JTAG is a RDI server.I dont think OpenOCD supports H-JTAG (maybe others can correct me).

You can try wiggler with H-JTAG and NoICE with your debug .elf file,which I found works .

Only ( problem??) is NoICE is a commercial tool, which has a 30day trial version.

http://www.noicedebugger.com/tour_arm/firsthjtag.html

HI I try your solution but have some problem . If debug code then on some line mcu can’t stop ond stil run.

if halt by command then show error and no more conection can use with server.

may I have bat configuration for compile code or what???

any sugestion??

regards

Are you compiling with the -g option? That is required for debugging.

Leon

Hi.

I use WinARM and where I must set -g option in make file before compilation???

regards

I just looked at a WinARM makefile, the -g option is with the compiler flags. I think you need:

CFLAGS = -g$(DEBUG)

I normally use CrossWorks.

Leon

Hi I have this option on make file.

any other sugestion ???

regards

1)check your c:\Keil\tools.ini must include RDI interface:

TDRV2=BIN\UL2ARM_RDI.DLL("RDI Interface Driver")

2)config your RDI server:

Project - Options for targer ‘…’ - Debug tag - Use RDI Interface Driver - Settings - point to ‘C:\Program Files\H-JTAG\H-JTAG.dll’ or other directore content H-JTAG.dll.

3)In uVision3 IDE, you must set debug on and rebuild your project.

Project - Options for targer ‘…’ - Output tag - check ‘Debug Information’

Hi I test this solution but still show this warning:

*** error 122: AGDI: memory read failed (0x000000B0)

*** error 122: AGDI: memory read failed (0x00000098)

H-JTAG - H-Flasher - H-Flasher is busy or not ready. Please try again later.

*** AGDI-Error: can’t setup break at 0x00000134

H-JTAG - H-Flasher - H-Flasher is busy or not ready. Please try again later.

H-Flasher - H-Flasher is busy or not ready. Please try again later.

but, I can set source code manualy and write to flash or erase flash.

regards

dzairo:
*** error 122: AGDI: memory read failed (0x000000B0)

*** error 122: AGDI: memory read failed (0x00000098)

H-JTAG - H-Flasher - H-Flasher is busy or not ready. Please try again later.

*** AGDI-Error: can’t setup break at 0x00000134

H-JTAG - H-Flasher - H-Flasher is busy or not ready. Please try again later.

H-Flasher - H-Flasher is busy or not ready. Please try again later.

Please make sure you are using Keil version less than 3.1x, and maybe your question is like this link:

http://www.hjtag.com/forum/viewthread.p … sid=pzpFTj

Hi all.

I still have problem with JTAG connection with LPC2142.

I try H-JTAG , I upload program to flash but program not run.

if pin P0.14 conect to VDD and reset MCU then program run (led blinking) but if pin is still on VDD and try to find MCu with H-JTAG show error so can find mcu. if connect pin P0.14 to VSS - GND then can find mcu with H-JTAG but application do not run and if try to debug on NoICE program run and can halt.

can any help with this.

are any pin so must by on VSS or VDD to enable corect JTAG???

I found more schematic from net and on all board is P0.14 Pull UP resistor (4.7K). if wan user program trought ISP then pul down P0.14.

what happend???

regards