LPC-2378-STK can't communicate

I have a new Olimex LPC-2378-STK development board and cannot seem to communicate with it. It has been set up as follows:

JTAG:

Wiggler: Olimex ARM-JTAG

PWR_SEL is jumpered to external.

No other jumpers.

PC set to BI-DIRECTIONAL or EPP

using: H-JTAG V0.6.0 (BUILD 20071130)

On entry, H-JTAG shows:

UNKNOWN

0xFFFFFFFF

Jtag Selection:

Wiggler (Predefined)

nTRST output inverted

nTRST: Pin2 D0

nSRST: Pin6 D4

Target settings:

Auto Detect

Little Indian

TCK Speed: MAX/1 or MAX/8

Port Address:

LP1 - 0x378

Port Testing shows: “works well”

Target Manager:

ID Code: 0x

Processor: ARM7TDMI

When Detect Target is selected, error message is:

"

Unable to find target. Please make sure that the hardware

is properly connected and powered up.

"

SERIAL PORT

Running sdk4arm Insight:

ISP_E and RST_E are jumpered.

PWR_SEL is jumpered to external.

USBC/USBSC jumper is 2 to 3

Serial Port (DB9) pins 2,3,4,5, and 7 connected.

Target: Either Remote/Serial or GDBserver/Serial

Baud Rate: any

Port: Com1

Always gets error:

"

Com1: No such file or directory

GDB cannot connect to the target board using com1.

Verify that the board is sequrely connected and, if necessary,

modify the port setting witht debugger preverences.

"

When I clear the error (OK), the OLIMEX graphic display goes dark, and the SD light comes on, for about 2 seconds. The display then restores and the SD light goes out.

Hyperterminal

When connected, Hyperterminal turns on DTR, the graphic display goes dark, the SD light comes on, and the RTS line goes active. There is no response to the keyboard at any baud rate.

Thanks

leeherndon:
I have a new Olimex LPC-2378-STK development board and cannot seem to communicate with it. It has been set up as follows:

JTAG:

Wiggler: Olimex ARM-JTAG

PWR_SEL is jumpered to external.

No other jumpers.

PC set to BI-DIRECTIONAL or EPP

using: H-JTAG V0.6.0 (BUILD 20071130)

Is the debug enable jumper on RTCK installed to enable the JTAG port?

–Dave

Dave,

There is no RTCK jumper that I can find on the board, and the jumper diagram doesn’t list an RTCK jumper.

I tried jumping DBG_E, which is listed as a Trace Enable, but that didn’t help.

leeherndon:
Dave,

There is no RTCK jumper that I can find on the board, and the jumper diagram doesn’t list an RTCK jumper.

I tried jumping DBG_E, which is listed as a Trace Enable, but that didn’t help.

I don’t have that board myself since I am working with the 2138 and 2148 parts, so I am sorry that I was not more helpful. I did look at the schematic on the web, and it does appear to have a way to pull RTCK low to enable JTAG, but there may be more to it than that with the newer chips like you are using. The one that you say is labeled DBG_E may be be the enable that I was refering to. When you start H-JTAG it will try to determine which processor is attached. I think that I recall you saying that it found an unknown processor type? If it also popped up a window that says “Unable to find target. Please make sure that the hardware is properly connected and powered up.” then there is no communication between H-JTAG and your target. Unfortunately that is not very helpful because the connection could be broken anywhere between your PC and ARM itself. Maybe someone more familiar with your board can be more helpful.

Good Luck!

–Dave

Dave,

J-Tag communications works if I use openocd-r247. So, I am at least communicating with the board.

My problem now is trying to build Hello World using Eclipse Platform 3.3.

For some reason, build uses a makefile other than the one I created following the Help instructions for Eclipse. The one I created shows up on the navigation page but Build Project picks up another one that I can’t find and which gives me a build error.

Thanks for your help.

leeherndon:
Dave,

J-Tag communications works if I use openocd-r247. So, I am at least communicating with the board.

Ahhhhh, so that probably just means that you had H-JTAG misconfigured for the Olimex ARM-JTAG, since the default Wiggler configuration does not work with the Olimex clone in H-JTAG. You can find the correct configuration here:

http://www.hjtag.com/pic/OLIMEX.gif

I use both OpenOCD and H-JTAG, and like both of them for different reasons.

I don’t use Eclipse, so I am afraid that I can not help out there.

–Dave

Dave,

Thanks, that has H-JTAG working now.

Dave,

I have a new problem. For a couple of weeks, I have been able to program, download, and debug with the IAR Workbench.

Of a sudden, today, I can no longer download a program. When I download from IAR, I always get a:

JTAG_BB.DLL error:

Unable to Load device driver

When I hit OK, the following error appeared:

JTAG Driver

JTAG Error: No contact with the JTAG interface

Check the cable and power.

By pressing IGNORE a retry without re_initialization is made.

In the past, when I selected Retry, loading would proceed and the system would go into debug at the beginning of the program.

Now I get a repeat of the last error message and cannot get it to download.

I had been playing with OCDremote to try to get a download without the error messages. Now, I can’t get it to download at all. I have tried pulling the power, re-installing j-tag drivers, rebooting, all without success.

If I disconnect the J-TAG cable, the board runs the last program I downloaded.

Son of a gun!

While bringing up the messages to post here, the board all of a sudden started downloading, and now appears to be working just the way it was.

Have you any idea why I get the error messages, or what can be done to smooth the operation?

Thanks,

leeherndon:
Dave,

I have a new problem. For a couple of weeks, I have been able to program, download, and debug with the IAR Workbench.

Of a sudden, today, I can no longer download a program. When I download from IAR, I always get a:

JTAG_BB.DLL error:

Unable to Load device driver

When I hit OK, the following error appeared:

JTAG Driver

JTAG Error: No contact with the JTAG interface

Check the cable and power.

By pressing IGNORE a retry without re_initialization is made.

In the past, when I selected Retry, loading would proceed and the system would go into debug at the beginning of the program.

Now I get a repeat of the last error message and cannot get it to download.

I had been playing with OCDremote to try to get a download without the error messages. Now, I can’t get it to download at all. I have tried pulling the power, re-installing j-tag drivers, rebooting, all without success.

If I disconnect the J-TAG cable, the board runs the last program I downloaded.

Son of a gun!

While bringing up the messages to post here, the board all of a sudden started downloading, and now appears to be working just the way it was.

Have you any idea why I get the error messages, or what can be done to smooth the operation?

Thanks,

Hi Lee, I do not use IAR with H-JTAG so I do not even know what the JTAG_BB.DLL is! I use H-JTAG with the NoICE debugger, and the DLL that I use to link H-JTAG to NoICE is the H-JTAG.DLL that is in the H-JTAG directory. I had assumed that is how other debuggers connected with H-JTAG as well, but I do not know that for sure. Anyway, since I don’t know anything about what JTAG_BB.DLL does, maybe some IAR user can come into this thread to help you out? I am glad to see that it started working again for you, but I can sure understand about being worried about why the disconnect happened and if it is going to happen again!

–Dave