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

Question about modify header file

Hello I have some question about Keil uVision and Nordic Semiconductor SDK.

My development platform is Keil uVision v5 and my target board is nRF51-DK

I've studied many examples by using Pack Installer in Keil

Now I want to make my custom ble peripheral device by using nRF51-DK and Keil

I want to modify some header files for example ble_gatts.h

but It's locked that I cannot modify.

And If I tried to insert my custom header file, always be error, cannot find "custom.h"

Is there any good documentation or webpage for making custom project by using Keil?

And my second question is, when I download nrf51-ble-app-lbs from github, but it cannot be built.

how to build and execute in my board? It's impossible in nRF51-DK?

Parents
  • The reason why they are locked is because they are part of the pack system, and if you change them they will be changed in all other projects that include those files.

    The point of using packs is to have a manager for the libraries and drivers used in the SDK, and you should not really change these files. If you still want to be able to edit the libraries and drivers I would recommend using the SDK without the package manager. You can find the zip-file here: developer.nordicsemi.com/.../

    If you want to make your own custom BLE service on the other hand, you can create a custom.h file and custom.c file. Make sure the include path for the .h file is defined under the C/C++ fan in Options. You also need to add the .c file to the project. Right click on the Application folder in the project tree and click 'Add New Item to .... '

    We have this "LED/Button" example, github.com/.../nrf51-ble-app-lbs, that shows how to create custom services. The process is described in the application note nAN-36, which you can find here.

Reply
  • The reason why they are locked is because they are part of the pack system, and if you change them they will be changed in all other projects that include those files.

    The point of using packs is to have a manager for the libraries and drivers used in the SDK, and you should not really change these files. If you still want to be able to edit the libraries and drivers I would recommend using the SDK without the package manager. You can find the zip-file here: developer.nordicsemi.com/.../

    If you want to make your own custom BLE service on the other hand, you can create a custom.h file and custom.c file. Make sure the include path for the .h file is defined under the C/C++ fan in Options. You also need to add the .c file to the project. Right click on the Application folder in the project tree and click 'Add New Item to .... '

    We have this "LED/Button" example, github.com/.../nrf51-ble-app-lbs, that shows how to create custom services. The process is described in the application note nAN-36, which you can find here.

Children
Related