EmbeddedRelated.com
Forums

Problem using Olimex-ARM-USB-OCD with OpenOCD in ubuntu 8.04

Started by oladipo_oni October 23, 2008
Hi Ola,

> Based on your message about you having flashed this board (lpc-mt
> 2106) in the past I was wondering if it was possible for you to give
> me your binary file, so all I have to do is find an application that
> will allow me to program the on board flash through ISP.

Before I do that, please see my note below.

> I don't need the code just the hex file, as I can write one when I am
> up and running with the board.
>
> My main objective is to get my olimex-arm usb JTAG debugger working.
> As for now what I noticed is that openocd is not detecting the targets
> power hence the error.

The one thing that I *know* about the LPC-2106-MT is that the Olimex site
says to power at 6VAC/+9VDC. THIS DOES NOT WORK WITH MY BOARD. I need to
power the board using at least 10.5V DC. I power this board from a standard
lab supply, and at 10.58V it takes 24mA when idling.

Powering the board at exactly 9V DOES NOT make the JTAG port work at all,
with any JTAG adapter I have tried.

See if that helps. Rgds,

--
Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk
CrossWorks for ARM, MSP430, AVR, MAXQ, and now Cortex-M3 processors

An Engineer's Guide to the LPC2100 Series

Ola,

> Hi Paul,
>
> Based on your message about you having flashed this board (lpc-mt
> 2106) in the past I was wondering if it was possible for you to give
> me your binary file, so all I have to do is find an application that
> will allow me to program the on board flash through ISP.
>
> I don't need the code just the hex file, as I can write one when I am
> up and running with the board.

I am sending you a hex file which exercises the LCD and the LED on the 2106
board.

Some notes on getting this to work on this particular board:

1. Program the hex file using ISP or whatever.
2. Remove the BSL jumper.
3. Remove the DBG jumper.
4. Apply power the board at AT LEAST 10.5V!
5. Turn on the power.
6. Press the RST button and see if the LCD & LED work.

Note that if don't follow these instructions, things won't work. You need
the 2106 not to go into the bootloader (BSL jumper), not to snatch the extra
pins for ETM (DBG jumper), it needs to be powered to work (10.5V) and it
doesn't start up using a POR (hence press the RST button).

Getting the LCD to work properly is fairly easy. And hopefully you should
be up and running with your stuff.

...heck, you're not even a CrossWorks customer!

Regards,

--
Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk
CrossWorks for ARM, MSP430, AVR, MAXQ, and now Cortex-M3 processors

Hi Paul,

Sorry for the late response. I just picked up your message and noticed
the power supply info that you gave.

I will start by using a lab power supply and see if the jtag works.
If that does work I will try programming the on board flash with your
supplied hex file.
I found a windows application that will allow me to program the flash.
I would have ideally preferred a program that will allow me to program
the flash in linux.

I will keep you informed on what progress I make.
Many thanks in advance.

Regards
Ola
--- In l..., "Paul Curtis" wrote:
>
> Ola,
>
> > Hi Paul,
> >
> > Based on your message about you having flashed this board (lpc-mt
> > 2106) in the past I was wondering if it was possible for you to give
> > me your binary file, so all I have to do is find an application that
> > will allow me to program the on board flash through ISP.
> >
> > I don't need the code just the hex file, as I can write one when I am
> > up and running with the board.
>
> I am sending you a hex file which exercises the LCD and the LED on
the 2106
> board.
>
> Some notes on getting this to work on this particular board:
>
> 1. Program the hex file using ISP or whatever.
> 2. Remove the BSL jumper.
> 3. Remove the DBG jumper.
> 4. Apply power the board at AT LEAST 10.5V!
> 5. Turn on the power.
> 6. Press the RST button and see if the LCD & LED work.
>
> Note that if don't follow these instructions, things won't work.
You need
> the 2106 not to go into the bootloader (BSL jumper), not to snatch
the extra
> pins for ETM (DBG jumper), it needs to be powered to work (10.5V) and it
> doesn't start up using a POR (hence press the RST button).
>
> Getting the LCD to work properly is fairly easy. And hopefully you
should
> be up and running with your stuff.
>
> ...heck, you're not even a CrossWorks customer!
>
> Regards,
>
> --
> Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk
> CrossWorks for ARM, MSP430, AVR, MAXQ, and now Cortex-M3 processors
>

Hi All

The problem with my olimex-arm-usb-ocd with olimex lpc-mt2106 board
has be fixed.
It turns out that the problem was in the hardware.
Initially I powered the target board with the 9Vdc output from the
olimex debugger.
When that didn't work I tried a 9V dc block which still didn't work.
The penny dropped when I got a response from Paul Curtis explaining that
he could not get his board to work until he applied 10.5V.

Up to this point I noticed that the supply voltage to the target which
was supposed to be 3.3Volts was reading as 2.4V.
I didn't take much notice of this because the olimex website said the
debugger should be able to operate from appox 2.0V.

So I dug up my old bench PSU and applied the suggested voltage and
still no show.
I then begin turning the voltage up bit by bit then I heard the buzzer
go and the lcd with the message "www.olimex.com". Whoa break through
at last.
Then inserted the BSL and DEBUG jumper run the openocd config file and
it worked.

I like to confirm if things really work by performing a couple of
attempts. So I unplug my whole setup and reconnected then re-ran the
test and this time nothing happened.

So I took of the jumpers and reset the board hoping to see the led and
lcd working and to my greatest disappointment no show.

So I took out the old good DMM and started tracing the voltage from
the bridge rectifier(DB104 G2) output. May I point out the actual
device on my boards is a DB107 and not a DB104 as the schematic shows.

I then realized that the voltage gets to the input of Z1 (IN7433) but
nothing on the output.

Looking at the schematic I noticed that output of the zener diode is
fed into LM117 regulators which are capable of maximum input voltage
of 40V. See http://www.national.com/mpf/LM/LM117.html

I then later replaced the zener diode with a copper link. Applied
power to the target and it worked happily ever after.

I am now using the PSU from the olimex debugger and its running fine.

I just thought I should share this information since many people have
helped me during this ARM trying times.

If any one decides to remove this zener diode please not it is at own
risk.
I will however recommend a fixed 9V power supply block and measured
with a DMM before applying to target or use the olimex debugger
voltage output with the jumper correctly set.

Enjoy.

NB:
I am not sure if the image that caused the lcd to display
"www.olimex.com" was preprogrammed by olimex or not. I did however
received a hex file from Paul Curtis which I used for messing around.
When I was playing with Philip Flash utility under windows.

The effects of the image is Buzzer on, LED On and LCD displays
www.olimex.com

Regards
Ola Oni
--- In l..., "oladipo_oni" wrote:
>
> Hi Paul,
>
> Sorry for the late response. I just picked up your message and noticed
> the power supply info that you gave.
>
> I will start by using a lab power supply and see if the jtag works.
> If that does work I will try programming the on board flash with your
> supplied hex file.
> I found a windows application that will allow me to program the flash.
> I would have ideally preferred a program that will allow me to program
> the flash in linux.
>
> I will keep you informed on what progress I make.
> Many thanks in advance.
>
> Regards
> Ola
> --- In l..., "Paul Curtis" wrote:
> >
> > Ola,
> >
> > > Hi Paul,
> > >
> > > Based on your message about you having flashed this board (lpc-mt
> > > 2106) in the past I was wondering if it was possible for you to give
> > > me your binary file, so all I have to do is find an application that
> > > will allow me to program the on board flash through ISP.
> > >
> > > I don't need the code just the hex file, as I can write one when
I am
> > > up and running with the board.
> >
> > I am sending you a hex file which exercises the LCD and the LED on
> the 2106
> > board.
> >
> > Some notes on getting this to work on this particular board:
> >
> > 1. Program the hex file using ISP or whatever.
> > 2. Remove the BSL jumper.
> > 3. Remove the DBG jumper.
> > 4. Apply power the board at AT LEAST 10.5V!
> > 5. Turn on the power.
> > 6. Press the RST button and see if the LCD & LED work.
> >
> > Note that if don't follow these instructions, things won't work.
> You need
> > the 2106 not to go into the bootloader (BSL jumper), not to snatch
> the extra
> > pins for ETM (DBG jumper), it needs to be powered to work (10.5V)
and it
> > doesn't start up using a POR (hence press the RST button).
> >
> > Getting the LCD to work properly is fairly easy. And hopefully you
> should
> > be up and running with your stuff.
> >
> > ...heck, you're not even a CrossWorks customer!
> >
> > Regards,
> >
> > --
> > Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk
> > CrossWorks for ARM, MSP430, AVR, MAXQ, and now Cortex-M3 processors
>