Hi, after using the nRF SDK examples with SES for some time now, I decided to go with a project from scratch but for some strange reason the directory where I keep the nRF SDK is not recognized by Segger Studio.
After trying to figure out what on earth I do wrong I decided to ask for some help...
The steps that I follow fare
----Create New Project----
1. Create new Project and define the project file directory and project name for a C/C++ executable for nRF
2. Select the target processor as nRF52840
3. I leave the defaults for the included files and press Finish
----Set Project Files----
4. To check that the project is created correctly I copy the main.c code from the Blinky example (blank configuration)
5. I create a macro for the nRF SDK folder in tools > Options > Building > Global Macros and I place the SDK path to nRF5SDK macro (nRF5SDK=C:/NordicSemi/nRF5_SDK_17.0.2_d674dde).
6. In project items I import 1) the sdk_config.h for nRF52840 from the SDK config folder 2) the boards.c also from the nRF SDK
7. In project options > preprocessor tab (common configuration) > In preprocessor definitions I add BOARD_PCA10056
8. In project options > preprocessor tab (common configuration) > In user include directories I add the following SDK paths by using the previously created macro nRF5SDK
$(ProjectDir)/nRF/Device/Include . $(nRF5SDK)/components/libraries/util $(nRF5SDK)/components/drivers_nrf/nrf_soc_nosd $(nRF5SDK)/integration/nrfx $(nRF5SDK)/modules/nrfx $(nRF5SDK)/modules/nrfx/hal $(nRF5SDK)/modules/nrfx/mdk $(nRF5SDK)/components/boards $(nRF5SDK)/components/libraries/delay
----Test the code from Blinky example----
9. I save the changes and then I copy the blinky example main.c code in my project main.c
10. When I compile the project, delay.h boards.h files cannot be found by the compiler. Also when I erase the #include "nrf_delay.h" for example and I try to write it again, editor does not recognize (autocomplete) the header file as it does with the files located in the project's directory folder files... Why?
What am I doing wrong here...?
If any ideas please share
Thank you for your time