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

nRF52 project in Eclipse doesn't see makefile defines

Hey all,

I followed Vidar's excellent tutorial, and it works! I can compile without errors. However, when I try to walk through the project in Eclipse (the blinky example), a bunch of stuff is grayed out (for example:

#if LEDS_NUMBER > 0
static const uint8_t m_board_led_list[LEDS_NUMBER] = LEDS_LIST;
#endif

...is grayed out.

LEDS_NUMBER is defined in the makefile, and I followed the instructions for changing the CDT GCC Build Output Parser string. No joy.

If I define the LEDS_NUMBER explicitly in main.c, I get an error saying that it's been defined twice, because, well, it has been defined twice.

How do I make Eclipse see the makefile defines?

Parents Reply Children
No Data
Related