9 years ago.

GCC4MBED indexing in Eclipse

Hello folks.

I tried installing Eclipse with the GCC4MBED. i got everything working except for the indexer. Even if i include the external/mbed folder it doesnt recognize the libraries. Anyone of experienced this ? :/

i already added the paths in "Path and Symbols".

Thanks in advance.

1 Answer

8 years, 10 months ago.

im not sure how the structure of the files looked before, but now at rev. 100.

for example, i use STM's Nucleo-l152re, so the headers the indexer needs are all located under "./external/mbed/libraries/"

so begin with the mbed api add "<gcc4mbed>/external/mbed/libraries/mbed/api" as a include folder, that should take care of most of the symbols needed.

then you probably use the pin names... add "<gcc4mbed>/external/mbed/libraries/mbed/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE"

but you ofcourse have to add the target that you work with, that should give you a bit to work with, using the mbed api...

ofcourse theres a s*itload of more includes, if you wanna include everything, just do a search on folders under "external/mbed/libraries" that holds "*.h" files and go through everything.. but i would recomend that you do that when you get the need to include something else you need like rtos or whatever other lib..