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

compile error of DFU with nRF52832

Hello,

I am using 14.0.1 sdk, and hope to use DFU (Secure bootloader), I am trying to use buttonless app in my app (uart example app), when copying some codes related with DFU function as follows, I have one error : Fatal Error[Pe1696]: cannot open source file "nrf_dfu_svci.h" C:\working_dir\yps-202n\nRF5_SDK_14.1.0_1dda907\components\ble\ble_services\ble_dfu\ble_dfu_bonded.c 45

I tried to add some codes in compiler as follows, but the error is happened. please help to let me know what I should do in order to solve this issue,

: add ble_dfu.c , ble_dfu_bonded.c and ble_dfu_unbonded.c in nRF_DFU folder, add nrf_dfu_svci.h in nRF_SVC folder,

thankful for your support in advance,

thanks.

Parents
  • The NRF_SDH_BLE_VS_UUID_COUNT macro defines the number of vendor-specific UUIDs. If I were you, I would take a look at the services tutorial to get a better understanding of custom services & characteristics. Basically, for every custom service & characteristic, you need to define a custom 128-bit UUID, also called the vendor specific UUID. So figure out how many custom services & characteristics you are defining & set NRF_SDH_BLE_VS_UUID_COUNT to the number of custom services & characteristics. What is the minimum value you can set NRF_SDH_BLE_VS_UUID_COUNT to make the DFU work without any errors?

Reply
  • The NRF_SDH_BLE_VS_UUID_COUNT macro defines the number of vendor-specific UUIDs. If I were you, I would take a look at the services tutorial to get a better understanding of custom services & characteristics. Basically, for every custom service & characteristic, you need to define a custom 128-bit UUID, also called the vendor specific UUID. So figure out how many custom services & characteristics you are defining & set NRF_SDH_BLE_VS_UUID_COUNT to the number of custom services & characteristics. What is the minimum value you can set NRF_SDH_BLE_VS_UUID_COUNT to make the DFU work without any errors?

Children
Related