This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

ble_radio_notification.h import problem

Hi,

I am trying to work with ble_radio_notification.h. When I import this file to my main.c, I have "No such file or directory error". When I try to add it to nRF_BLE folder manually, Keil shows me that it already exists and I can not add it. In addition, it is not shown in my project tree. I am using SDK 11, Keil, nRF51 DK and s130 softdevice. Changes are made on top of example code. How can I solve this problem? Is it a bug or I am doing something wrong?

Parents
  • ble_radio_notification_init is implemented in ble_radio_notification.c. Did you add this file to your project? The only three things you should need to do is:

    • In Keil, go to Project -> Options for target In the C/C++ tab, add `............\components\ble\ble_radio_notification to the include path
    • Include ble_radio_notification.h to the project by writing #include "ble_radio_notification.h" near the top of the main.c file in the project
    • In Keil, right click on nRF_BLE group and select Add existing files to group 'nRF_BLE'. Navigate to [SDK_LOCATION]\components\ble\ble_radio_notification and add ble_radio_notification.c
Reply
  • ble_radio_notification_init is implemented in ble_radio_notification.c. Did you add this file to your project? The only three things you should need to do is:

    • In Keil, go to Project -> Options for target In the C/C++ tab, add `............\components\ble\ble_radio_notification to the include path
    • Include ble_radio_notification.h to the project by writing #include "ble_radio_notification.h" near the top of the main.c file in the project
    • In Keil, right click on nRF_BLE group and select Add existing files to group 'nRF_BLE'. Navigate to [SDK_LOCATION]\components\ble\ble_radio_notification and add ble_radio_notification.c
Children
Related