EmbeddedRelated.com
Forums
Memfault Beyond the Launch

Eclipse+Olimex openOCD+MAC OS X

Started by Jean-Sebastien Stoezel February 12, 2009
Hi,

Is anybody developing for the LPC2xxx family using:
- Eclipse
- openOCD JTAG from Olimex
- MAC OS X

If so, how do you setup your environment?

Thanks,
Jean

An Engineer's Guide to the LPC2100 Series

> Hi,
>
> Is anybody developing for the LPC2xxx family using:
> - Eclipse
> - openOCD JTAG from Olimex
> - MAC OS X
>
> If so, how do you setup your environment?

First....create a Windoze partition.

Or, fire up Google:
http://forum.sparkfun.com/viewtopic.php?t23

Regards,
Richard.

+ http://www.FreeRTOS.org
Designed for Microcontrollers. More than 7000 downloads per month.

+ http://www.FreeRTOS.org/Documentation
FreeRTOS eBook - a hands on step by step guide.

> Is anybody developing for the LPC2xxx family using:
> - Eclipse
> - openOCD JTAG from Olimex
> - MAC OS X
An alternative would be contacting Paul Curtis about the presumed
release of Crossworks for ARM 2.0 - which then would be also available
on Mac OS X.

This is a presumption, but since all other products made by Paul's
company now have been ported to the mac, the ARM's the last one left to do.

Paul, should you be reading this, do I assume right?

___________________________________________________________
Der fre Vogel fgt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de

Hi,

> > Is anybody developing for the LPC2xxx family using:
> > - Eclipse
> > - openOCD JTAG from Olimex
> > - MAC OS X
> An alternative would be contacting Paul Curtis about the presumed
> release of Crossworks for ARM 2.0 - which then would be also available
> on Mac OS X.
>
> This is a presumption, but since all other products made by Paul's
> company now have been ported to the mac, the ARM's the last one left to
do.
>
> Paul, should you be reading this, do I assume right?

CrossWorks for ARM is currently working on Mac OS X, yes. Some customers
have access to the daily builds of V2. However, as the ARM version of our
software is significantly more intricate (in certain respects) than the
other products, it's not possible to introduce V2 ARM at the same time as
other products.

V2 for ARM will support FTDI JTAG devices just like the Linux V1 compilers
do.

Regards,

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

Ahahaha...

My Olimex JTAG is already setup as described in the link you
specified, thanks though. This link does not explain how to install
the debugger and generate the executable. This is exactly what I am
after.

Thanks,
Jean

On 13-Feb-09, at 3:06 AM, FreeRTOS.org Info wrote:

> > Hi,
> >
> > Is anybody developing for the LPC2xxx family using:
> > - Eclipse
> > - openOCD JTAG from Olimex
> > - MAC OS X
> >
> > If so, how do you setup your environment?
>
> First....create a Windoze partition.
>
> Or, fire up Google:
> http://forum.sparkfun.com/viewtopic.php?t23
>
> Regards,
> Richard.
>
> + http://www.FreeRTOS.org
> Designed for Microcontrollers. More than 7000 downloads per month.
>
> + http://www.FreeRTOS.org/Documentation
> FreeRTOS eBook - a hands on step by step guide.
>



Thanks for the heads up, crossworks is a commercial solution though. I
understand it is relatively cheap, though I am really looking for
something free to use for any type of applications. Eclipse, openOCD
are perfect for this.
On 13-Feb-09, at 4:24 AM, haare_in_der_dusche wrote:

> > Is anybody developing for the LPC2xxx family using:
> > - Eclipse
> > - openOCD JTAG from Olimex
> > - MAC OS X
>
> An alternative would be contacting Paul Curtis about the presumed
> release of Crossworks for ARM 2.0 - which then would be also available
> on Mac OS X.
>
> This is a presumption, but since all other products made by Paul's
> company now have been ported to the mac, the ARM's the last one left
> to do.
>
> Paul, should you be reading this, do I assume right?
>
> __________________________________________________________
> Der fre Vogel fgt den Wurm. Hier gelangen Sie zum neuen Yahoo!
> Mail:http://mail.yahoo.de
>



Hi,

> Thanks for the heads up, crossworks is a commercial solution though. I
> understand it is relatively cheap, though I am really looking for
> something free to use for any type of applications. Eclipse, openOCD
> are perfect for this.

I'm sure there would be members interested in the solution, should you find
one.

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

> Ahahaha...
>
> My Olimex JTAG is already setup as described in the link you
> specified, thanks though. This link does not explain how to
> install the debugger and generate the executable. This is
> exactly what I am after.

Installing the debugger:

Normally Eclipse is just setup to use GDB, so if you have the GNU tools
already working then the debugger will be installed, its just a matter of
hooking it into Eclipse (and making sure its in you path). To do this you
need the "remote debugging" capability added to your Eclipse installation.
There are instructions here http://www.freertos.org/Eclipse.html to do this
for older Eclipse versions, the latest versions have this as part of the
standard CDT installation so you may find its there already.

Next you need to be able to launch the debugger which involves setting up a
Debug Configuration. If you can find the menu item (in the debug
perspective) then its just a matter of filling in the blanks, provided you
know how to setup OpenOCD scripts.

Here is a really old article that discusses (at its end) CrossWorks and
Eclipse.
http://www.elektronikpraxis.vogel.de/fileserver/vogelonline/files/419.pdf
(http://www.elektronikpraxis.vogel.de/themen/embeddedsoftwareengineering/imp
lementierung/articles/89587/ for the German version). Things have moved on
a long way since then though.
Generating the Executable:

If you can build your project using a makefile then you can build it in
Eclipse. Just create a "standard makefile" project and point it at the
right makefile. You can also use managed make, but personally I stick to
makefiles as managed make requires your source code to be organised in a
non-productive/non-optimal way.
The easiest thing to do is start with a preconfigured project (like the ones
in the FreeRTOS.org download), then just modify it to tailor it to your
needs. Eclipse has a bit of a learning curve.
Regards,
Richard.

+ http://www.FreeRTOS.org
Designed for Microcontrollers. More than 7000 downloads per month.

+ http://www.FreeRTOS.org/Documentation
FreeRTOS eBook - a hands on step by step guide.

FreeRTOS.org Info wrote:
> You can also use managed make, but personally I stick to makefiles as
> managed make requires your source code to be organised in a
> non-productive/non-optimal way.

I've been using managed make for quite a while now (using the internal
builder), without noticing any real restrictions on code organisation --
care to elaborate?

Pete
Thanks for the detailed answer Richard.

It;s interesting you have a instructions available on the FreeRTOS
website on how to setup Eclipse... I've been considering at using
FreeRTOS on LPC uC for a long time now, and this may be the perfect
occasion to get into it.

Jean

--- In l..., "FreeRTOS.org Info"
wrote:
>
> > Ahahaha...
> >
> > My Olimex JTAG is already setup as described in the link you
> > specified, thanks though. This link does not explain how to
> > install the debugger and generate the executable. This is
> > exactly what I am after.
>
> Installing the debugger:
>
> Normally Eclipse is just setup to use GDB, so if you have the GNU
tools
> already working then the debugger will be installed, its just a
matter of
> hooking it into Eclipse (and making sure its in you path). To do
this you
> need the "remote debugging" capability added to your Eclipse
installation.
> There are instructions here http://www.freertos.org/Eclipse.html
to do this
> for older Eclipse versions, the latest versions have this as part
of the
> standard CDT installation so you may find its there already.
>
> Next you need to be able to launch the debugger which involves
setting up a
> Debug Configuration. If you can find the menu item (in the debug
> perspective) then its just a matter of filling in the blanks,
provided you
> know how to setup OpenOCD scripts.
>
> Here is a really old article that discusses (at its end)
CrossWorks and
> Eclipse.
>
http://www.elektronikpraxis.vogel.de/fileserver/vogelonline/files/419
.pdf
>
(http://www.elektronikpraxis.vogel.de/themen/embeddedsoftwareengineer
ing/imp
> lementierung/articles/89587/ for the German version). Things have
moved on
> a long way since then though.
> Generating the Executable:
>
> If you can build your project using a makefile then you can build
it in
> Eclipse. Just create a "standard makefile" project and point it
at the
> right makefile. You can also use managed make, but personally I
stick to
> makefiles as managed make requires your source code to be
organised in a
> non-productive/non-optimal way.
> The easiest thing to do is start with a preconfigured project
(like the ones
> in the FreeRTOS.org download), then just modify it to tailor it to
your
> needs. Eclipse has a bit of a learning curve.
> Regards,
> Richard.
>
> + http://www.FreeRTOS.org
> Designed for Microcontrollers. More than 7000 downloads per month.
>
> + http://www.FreeRTOS.org/Documentation
> FreeRTOS eBook - a hands on step by step guide.
>


Memfault Beyond the Launch