GNU Tools ARM in Eclipse

Asked by Yohannes Budiono Jinawi

Hi,

Is there any tutorial about how to integrate this tools to Eclipse IDE? I tried using GNUARM for Eclipse plugins but no luck.

Thank you

Question information

Language:
English Edit question
Status:
Answered
For:
GNU Arm Embedded Toolchain Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Joey Ye (jinyun-ye) said :
#1

Hi, Yohannes,

I'm sorry we don't have tuorial in hand. Integrating GCC into Eclipse IDE
is a general practice, and we know people did that successfully. My best
suggest is to search for "GCC + Eclipse".

- Joey

On Thu, Jul 12, 2012 at 3:06 PM, Yohannes Budiono Jinawi <
<email address hidden>> wrote:

> New question #202914 on GCC ARM Embedded:
> https://answers.launchpad.net/gcc-arm-embedded/+question/202914
>
> Hi,
>
> Is there any tutorial about how to integrate this tools to Eclipse IDE? I
> tried using GNUARM for Eclipse plugins but no luck.
>
> Thank you
>
> --
> You received this question notification because you are an answer
> contact for GCC ARM Embedded.
>

Revision history for this message
Terry Guo (terry.guo) said :
#2

Hi Yohannes,

I just did a simple experiment and seems the Eclipse can work with our tool chain in Ubuntu without using any Eclipse plugins. Here are my brief steps:

1). Create a project whose "Project type" is Empty Project and "Toolchains" is Cross GCC.

2). Open the Properties window of this project and then click "Settings" under "C/C++ Build". In "Tool Settings" tab, choose "Cross Settings" and set the Path to the bin folder of the tool chain and set the Prefix to "arm-none-eabi-".

3). Still in Properties window, choose "Tool Settings" --> "Cross GCC Linker" --> "Libraries". Add your own libraries here. For example if I plan to use semi-hosting, I will add c library and rdimon library. Next, in the "Cross GCC Linker" --> "Miscellaneous", specify "-specs=rdimon.specs" in "Linker flags" field.

4). Back to the editor window and add a new .c file. Then "Build Project" and I got a successful build as below:

**** Build of configuration Debug for project test ****

make all
Building file: ../h.c
Invoking: Cross GCC Compiler
arm-none-eabi-gcc -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"h.d" -MT"h.d" -o "h.o" "../h.c"
Finished building: ../h.c

Building target: test
Invoking: Cross GCC Linker
arm-none-eabi-gcc -specs=rdimon.specs -o "test" ./h.o -lc -lrdimon
Finished building target: test

**** Build Finished ****

I am using Ubuntu 12.04 and Eclipse with version 3.7.2.

Hope this can give you some help. Please let us know if you have any questions related to tool chain.

BR,
Terry

Revision history for this message
IgorKossak (imah) said :
#3

Can you help with this problem?

Provide an answer of your own, or ask Yohannes Budiono Jinawi for more information if necessary.

To post a message you must log in.