Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Compiling code for ARM in Ubuntu

Status
Not open for further replies.

shanky07

Newbie level 5
Newbie level 5
Joined
Mar 29, 2013
Messages
10
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,378
Hello friends

I am working on LPC2148. I am trying to compile a code for LPC2148 in linux. I am using ubuntu 12.04.But as I am not much aware of linux I am unable to compile it.
Do I need any extra toolchains to compile? if yes then which toolchain I should use? Is there any site where I can get example
codes.

Thanks in Advance.
 

Hello friends

I am working on LPC2148. I am trying to compile a code for LPC2148 in linux. I am using ubuntu 12.04.But as I am not much aware of linux I am unable to compile it.
Do I need any extra toolchains to compile? if yes then which toolchain I should use? Is there any site where I can get example
codes.

Thanks in Advance.

You need to get a cross compiler for the arm.
I am using arm-none-eabi-gcc
You can check out https://github.com/esden/summon-arm-toolchain
It is a shell script which will automate the build...

Also I think you will get direct binaries from the synaptic (not sure)...
 
  • Like
Reactions: yura717

    yura717

    Points: 2
    Helpful Answer Positive Rating
You need to get a cross compiler for the arm.
I am using arm-none-eabi-gcc
You can check out https://github.com/esden/summon-arm-toolchain
It is a shell script which will automate the build...

Also I think you will get direct binaries from the synaptic (not sure)...


Thank You vinodstanur for reply

When I post this thread i gooled and I found one link in which a command for installing cross compiler was mentioned. It was something like this
sudo apt-get install gcc-arm-linux-gnueabi

Is it the same that you are talking about ?

I found this command on "https://askubuntu.com/questions/65630/installing-gnu-arm-toolchain"
 

gcc-arm-linux-gnueabi is for linux on arm.
Here you need to get a cross compiler for bare metal, means there is no operating system running on the chip.
So it will be none-eabi-gcc..

If you have a good internet connection, then that summon arm shell script will work fine... It will automatically do all the downloading and building the tool chain...
 

gcc-arm-linux-gnueabi is for linux on arm.
Here you need to get a cross compiler for bare metal, means there is no operating system running on the chip.
So it will be none-eabi-gcc..

If you have a good internet connection, then that summon arm shell script will work fine... It will automatically do all the downloading and building the tool chain...
Or download Sourcery CodeBench Lite Edition (EABI Release) from https://www.mentor.com/embedded-software/sourcery-tools/sourcery-codebench/editions/lite-edition/
 


Dear friends

Thanks for your help
I have successfully installed the cross-compiler and gone through few basics of it.
But I am still facing some problems in writing code for arm lpc2148 in linux is there any reference code or study material availbla from which i can clear my baisics and write a simple code e.g.blinking led or uart,
Please help.

Thanks in advance
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top