Chibios with Gnu ARM Eclipse question (Newbie)

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
lavincio
Posts: 3
Joined: Mon Jun 08, 2015 7:44 pm

Chibios with Gnu ARM Eclipse question (Newbie)

Post by lavincio »

Hi guys, I am trying to learn Chibios/RTOS in general. I have GNU ARM Eclipse plugin in Windows 7 x64 and I tried to run the demo from ARMCM4-STM32F407-DISCOVERY directory.

I followed the instruction except in the toolchain where I chose Cross ARM GCC instead. (The one from GNU ARM Eclipse)

I run into the following error when I compile the code:

Code: Select all

**** Incremental Build of configuration Default for project ARMCM4-STM32F407-DISCOVERY ****
make all
Building file: C:/Users/lavincio/Desktop/ChibiOS_2.6.8/ChibiOS_2.6.8/test/coverage/main.c
Invoking: Cross ARM C Compiler
arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -O2  -g -std=gnu11 -MMD -MP -MF"test/coverage/main.d" -MT"test/coverage/main.o" -c -o "test/coverage/main.o" "C:/Users/lavincio/Desktop/ChibiOS_2.6.8/ChibiOS_2.6.8/test/coverage/main.c"
C:/Users/lavincio/Desktop/ChibiOS_2.6.8/ChibiOS_2.6.8/test/coverage/main.c:21:16: fatal error: ch.h: No such file or directory
 #include "ch.h"
                ^
compilation terminated.
make: *** [test/coverage/main.o] Error 1
test/coverage/subdir.mk:18: recipe for target 'test/coverage/main.o' failed


Could you tell me what I did wrong? Or are there anyone who has similar Eclipse config that could guide me on setting up the compiler?

Thanks!
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Chibios with Gnu ARM Eclipse question (Newbie)

Post by Giovanni »

Hi,

The problem with that project is that the paths for headers are not properly configured so the compiler does not find ch.h. There are a half dozen of paths to configure correctly, see the Makefile as a reference.

Giovanni
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Chibios with Gnu ARM Eclipse question (Newbie)

Post by Giovanni »

Just a note, you could download ChibiStudio and bypass all the problems with tooling until you are more expert, then switch to whatever tool you prefer.

Giovanni
lavincio
Posts: 3
Joined: Mon Jun 08, 2015 7:44 pm

Re: Chibios with Gnu ARM Eclipse question (Newbie)

Post by lavincio »

Hi Giovanni,

I downloaded preview 11 on my computer but I had Java error 13. I believe it's because I have Win7 64 bits so I moved preview 11 to a win7 32 bits machine but now when I try to debug (project built was successful) I received "launch failed. Binary not found". Am I missing something?

Ciao
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Chibios with Gnu ARM Eclipse question (Newbie)

Post by Giovanni »

Hi,

Try installing Java 32 bits too, I think Eclipse requires that.

Giovanni
lavincio
Posts: 3
Joined: Mon Jun 08, 2015 7:44 pm

Re: Chibios with Gnu ARM Eclipse question (Newbie)

Post by lavincio »

That solved it! Thank you!
Post Reply