Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Thread

Yet another email with "getting started" questions....

Yet another email with "getting started" questions....

2004-10-08 by Mark Gross

I recently purchased an Olimex lpc-p2124 development boardfrom sparkfun.com 
along with a p-port JTAG dongle.

I have some questions, one about JTAG use with this thing, and the others 
about using the ISP.

I'm looking for Linux based JTAG utilities that will allow me to talk to the 
device.  I'm attempting to use the armtool+libjtag.  It seems to talk to the 
JTAG dongle but not the Olimex board.  I'm wondering if there are some jumper 
settings or other gotchas I'm missing.  Any hints or clues would be very 
welcome.

Last night I figured out how to use the LPW2000 Flash Utility to read the 
flash, and "some" of the ram.  (I needed to set the BSP jumper, and then the 
UART based boot loader started working.)  Is there Olimex use documentation 
on these development boards?

I only have Windows XP on my laptop (my other systems are Linux boxes) and it 
doesn't have a serial port, so I'm using a USB 2 serial dongle to access the 
ISP.  The Flash Utility seems to work, except that when I attempt to read the 
RAM contents it always errors out at 0x40000200.  Am I doing something wrong?

Lastly, to is there a simple "getting started" or HOWTO on using the ISP to 
upload and run a hello world type of program?  Setting up the 2's complement 
check-sum for the interruptvecor 0x00000014 and then the reset vector at zero 
with the address of my entry point?

thanks,

--mgross

Re: [lpc2000] Yet another email with "getting started" questions....

2004-10-08 by Robert Adsett

At 06:40 AM 10/8/04 -0700, you wrote:
<snip>
>Lastly, to is there a simple "getting started" or HOWTO on using the ISP to
>upload and run a hello world type of program?  Setting up the 2's complement
>check-sum for the interruptvecor 0x00000014 and then the reset vector at zero
>with the address of my entry point?

Both of the serial ISP programs I know about (Philips gui and Martins 
command line) calculate and insert the checksum automatically.  There is no 
need to do it by hand.

As far as setting the reset vector that should be done by the startup 
code.  If you need an example there are some in the files section of this 
group and in the newlib support at http://www.aeolusdevelopment.com

Robert


" 'Freedom' has no meaning of itself.  There are always restrictions,
be they legal, genetic, or physical.  If you don't believe me, try to
chew a radio signal. "

                         Kelvin Throop, III

Re: [lpc2000] Yet another email with "getting started" questions....

2004-10-11 by Anton Erasmus

On 8 Oct 2004 at 6:40, Mark Gross wrote:

> 
> I recently purchased an Olimex lpc-p2124 development boardfrom
> sparkfun.com along with a p-port JTAG dongle.
> 
> I have some questions, one about JTAG use with this thing, and the
> others about using the ISP.
> 
> I'm looking for Linux based JTAG utilities that will allow me to talk
> to the device.  I'm attempting to use the armtool+libjtag.  It seems
> to talk to the JTAG dongle but not the Olimex board.  I'm wondering if
> there are some jumper settings or other gotchas I'm missing.  Any
> hints or clues would be very welcome.
[Stuff Snipped]

Try the JTAGER project on sourceforge.  

Regards
   Anton Erasmus


-- 
A J Erasmus

Re: [lpc2000] Yet another email with "getting started" questions....

2004-10-12 by Mark Gross

On Monday 11 October 2004 11:56 am, Anton Erasmus wrote:
>  On 8 Oct 2004 at 6:40, Mark Gross wrote:
>  > I recently purchased an Olimex lpc-p2124 development boardfrom
>  > sparkfun.com along with a p-port JTAG dongle.
>  >
>  > I have some questions, one about JTAG use with this thing, and the
>  > others about using the ISP.
>  >
>  > I'm looking for Linux based JTAG utilities that will allow me to talk
>  > to the device.  I'm attempting to use the armtool+libjtag.  It seems
>  > to talk to the JTAG dongle but not the Olimex board.  I'm wondering if
>  > there are some jumper settings or other gotchas I'm missing.  Any
>  > hints or clues would be very welcome.
>
>  [Stuff Snipped]
>
>  Try the JTAGER project on sourceforge. 

I'll give it a try :)  Have you used it much?  What do you think of it?
Show quoted textHide quoted text
>
>  Regards
>     Anton Erasmus
>

Re: [lpc2000] Yet another email with "getting started" questions....

2004-10-12 by Ing. Boris Králik

I am uses JTAG Tools jtag project, it working well.
This project is ported for various interface, I uses
EI012 interface. If you have BSDL file for the
processor, you may to port it to the project easy.
You find it on 
http://sourceforge.net/projects/jtagtools 
website. In this time jtagtool is ported for many
processor. It works in Linux, cygwin enviroment.
By
 --- Mark Gross <mark@...> wrote: 
> On Monday 11 October 2004 11:56 am, Anton Erasmus
> wrote:
> >  On 8 Oct 2004 at 6:40, Mark Gross wrote:
> >  > I recently purchased an Olimex lpc-p2124
> development boardfrom
> >  > sparkfun.com along with a p-port JTAG dongle.
> >  >
> >  > I have some questions, one about JTAG use with
> this thing, and the
> >  > others about using the ISP.
> >  >
> >  > I'm looking for Linux based JTAG utilities that
> will allow me to talk
> >  > to the device.\ufffd I'm attempting to use the
> armtool+libjtag.\ufffd It seems
> >  > to talk to the JTAG dongle but not the Olimex
> board.\ufffd I'm wondering if
> >  > there are some jumper settings or other gotchas
> I'm missing.\ufffd Any
> >  > hints or clues would be very welcome.
> >
> >  [Stuff Snipped]
> >
> >  Try the JTAGER project on sourceforge.\ufffd
> 
> I'll give it a try :)  Have you used it much?  What
> do you think of it?
> 
> >
> >  Regards
> >  \ufffd\ufffd Anton Erasmus
> >
> 
>  

=====
Regards / S pozdravom Ing. Boris Kralik

http://www.geocities.com/kralikbo/
-------------------------------------------------
GSM CZ: +420 776 819 899


	
	
		
___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun!  http://uk.messenger.yahoo.com

Re: [lpc2000] Yet another email with "getting started" questions....

2004-10-12 by Anton Erasmus

On 11 Oct 2004 at 20:12, Mark Gross wrote:

> 
> On Monday 11 October 2004 11:56 am, Anton Erasmus wrote:
> >  On 8 Oct 2004 at 6:40, Mark Gross wrote:
> >  > I recently purchased an Olimex lpc-p2124 development boardfrom
> >  > sparkfun.com along with a p-port JTAG dongle.
> >  >
> >  > I have some questions, one about JTAG use with this thing, and
> >  > the others about using the ISP.
> >  >
> >  > I'm looking for Linux based JTAG utilities that will allow me to
> >  > talk to the device.  I'm attempting to use the armtool+libjtag. 
> >  > It seems to talk to the JTAG dongle but not the Olimex board. 
> >  > I'm wondering if there are some jumper settings or other gotchas
> >  > I'm missing.  Any hints or clues would be very welcome.
> >
> >  [Stuff Snipped]
> >
> >  Try the JTAGER project on sourceforge. 
> 
> I'll give it a try :)  Have you used it much?  What do you think of
> it?
> 
I used a hacked version of armtools in the past. I changed it to be able
to program a flash device connected to an Atmel AT91R40008. I found
JTAGER the other day, and it built without problems under Linux and Cygwin.
I could also quite easily read/write memory on my AT91R40008 board. 
I have not yet tried it on my LPC2292 board.

Regards
  Anton Erasmus
-- 
A J Erasmus

Re: [lpc2000] Yet another email with "getting started" questions....

2004-10-13 by Anton Erasmus

On 13 Oct 2004 at 6:56, Bill Knight wrote:

> Anton
>   Please tell me how you managed to build JTAGER under Cygwin.
> I downloaded it and attempted to build and immediately ran into
> problems with the finding sys/io.h which suppiles prototypes for
> outb(), inb(), and ioperm().  I was planning on adding the necessary
> code for accessing the hardware (I'm running under XP) by using giveio
> but unfortunately was unable to get that far.

Sorry,

I was downloading and compiling various things under both Linux and
Cygwin. I thought I compiled JTAGER under cygwinas well as Linux, but I did not.

ioperm is available for cygwin - just install the package and explicitly link with
the ioperm library. 

Having now actually tried to compile JTAGER under cygwin, it seems that it needs
a function called "getline" which is avialable in glibc. It looks to be fairly easy to 
implement this missing function. Everything else seems to be available. 

Regards
   Anton Erasmus

> 
> 
> On Tue, 12 Oct 2004 22:23:54 +0200, Anton Erasmus wrote:
> 
> 
> On 11 Oct 2004 at 20:12, Mark Gross wrote:
> 
> > 
> > On Monday 11 October 2004 11:56 am, Anton Erasmus wrote:
> > >  On 8 Oct 2004 at 6:40, Mark Gross wrote:
> > >  > I recently purchased an Olimex lpc-p2124 development boardfrom
> > >  > sparkfun.com along with a p-port JTAG dongle.
> > >  >
> > >  > I have some questions, one about JTAG use with this thing, and
> > >  > the others about using the ISP.
> > >  >
> > >  > I'm looking for Linux based JTAG utilities that will allow me
> > >  > to talk to the device.  I'm attempting to use the
> > >  > armtool+libjtag. It seems to talk to the JTAG dongle but not
> > >  > the Olimex board. I'm wondering if there are some jumper
> > >  > settings or other gotchas I'm missing.  Any hints or clues
> > >  > would be very welcome.
> > >
> > >  [Stuff Snipped]
> > >
> > >  Try the JTAGER project on sourceforge. 
> > 
> > I'll give it a try :)  Have you used it much?  What do you think of
> > it?
> > 
> I used a hacked version of armtools in the past. I changed it to be
> able to program a flash device connected to an Atmel AT91R40008. I
> found JTAGER the other day, and it built without problems under Linux
> and Cygwin. I could also quite easily read/write memory on my
> AT91R40008 board. I have not yet tried it on my LPC2292 board.
> 
> Regards
>   Anton Erasmus
> -- 
> A J Erasmus
> 
> 
> 
> ------------------------ Yahoo! Groups Sponsor
> --------------------~--> $9.95 domain names from Yahoo!. Register
> anything. http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/dN_tlB/TM
> --------------------------------------------------------------------~-
> > 
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 

-- 
A J Erasmus

Re: [lpc2000] Yet another email with "getting started" questions....

2004-10-13 by Bill Knight

I did some more searching also and have had moderate success.  I
downloaded, built and installed ioperm for cygwin.  Then added it to
the list of libraries to be linked.  Then found, downloaded, and added
getline.c to the cmdline directory build.  Then commented out the code
to call write_history() in the JTAGERs exit function.  It now sort of
works.  I can attach to my ARM7TDMI processor, set registers, etc.  I
hacked some code to kind-of support my flash part and have been able
to erase and attempt to program it.  The program once loaded into
flash almost works.  Not sure if I have a programing problem or a
program problem - flash access time.  Unfortunately JTAGER does not
support Thumb mode which is what my loaded program executes, so I have
been unable to erase and retry.
BTW - programing flash with JTAGER is VERY, VERY slow.  It would be
better to use JTAGER (or something) to load a program into RAM then
use it to program the flash.

Regards
-Bill Knight
www.theARMPatch.com


On Wed, 13 Oct 2004 23:34:52 +0200, Anton Erasmus wrote:


On 13 Oct 2004 at 6:56, Bill Knight wrote:

> Anton
>   Please tell me how you managed to build JTAGER under Cygwin.
> I downloaded it and attempted to build and immediately ran into
> problems with the finding sys/io.h which suppiles prototypes for
> outb(), inb(), and ioperm().  I was planning on adding the necessary
> code for accessing the hardware (I'm running under XP) by using giveio
> but unfortunately was unable to get that far.

Sorry,

I was downloading and compiling various things under both Linux and
Cygwin. I thought I compiled JTAGER under cygwinas well as Linux, but I did not.

ioperm is available for cygwin - just install the package and explicitly link with
the ioperm library. 

Having now actually tried to compile JTAGER under cygwin, it seems that it needs
a function called "getline" which is avialable in glibc. It looks to be fairly easy to 
implement this missing function. Everything else seems to be available. 

Regards
   Anton Erasmus

> 
> 
> On Tue, 12 Oct 2004 22:23:54 +0200, Anton Erasmus wrote:
> 
> 
> On 11 Oct 2004 at 20:12, Mark Gross wrote:
> 
> > 
> > On Monday 11 October 2004 11:56 am, Anton Erasmus wrote:
> > >  On 8 Oct 2004 at 6:40, Mark Gross wrote:
> > >  > I recently purchased an Olimex lpc-p2124 development boardfrom
> > >  > sparkfun.com along with a p-port JTAG dongle.
> > >  >
> > >  > I have some questions, one about JTAG use with this thing, and
> > >  > the others about using the ISP.
> > >  >
> > >  > I'm looking for Linux based JTAG utilities that will allow me
> > >  > to talk to the device.  I'm attempting to use the
> > >  > armtool+libjtag. It seems to talk to the JTAG dongle but not
> > >  > the Olimex board. I'm wondering if there are some jumper
> > >  > settings or other gotchas I'm missing.  Any hints or clues
> > >  > would be very welcome.
> > >
> > >  [Stuff Snipped]
> > >
> > >  Try the JTAGER project on sourceforge. 
> > 
> > I'll give it a try :)  Have you used it much?  What do you think of
> > it?
> > 
> I used a hacked version of armtools in the past. I changed it to be
> able to program a flash device connected to an Atmel AT91R40008. I
> found JTAGER the other day, and it built without problems under Linux
> and Cygwin. I could also quite easily read/write memory on my
> AT91R40008 board. I have not yet tried it on my LPC2292 board.
> 
> Regards
>   Anton Erasmus
> -- 
> A J Erasmus
> 
> 
> 
> ------------------------ Yahoo! Groups Sponsor
> --------------------~--> $9.95 domain names from Yahoo!. Register
> anything. http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/dN_tlB/TM
> --------------------------------------------------------------------~-
> > 
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 

-- 
A J Erasmus





Yahoo! Groups Links

Re: [lpc2000] Yet another email with "getting started" questions....

2004-10-14 by Anton Erasmus

On 13 Oct 2004 at 16:53, Bill Knight wrote:

> 
> I did some more searching also and have had moderate success.  I
> downloaded, built and installed ioperm for cygwin.  Then added it to
> the list of libraries to be linked.  Then found, downloaded, and added
> getline.c to the cmdline directory build.  Then commented out the code
> to call write_history() in the JTAGERs exit function.  It now sort of
> works.  I can attach to my ARM7TDMI processor, set registers, etc.  I
> hacked some code to kind-of support my flash part and have been able
> to erase and attempt to program it.  The program once loaded into
> flash almost works.  Not sure if I have a programing problem or a
> program problem - flash access time.  Unfortunately JTAGER does not
> support Thumb mode which is what my loaded program executes, so I have
> been unable to erase and retry. BTW - programing flash with JTAGER is
> VERY, VERY slow.  It would be better to use JTAGER (or something) to
> load a program into RAM then use it to program the flash.

I Agree. In the past I have used a hacked version of armtool to download
flash programming code to ram. This code then got the data in 256 byte 
chunks via the JTAG interface and wrote it to flash. I got in the order of
24kB/s programming speed.

Regards
  Anton Erasmus

> Regards
> -Bill Knight
> www.theARMPatch.com
> 
> 
> On Wed, 13 Oct 2004 23:34:52 +0200, Anton Erasmus wrote:
> 
> 
> On 13 Oct 2004 at 6:56, Bill Knight wrote:
> 
> > Anton
> >   Please tell me how you managed to build JTAGER under Cygwin.
> > I downloaded it and attempted to build and immediately ran into
> > problems with the finding sys/io.h which suppiles prototypes for
> > outb(), inb(), and ioperm().  I was planning on adding the necessary
> > code for accessing the hardware (I'm running under XP) by using
> > giveio but unfortunately was unable to get that far.
> 
> Sorry,
> 
> I was downloading and compiling various things under both Linux and
> Cygwin. I thought I compiled JTAGER under cygwinas well as Linux, but
> I did not.
> 
> ioperm is available for cygwin - just install the package and
> explicitly link with the ioperm library. 
> 
> Having now actually tried to compile JTAGER under cygwin, it seems
> that it needs a function called "getline" which is avialable in glibc.
> It looks to be fairly easy to implement this missing function.
> Everything else seems to be available. 
> 
> Regards
>    Anton Erasmus
> 
> > 
> > 
> > On Tue, 12 Oct 2004 22:23:54 +0200, Anton Erasmus wrote:
> > 
> > 
> > On 11 Oct 2004 at 20:12, Mark Gross wrote:
> > 
> > > 
> > > On Monday 11 October 2004 11:56 am, Anton Erasmus wrote:
> > > >  On 8 Oct 2004 at 6:40, Mark Gross wrote:
> > > >  > I recently purchased an Olimex lpc-p2124 development
> > > >  > boardfrom sparkfun.com along with a p-port JTAG dongle.
> > > >  >
> > > >  > I have some questions, one about JTAG use with this thing,
> > > >  > and the others about using the ISP.
> > > >  >
> > > >  > I'm looking for Linux based JTAG utilities that will allow me
> > > >  > to talk to the device.  I'm attempting to use the
> > > >  > armtool+libjtag. It seems to talk to the JTAG dongle but not
> > > >  > the Olimex board. I'm wondering if there are some jumper
> > > >  > settings or other gotchas I'm missing.  Any hints or clues
> > > >  > would be very welcome.
> > > >
> > > >  [Stuff Snipped]
> > > >
> > > >  Try the JTAGER project on sourceforge. 
> > > 
> > > I'll give it a try :)  Have you used it much?  What do you think
> > > of it?
> > > 
> > I used a hacked version of armtools in the past. I changed it to be
> > able to program a flash device connected to an Atmel AT91R40008. I
> > found JTAGER the other day, and it built without problems under
> > Linux and Cygwin. I could also quite easily read/write memory on my
> > AT91R40008 board. I have not yet tried it on my LPC2292 board.
> > 
> > Regards
> >   Anton Erasmus
> > -- 
> > A J Erasmus
> > 
> > 
> > 
> > ------------------------ Yahoo! Groups Sponsor
> > --------------------~--> $9.95 domain names from Yahoo!. Register
> > anything. http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/dN_tlB/TM
> > --------------------------------------------------------------------
> > ~-
> > > 
> > 
> > 
> > Yahoo! Groups Links
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> 
> -- 
> A J Erasmus
> 
> 
> 
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> ------------------------ Yahoo! Groups Sponsor
> --------------------~--> $9.95 domain names from Yahoo!. Register
> anything. http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/dN_tlB/TM
> --------------------------------------------------------------------~-
> > 
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
> 

-- 
A J Erasmus

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.