This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Setup Eclipse/GCC for C++ and mbed project debugging

Hi All,

I would like to setup my Eclipse and GCC for compiling and debugging C++ & mbed projects on nRF51 DK. The setup procedure explained in tutorial Development with GCC and Eclipse supports only Nordic SDK examples.

Is there a procedure or workaround to get this support C++ & mbed projects as well?

Hi Micheal and Vidhar,

I'm trying to setup my Eclipse environment with GCC to include C++ files at present. I have modified the blinky example Makefile from the tutorial Development with GCC and Eclipse to include C++ files

But, I'm getting the below error

make[1]: *** No rule to make target `_build/system_nrf51.o', needed by `nrf51422_xxac_s110'.  Stop.
make: *** [all] Error 2

Can you please have a look at my make file and tell me what I'm doing wrong. I'm pretty novice to GNU Make.

Thank you very much

makefile_cpp.mak

Parents
  • Hey, I only debugged an mbed application once and it was about a year ago. But maybe this will help. If I remember correctly you can convert an mbed project to a Keil project, and then compile and debug in Keil. I'm guessing Keil isn't an option either because of platform or code limit for free version. And setting up eclipse and GCC and debugging is a huge pain, and doing it with an mbed project sounds like a nightmare.

    Try this. Convert the mbed project to a keil project. Follow this blog post I just made and import that keil project into Segger Embedded Studio (free IDE that uses the GCC compiler but has great debugging features). Now compile and debug the application from here. devzone.nordicsemi.com/.../

    This is the best workaround I can think of and keep in mind I am no expert with mbed

Reply
  • Hey, I only debugged an mbed application once and it was about a year ago. But maybe this will help. If I remember correctly you can convert an mbed project to a Keil project, and then compile and debug in Keil. I'm guessing Keil isn't an option either because of platform or code limit for free version. And setting up eclipse and GCC and debugging is a huge pain, and doing it with an mbed project sounds like a nightmare.

    Try this. Convert the mbed project to a keil project. Follow this blog post I just made and import that keil project into Segger Embedded Studio (free IDE that uses the GCC compiler but has great debugging features). Now compile and debug the application from here. devzone.nordicsemi.com/.../

    This is the best workaround I can think of and keep in mind I am no expert with mbed

Children
Related