EmbDev.net

Forum: ARM programming with GCC/GNU tools Setup embedded work under Linux PC


von Raed A. (raedbenz)


Rate this post
useful
not useful
Hi,,,

I have an embedded board with ARM7 LPC uC and my new PC is with Linux OS
- Ubuntu80.04.
I need to start embedded work. What are my options for compilers,
debugger, IDE, etc.. to install them on Linux PC? bcoz till now I used
to work with KEIL under Windows.

NOTE: I am not doing Embedded Linux

Thanks
Raed

von Clifford S. (clifford)


Rate this post
useful
not useful
Raed Abu-sanad wrote:
> I need to start embedded work. What are my options for compilers,
> debugger, IDE, etc.. to install them on Linux PC? bcoz till now I used
> to work with KEIL under Windows.
>
> NOTE: I am not doing Embedded Linux

The obvious choice (and given the nature of this forum, the obvious
answer) is to use a GNU toolchain. Building a cross-toolchain from the
GNU source is not for the faint-hearted or impatient. A simpler (and
probably a safer) approach is to use a pre-build toolchain such as that
at http://www.codesourcery.com/gnu_toolchains/arm/portal/release567

The 'Lite' in the title refers to the fact that these are command line
tools only - no IDE. Also you will find that they are target agnostic,
you won't get target specific header files or I/O simulators and the
like as you might with Keil. The headers you can build yourself, or use
examples from Martin Thomas's WinARM tools.

If you want an IDE, then you could use Eclipse amongst others. If using
Eclipse I suggest that you use EasyEclipse for C/C++
http://www.easyeclipse.org/site/distributions/cplusplus.html . However
to make it a truly integrated environment for embedded systems rather
than just a text editor and SVN front-end, you need to tweak it to get
the debugger and Flash programming to work with your hardware. One way
to do that is described here:
http://www.eetasia.com/ARTICLES/2007JUN/PDF/EEOL_2007JUN01_EMS_INTD_TA.pdf


You may also find this useful
http://www.state-machine.com/arm/Building_bare-metal_ARM_with_GNU.pdf
The examples use an Atmel part, but much of it is relevant to the
LPC2xxx parts also (being an ARM7 core device). As always familiarity
with the user manual is essential. Free LPC2xxx specific information is
available at http://www.hitex.co.uk/download.html (select the "Insider's
Guides" link in the side-bar).

Of course you might find that the Keil tools run under WINE or you could
install Windows on a Virtual Machine.

Clifford

von Raed A. (raedbenz)


Rate this post
useful
not useful
Hi Clifford

thanks for ur reply.
i just got eclipse on my Ubuntu PC.
could u please post an LED_blinking code (with the required headers,
makefiles, etc..)to be compiled on eclipse Linux, for ARM 23xx uC.

thanks

von Clifford S. (clifford)


Rate this post
useful
not useful
Raed Abu-sanad wrote:
> Hi Clifford
>
> thanks for ur reply.
> i just got eclipse on my Ubuntu PC.
> could u please post an LED_blinking code (with the required headers,
> makefiles, etc..)to be compiled on eclipse Linux, for ARM 23xx uC.
>
> thanks

The target is the target. The host makes no difference to the target
code, so you can use the examples provided with the WinARM tools for
example. Or any of the projects at
http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects/

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.