Page 1 of 1

Chibios with Gnu ARM Eclipse question (Newbie)

Posted: Thu Jun 11, 2015 6:58 pm
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!

Re: Chibios with Gnu ARM Eclipse question (Newbie)

Posted: Thu Jun 11, 2015 7:16 pm
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

Re: Chibios with Gnu ARM Eclipse question (Newbie)

Posted: Thu Jun 11, 2015 7:17 pm
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

Re: Chibios with Gnu ARM Eclipse question (Newbie)

Posted: Thu Jun 11, 2015 9:42 pm
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

Re: Chibios with Gnu ARM Eclipse question (Newbie)

Posted: Thu Jun 11, 2015 9:46 pm
by Giovanni
Hi,

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

Giovanni

Re: Chibios with Gnu ARM Eclipse question (Newbie)

Posted: Fri Jun 12, 2015 7:05 pm
by lavincio
That solved it! Thank you!