I am working on a project to move from the mbed platform, to some custom hardware. I am using the nRF51822 from Nordic. I have just exported my nRF51-DK project to GCC (ARM Embedded) and extracted it and opened it in Eclipse. It is not building however. I am getting an error code, saying

make: *** missing separator.  Stop.

Should it not be flash.c ? Is there anything else I was supposed to do, rather than just running it straight out of the box?

Here is my export screen - showing the options I have from Mbed

  • \$\begingroup\$ Are you exporting your mbed project as gnu GCC and then importing to Eclipse as gnu GCC project? \$\endgroup\$ – Fernando Luiz Cola Sep 4 '15 at 15:09
  • \$\begingroup\$ @FernandoLuizCola I exported as GCC (ARM Embedded) and in eclipse, "create new makefile project with existing code". \$\endgroup\$ – George Edwards Sep 4 '15 at 16:49
  • \$\begingroup\$ what OS you are using? \$\endgroup\$ – Fernando Luiz Cola Sep 4 '15 at 19:33
  • \$\begingroup\$ @FernandoLuizCola Mac OSX \$\endgroup\$ – George Edwards Sep 5 '15 at 20:29

I manage to compile a Mbed project in Eclipse. I used Kinetis Design Studio but i'm sure that you can use a normal version of Eclipse C/C++ as well.

I´ve downloaded my mbed project as GNU (Arm Embedded) imported the project to Eclipse as an Existing Code as Makefile Project.

Importing project

Configure the toolchain as Cross GCC

choosing cross compile

In the project properties, configure Make

Since I'm using Windows, I had to use the make binary from Cygwin

uncheck the Use default build command and past the path to your make binary.

configuring make

Add your compiler to the PATH. I used GCC ARM Embedded

adding compiler to the path

Build your project


I got two errors:

Program "g++" not found in PATH

Program "gcc" not found in PATH

But I guess this not a problem, just a minor configuration.

Hope it Helps!

| improve this answer | |
  • \$\begingroup\$ What does GNU GCC mean? I don't seem to have this option? See the new image in my question for my options. \$\endgroup\$ – George Edwards Sep 6 '15 at 11:12
  • \$\begingroup\$ Ah yes, the GCC(Arm Embedded) option of mbed is the GNU GCC that I mention ( just look at the GNU logo on the option =D ). I will fix this in my answer =D \$\endgroup\$ – Fernando Luiz Cola Sep 6 '15 at 11:56
  • \$\begingroup\$ I am using a Nordic target (nrf51822) does that change any of the make config steps? As I can see reference to the LPC family and freescale? \$\endgroup\$ – George Edwards Sep 7 '15 at 8:41
  • \$\begingroup\$ @GeorgeEdwards I don't think so. When you download the project from mbed as GCC (ARM Embedded) you can just compile it with a compiler and a make file. The project comes with all the target specific configuration from mbed. When you configure Eclipse ( or in my case Kinect Studio ) it will just use the make file and compile. \$\endgroup\$ – Fernando Luiz Cola Sep 8 '15 at 11:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.