EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

Problem: debugging with OCDRemote on LPC2148

Started by practicaarn7 March 16, 2006
Hi, 

we are 4 students, we are trying to debug an application on the 
lpc2148. We use an Olimex cable to connect to the prototype board of 
EmbeddedArtists 
(http://www.embeddedartists.com/products/boards/prototype.php). Our 
problem : OCDRemote says 
OCDemon InitializeTarget Error : Cable Disconnected

We followed the debugging steps from (ARM Cross Development with 
Eclipse, Version 3 by Jim Lynch).

When we connect the Wiggler to the board, it seems that it stays in 
reset mode. 

Can anybody help us with this problem?
	

An Engineer's Guide to the LPC2100 Series

practicaarn7 wrote:
> Hi,
> 
> we are 4 students, we are trying to debug an application on the
> lpc2148. We use an Olimex cable to connect to the prototype board of
> EmbeddedArtists
> (http://www.embeddedartists.com/products/boards/prototype.php). Our
> problem : OCDRemote says
> OCDemon InitializeTarget Error : Cable Disconnected
> 
> We followed the debugging steps from (ARM Cross Development with
> Eclipse, Version 3 by Jim Lynch).
> 
> When we connect the Wiggler to the board, it seems that it stays in
> reset mode.
> 
> Can anybody help us with this problem?

I have the same board and the same cable and some time ago I looked
into this problem.

I ran into the following things:
* recent versions of OCDRemote expect a link between pins DATA6
  and ERRORn. Possibly you have an older cable that does not have
  this link.
* the olimex cable expects a high level on the DATA7 pin and possibly
  OCDRemote is not putting a high-level on this pin.
* OCDRemote may be too quick to try to communicate with the board
  after a reset. It appears that the embedded artists board has a
  reset chip that keeps the LPC in reset for some minimum amount
  of time.

I was able to connect to the board with ocdremote at the very
lowest speed, but that is unworkably slow.

Some people claim that it is required to configure the parallel
port in the BIOS for SPP or EPP, not ECP.

I suggest to try out the open-source OpenOCD instead, see
http://developer.berlios.de/projects/openocd/

Bertrik

----- Original Message ----- 
From: "Bertrik Sikken" <bertrik@bert...>
To: <lpc2000@lpc2...>
Sent: Thursday, March 16, 2006 5:50 PM
Subject: Re: [lpc2000] Problem: debugging with OCDRemote on LPC2148
	> practicaarn7 wrote:
>> Hi,
>>
>> we are 4 students, we are trying to debug an application on the
>> lpc2148. We use an Olimex cable to connect to the prototype board of
>> EmbeddedArtists
>> (http://www.embeddedartists.com/products/boards/prototype.php). Our
>> problem : OCDRemote says
>> OCDemon InitializeTarget Error : Cable Disconnected
>>
>> We followed the debugging steps from (ARM Cross Development with
>> Eclipse, Version 3 by Jim Lynch).
>>
>> When we connect the Wiggler to the board, it seems that it stays in
>> reset mode.
>>
>> Can anybody help us with this problem?
>
> I have the same board and the same cable and some time ago I looked
> into this problem.
>
> I ran into the following things:
> * recent versions of OCDRemote expect a link between pins DATA6
>  and ERRORn. Possibly you have an older cable that does not have
>  this link.
> * the olimex cable expects a high level on the DATA7 pin and possibly
>  OCDRemote is not putting a high-level on this pin.
> * OCDRemote may be too quick to try to communicate with the board
>  after a reset. It appears that the embedded artists board has a
>  reset chip that keeps the LPC in reset for some minimum amount
>  of time.
>
> I was able to connect to the board with ocdremote at the very
> lowest speed, but that is unworkably slow.
>
> Some people claim that it is required to configure the parallel
> port in the BIOS for SPP or EPP, not ECP.
>
> I suggest to try out the open-source OpenOCD instead, see
> http://developer.berlios.de/projects/openocd/

EPP is required for the Macraigor software to work properly. Also, pins 1 
and 18 should be connected at the DB-25.

Leon
--
Leon Heller, G1HSM
leon.heller@leon...
http://webspace.webring.com/people/jl/leon_heller/ 

---
[This E-mail has been scanned for viruses but it is your responsibility 
to maintain up to date anti virus software on the device that you are
currently using to read this email. ]
	
Leon Heller wrote:
> ----- Original Message -----
> From: "Bertrik Sikken" <bertrik@bert...>
> To: <lpc2000@lpc2...>
> Sent: Thursday, March 16, 2006 5:50 PM
> Subject: Re: [lpc2000] Problem: debugging with OCDRemote on LPC2148
> 
> 
>> practicaarn7 wrote:
>>> Hi,
>>>
>>> we are 4 students, we are trying to debug an application on the
>>> lpc2148. We use an Olimex cable to connect to the prototype board
of
>>> EmbeddedArtists
>>> (http://www.embeddedartists.com/products/boards/prototype.php). Our
>>> problem : OCDRemote says
>>> OCDemon InitializeTarget Error : Cable Disconnected
>>>
>>> We followed the debugging steps from (ARM Cross Development with
>>> Eclipse, Version 3 by Jim Lynch).
>>>
>>> When we connect the Wiggler to the board, it seems that it stays in
>>> reset mode.
>>>
>>> Can anybody help us with this problem?
>>
>> I have the same board and the same cable and some time ago I looked
>> into this problem.
>>
>> I ran into the following things:
>> * recent versions of OCDRemote expect a link between pins DATA6
>>  and ERRORn. Possibly you have an older cable that does not have
>>  this link.
>> * the olimex cable expects a high level on the DATA7 pin and possibly
>>  OCDRemote is not putting a high-level on this pin.
>> * OCDRemote may be too quick to try to communicate with the board
>>  after a reset. It appears that the embedded artists board has a
>>  reset chip that keeps the LPC in reset for some minimum amount
>>  of time.
>>
>> I was able to connect to the board with ocdremote at the very
>> lowest speed, but that is unworkably slow.
>>
>> Some people claim that it is required to configure the parallel
>> port in the BIOS for SPP or EPP, not ECP.
>>
>> I suggest to try out the open-source OpenOCD instead, see
>> http://developer.berlios.de/projects/openocd/
> 
> EPP is required for the Macraigor software to work properly. Also, pins 1
> and 18 should be connected at the DB-25.

Don't you mean pins 8 and 15?
If not, what is the connection between pin 1 and 18 good for?

Bertrik

----- Original Message ----- 
From: "Bertrik Sikken" <bertrik@bert...>
To: <lpc2000@lpc2...>
Sent: Thursday, March 16, 2006 7:17 PM
Subject: Re: [lpc2000] Problem: debugging with OCDRemote on LPC2148
	> Leon Heller wrote:
>> ----- Original Message -----
>> From: "Bertrik Sikken" <bertrik@bert...>
>> To: <lpc2000@lpc2...>
>> Sent: Thursday, March 16, 2006 5:50 PM
>> Subject: Re: [lpc2000] Problem: debugging with OCDRemote on LPC2148
>>
>>
>>> practicaarn7 wrote:
>>>> Hi,
>>>>
>>>> we are 4 students, we are trying to debug an application on the
>>>> lpc2148. We use an Olimex cable to connect to the prototype
board of
>>>> EmbeddedArtists
>>>> (http://www.embeddedartists.com/products/boards/prototype.php).
Our
>>>> problem : OCDRemote says
>>>> OCDemon InitializeTarget Error : Cable Disconnected
>>>>
>>>> We followed the debugging steps from (ARM Cross Development
with
>>>> Eclipse, Version 3 by Jim Lynch).
>>>>
>>>> When we connect the Wiggler to the board, it seems that it
stays in
>>>> reset mode.
>>>>
>>>> Can anybody help us with this problem?
>>>
>>> I have the same board and the same cable and some time ago I looked
>>> into this problem.
>>>
>>> I ran into the following things:
>>> * recent versions of OCDRemote expect a link between pins DATA6
>>>  and ERRORn. Possibly you have an older cable that does not have
>>>  this link.
>>> * the olimex cable expects a high level on the DATA7 pin and
possibly
>>>  OCDRemote is not putting a high-level on this pin.
>>> * OCDRemote may be too quick to try to communicate with the board
>>>  after a reset. It appears that the embedded artists board has a
>>>  reset chip that keeps the LPC in reset for some minimum amount
>>>  of time.
>>>
>>> I was able to connect to the board with ocdremote at the very
>>> lowest speed, but that is unworkably slow.
>>>
>>> Some people claim that it is required to configure the parallel
>>> port in the BIOS for SPP or EPP, not ECP.
>>>
>>> I suggest to try out the open-source OpenOCD instead, see
>>> http://developer.berlios.de/projects/openocd/
>>
>> EPP is required for the Macraigor software to work properly. Also, pins
1
>> and 18 should be connected at the DB-25.
>
> Don't you mean pins 8 and 15?
> If not, what is the connection between pin 1 and 18 good for?

I meant 8-15.

Leon 

---
[This E-mail has been scanned for viruses but it is your responsibility 
to maintain up to date anti virus software on the device that you are
currently using to read this email. ]
	

The 2024 Embedded Online Conference