# Exporting Mbed code to build with in Eclipse

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

[file:/Users/george/Downloads/project_1V0/nRF51822/source/nordic-sdk/components/drivers_nrf/ble_flash/ble_flash.c#1]nse/nRF51822/source/nordic-sdk/components/drivers_nrf/ble_flash/ble_flash.c:1
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?

• Are you exporting your mbed project as gnu GCC and then importing to Eclipse as gnu GCC project? – Fernando Luiz Cola Sep 4 '15 at 15:09
• @FernandoLuizCola I exported as GCC (ARM Embedded) and in eclipse, "create new makefile project with existing code". – George Edwards Sep 4 '15 at 16:49
• what OS you are using? – Fernando Luiz Cola Sep 4 '15 at 19:33
• @FernandoLuizCola Mac OSX – 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.

Configure the toolchain as Cross GCC

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.

I got two errors:

• What does GNU GCC mean? I don't seem to have this option? See the new image in my question for my options. – George Edwards Sep 6 '15 at 11:12