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

buttonless DFU integration in BLE app uart example: compiling problem

I'm trying to integrate buttonless DFU in BLE app uart example. I added the file: ble_dfu.c, ble_dfu_bonded.c, ble_dfu_unbonded.c in the project. I added the following folder:

C:\Nordic_Semi\nRF5_SDK_15.0.0_a53641a\components\libraries\svc

C:\Nordic_Semi\nRF5_SDK_15.0.0_a53641a\components\libraries\bootloader\dfu

C:\Nordic_Semi\nRF5_SDK_15.0.0_a53641a\components\libraries\bootloader

C:\Nordic_Semi\nRF5_SDK_15.0.0_a53641a\components\ble\ble_services\ble_dfu

C:\Nordic_Semi\nRF5_SDK_15.0.0_a53641a\components\libraries\bootloader\ble_dfu

in Preprocessor->User include Directories (in Options of the project). I'm using segger embedded studio.

I've got several compilation errors:

2> C:\Nordic_Semi\nRF5_SDK_15.0.0_a53641a\components\ble\ble_services\ble_dfu\ble_dfu_unbonded.c:61:55: error: unknown type name 'nrf_dfu_set_adv_name_svci_async_t'
2> C:\Nordic_Semi\nRF5_SDK_15.0.0_a53641a\components\ble\ble_services\ble_dfu\ble_dfu_unbonded.c:61:77: error: unknown type name 'nrf_dfu_adv_name_t'
2> c:\nordic_semi\nrf5_sdk_15.0.0_a53641a\components\libraries\svc\nrf_svci_async_function.h:174:35: error: request for member 'sys_evt_handler' in something not a structure or union
2> c:\nordic_semi\nrf5_sdk_15.0.0_a53641a\components\libraries\svc\nrf_svci_async_function.h:174:85: error: request for member 'state' in something not a structure or union
2> c:\nordic_semi\nrf5_sdk_15.0.0_a53641a\components\libraries\svc\nrf_svci_async_function.h:179:36: error: request for member 'async_func' in something not a structure or union
2> c:\nordic_semi\nrf5_sdk_15.0.0_a53641a\components\libraries\svc\nrf_svci_async_function.h:180:32: error: request for member 'sys_evt_handler' in something not a structure or union
2> C:\Nordic_Semi\nRF5_SDK_15.0.0_a53641a\components\ble\ble_services\ble_dfu\ble_dfu_unbonded.c:67:8: error: unknown type name 'nrf_dfu_adv_name_t'
2> C:\Nordic_Semi\nRF5_SDK_15.0.0_a53641a\components\ble\ble_services\ble_dfu\ble_dfu_unbonded.c:78:30: error: unknown type name 'nrf_dfu_adv_name_t'
2> C:\Nordic_Semi\nRF5_SDK_15.0.0_a53641a\components\ble\ble_services\ble_dfu\ble_dfu_unbonded.c:283:34: error: request for member 'name' in something not a structure or union
2> C:\Nordic_Semi\nRF5_SDK_15.0.0_a53641a\components\ble\ble_services\ble_dfu\ble_dfu_unbonded.c:284:27: error: request for member 'len' in something not a structure or union
Build failed

There is a guide or an application note that explains the several steps needed to integrate buttonless DFU to a custom application???

Parents Reply Children
No Data
Related