This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

"LEDS_NUMBER" couldn't be solved in Eclipse on SDK12

I used to develop based on sdk11 in Eclipse, EVERYTHING works fine. But now I am trying the sdk 12.2.0, in the blinky example, "LEDS_NUMBER" couldn't be solved, but the project can be successfully built. image description

"LEDS_NUMBER" is defined in "pca10040.h", so I guess Eclipse didn't include it. I manually included "pca10040.h", it worked. But I want to know why? I think since the main.c included "board.h" and "board.h" will include"'pca10040.h" automatically, right?
I guess there must be something wrong with Eclipse, could anyone give me some hints to solve this issue?

Update:
I think this post demonstrated the same issue, I followed the answer, it did work. But some source files I imported still have something "couldn't be solved".

image description

For example in "app_timer.c" :image description

"NRF_RTC1" is defined in "nrf52.h", so this means Eclipse also didn't include "nrf52.h"? And this is just one example, there could be other header files which are not included by Eclipse.

Many thanks.

Related