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

ble_app_template app_config greyed out

Hello,

I've been doing some work in the ble_app_template folder, using segger embedded studio. I've added a file called app_config.h, with the following code pasted below. The problem is, the #define section is greyed out. I've added the USE_APP_CONFIG in the options->common->preprocessor->preprocessor definitions.

In the sdk.config.h at the start the "app_config.h" file is not greyed out, and opening the declaration goes to the app_config.h file, so this shows that the preprocessor step is working. If I manually change  NRF_SDH_BLE_VS_UUID_COUNT in the sdk_config file, my application will work. This is because I have one custom service, which is why I'm trying to change it in the app_config file. Does anyone know what the problem is?

Parents
  • I suggest to copy the sdk_config.h to the project folder and modify that one directly. Your problem in this case is very likely that the sdk_config.h somehow first is included before the USE_APP_CONFIG define is evaluated. You could try to add a #define USE_APP_CONFIG at the top of sdk_config.h for test.

    Kenneth

Reply
  • I suggest to copy the sdk_config.h to the project folder and modify that one directly. Your problem in this case is very likely that the sdk_config.h somehow first is included before the USE_APP_CONFIG define is evaluated. You could try to add a #define USE_APP_CONFIG at the top of sdk_config.h for test.

    Kenneth

Children
No Data
Related