I have a project that is built on an SDK Template from Nordic for an nrf52840 chip.
Ses is on the latest version, i took the SDK 15.3 because its an older programm I'd like to update and expand and it was built on this SDK but in ecllipse.
So I started with the template under the path "localpath"\nRF5_SDK_15.3.0_59ac345\examples\ble_peripheral\ble_app_template\pca10056\s140\ses
building this worked fine.
I put all my project code into a src file witch I placed here "localpath"\nRF5_SDK_15.3.0_59ac345\examples\ble_peripheral\ble_app_template
I added all c files in the project with add existing file
I added all h file paths to project preproccesing under user included directories
I added all c and h files relating on bluetooth provided from Nordic in the folder "localpath"\nRF5_SDK_15.3.0_59ac345\examples\ble_peripheral\experimental\bluetoothds_template
and added this path as well to the preprocessing. The last four includes are made by my.
![](https://forum.segger.com/index.php/Attachment/3985-userIncludeDirectories-PNG/?thumbnail=1&s=6fe01f3c3e9e717942018570b2166f8f0c30c9de)
now i get an error in several files, that a h file whitch is present in "localpath"\nRF5_SDK_15.3.0_59ac345\examples\ble_peripheral\experimental\bluetoothds_template couldn't be found.
but an other file in same location is found and throws this error as well. (service_if.h)
![](https://forum.segger.com/index.php/Attachment/3986-bluetoothds-template-PNG/?thumbnail=1&s=6fe01f3c3e9e717942018570b2166f8f0c30c9de)
so what is wrong here? I don't have a clue!
I also try to use \ instead of / in the preprocessor include,
I tryed to copy the hole folder closer to project files and includ both path in preprocessing
this works a kind of... now it could find
#include "ble_lis2dh12_configuration_service.h"
#include "ble_nrf52840_configuration_service.h"
#include "ble_accelerometer_measurement_service.h"
the first of the include files, but drop the same error by 2nd include and all those fill are in the same folder...
very strange... it might help, if i put every h. file in a separate folder but this is not how it should work in my oppinion...
Correction : I checked, if somethin changes if i put every c and h file in its own folder, it gives me the same error message ( i added all path in preprocessor)
Thanks for all help I get here
Ses is on the latest version, i took the SDK 15.3 because its an older programm I'd like to update and expand and it was built on this SDK but in ecllipse.
So I started with the template under the path "localpath"\nRF5_SDK_15.3.0_59ac345\examples\ble_peripheral\ble_app_template\pca10056\s140\ses
building this worked fine.
I put all my project code into a src file witch I placed here "localpath"\nRF5_SDK_15.3.0_59ac345\examples\ble_peripheral\ble_app_template
I added all c files in the project with add existing file
I added all h file paths to project preproccesing under user included directories
I added all c and h files relating on bluetooth provided from Nordic in the folder "localpath"\nRF5_SDK_15.3.0_59ac345\examples\ble_peripheral\experimental\bluetoothds_template
and added this path as well to the preprocessing. The last four includes are made by my.
now i get an error in several files, that a h file whitch is present in "localpath"\nRF5_SDK_15.3.0_59ac345\examples\ble_peripheral\experimental\bluetoothds_template couldn't be found.
but an other file in same location is found and throws this error as well. (service_if.h)
so what is wrong here? I don't have a clue!
I also try to use \ instead of / in the preprocessor include,
I tryed to copy the hole folder closer to project files and includ both path in preprocessing
this works a kind of... now it could find
#include "ble_lis2dh12_configuration_service.h"
#include "ble_nrf52840_configuration_service.h"
#include "ble_accelerometer_measurement_service.h"
the first of the include files, but drop the same error by 2nd include and all those fill are in the same folder...
very strange... it might help, if i put every h. file in a separate folder but this is not how it should work in my oppinion...
Correction : I checked, if somethin changes if i put every c and h file in its own folder, it gives me the same error message ( i added all path in preprocessor)
Thanks for all help I get here
The post was edited 2 times, last by Martinboell ().