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

nRF52 merging example BLE periperal with pheriperal Issue in the make file inclusion

Hi everybody.

I'm margin two different projects:

examples\peripheral\usbd_hid_generic

with

examples\ble_peripheral\ble_app_hids_keyboard

but, using the make file, i found a problem.

I have to deletle this file,
nRF5_SDK_17.0.2_d674dde\components\drivers_nrf\nrf_soc_nosd\nrf_error.h

otherwise it will be included with-out the correctversion:

nRF5_SDK_17.0.2_d674dde\components\softdevice\s140\headers\nrf_error.h

There is other way to sove this problem?

Best regards,

Alberto

  • Hi,

    You should remove the path to "components\drivers_nrf\nrf_soc_nosd" from include folders in your Makefile when building a project that includes the softdevice, this is only needed for some non-softdevice projects.

      $(SDK_ROOT)/components/drivers_nrf/nrf_soc_nosd \

    Best regards,
    Jørgen

  • Tanks a lot for your quick response.

    The examples\peripheral\usbd_hid generic require this directory in his makefile.
    So, i cann not remote from my list of inclusion.

  • Alberto Favero said:
    The examples\peripheral\usbd_hid generic require this directory in his makefile.

    Yes, because this example uses functions that is normally implemented in the softdevice, but the example itself does not use/include the softdevice.

    Alberto Favero said:
    So, i cann not remote from my list of inclusion.

    Since you are merging the example with an example that includes the softdevice, the functions are provided by the softdevice. You can therefor remove this path.

    You should also remove the following two source files from your merged Makefile:

      $(SDK_ROOT)/components/drivers_nrf/nrf_soc_nosd/nrf_nvic.c \
      $(SDK_ROOT)/components/drivers_nrf/nrf_soc_nosd/nrf_soc.c \

Related