SparkFun Forums 

Where electronics enthusiasts find answers.

Open source ARM Debugger
By djurodrljaca
#26956
I am having some problems using a wiggler clone that I built with openocd.

I just installed YAGARTO and Eclipse and I followed this tutorial.

When I try to run openocd:
D:\Projekti\Eclipse\Workspace\LPC2148Test>openocd-pp -d 3 -f .\prj\lpc2xxx_pp.cfg

I get this:
Debug: jtag.c:1307 jtag_init():
Debug: parport.c:377 parport_init(): requesting privileges for parallel port 0x378...
Debug: parport.c:387 parport_init(): ...privileges granted
Debug: parport.c:212 parport_reset(): trst: 0, srst: 0
Debug: jtag.c:258 jtag_call_event_callbacks(): jtag event: 1
Debug: jtag.c:1106 jtag_reset_callback():
Debug: jtag.c:258 jtag_call_event_callbacks(): jtag event: 1
Debug: jtag.c:1106 jtag_reset_callback():
Error: jtag.c:1159 jtag_examine_chain(): JTAG communication failure, check connection, JTAG interface, target power etc.

Does anyone know what the could be the problem?

Is it something with the hardware or software? (I checked the wiggler and I didn't find any problems)
By mifi
#26958
Hello ????

it looks that this is a software problem. You have not
installed the giveio driver. Take a look at the page
again. Here you will find some information about
how to install it, install_giveio.

Michael
By djurodrljaca
#26960
I have installed it. It was installed in the process of the installation as it is written in the tutorial for YAGARTO.

Well, I can try to install the driver again, but I don't think that it will help.
By mifi
#26962
Sorry I am on the wrong way.

What is your target?
By djurodrljaca
#26963
If by target you mean uP it is LPC2148, and I also tried it with LPC2138 (Keil MCB2130).
By mifi
#26964
>Error: jtag.c:1159 jtag_examine_chain(): JTAG communication failure, check connection, JTAG interface, target power etc.

It looks that the target is not responding.
Have you connect the RTCK line over a resistor to GND?
By djurodrljaca
#26965
This is the schematic to my LPC2148 board and I have it connected (there is a jumper, but I will check it if it is OK).

I also tried it with MCB2130 board from Keil and I got the same error. (I used the same project - LPC2148Test - on this board).

I should probably also say that this is the first time I tried to use a JTAG and that I don't know if it works (I recently built it on a protoboard).
By djurodrljaca
#26966
I built the JTAG wiggler from this schematic. This is supposed to be the schematic that Dominic Rath used in his OpenOCD thesis.
By mifi
#26967
I have take a look on the MCB2130 schematics,
here the jumper J9 JTAG must be closed to enable
the JTAG interface.

Can you point me to your schematic of your JTAG hardware?
By mifi
#26968
Have you check the power and the level of the
reset lines, nTRST and nSRST?
By djurodrljaca
#26970
nTRST and nSRST are both high (3.3V).

TDI and TMS are high, TCLK and TDO are low.
By djurodrljaca
#26971
I also checked JTAG jumpers on both of my boards and they are both connected.
By mifi
#26972
Do you have an oscilloscope to check
the signal if you start OpenOCD?

What is your jtag_speed setting?
Make it very slow, and use a high number, perhaps 10.
By djurodrljaca
#26974
This is what I got when I measured all the signals with the oscilloscope:
TDI - starts with low and than it sends a signals openocd-pp is running
TMS - starts high and goes low while openocd-pp is running
TCLK - starts with low and than it sends a signals openocd-pp is running
TDO - always low
nSRST - always high
nTRST - always low

This was tested at jtag_speed=500.

Can you tell me what should each signal look like?

TDI, TMS and TCLK look like they work, but this is just output from the PC, but the output TDO from the LPC2148 doesn't look like it reacts this signals.

Now I will measure signals on the MCB2130...
By djurodrljaca
#26975
I get the same results on MCB2130.
long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]