The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

Issue: Output: ./ble/ble/services/DFUService.h:26:29: fatal error: dfu_app_handler.h: No such file or directory

Trying to compile a basic heart rate demo with the latest mbed lib for nrf51822 crashes with the following error:

Output: ./ble/ble/services/DFUService.h:26:29: fatal error: dfu_app_handler.h: No such file or directory

Probably you guys forgot to include this:

./mbed/ad3be0349dc5/TARGET_NRF51_DK/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/dfu_app_handler.h

1 comment:

02 Feb 2017

Things appear to be broken even more than I thought :( Ways to reproduce the error:

mbed new test mbedlib mbed add nrf51822 mbed add ble cp main.cpp ...

So, trying to compile the attached program ( /media/uploads/shayo/main.cpp mbed compile -m NRF51_DK -t GCC_ARM -v results in the following error:

[DEBUG] Return: 1 [DEBUG] Output: In file included from ./nrf51822/source/nRF5xServiceDiscovery.h:22:0, [DEBUG] Output: from ./nrf51822/source/nRF5xGattClient.h:21, [DEBUG] Output: from ./nrf51822/source/nRF5xn.h:26, [DEBUG] Output: from ./nrf51822/source/btle/btle.cpp:30: [DEBUG] Output: ./nrf51822/source/nRF5xDiscoveredCharacteristic.h:21:22: fatal error: ble_gatt.h: No such file or directory [DEBUG] Output: compilation terminated.

While trying

mbed compile -m NRF51_DK_BOOT -t GCC_ARM -v

results in:

OOT/GCC_ARM/mbed_config.h -MD -MF ./BUILD/NRF51_DK_BOOT/GCC_ARM/ble/source/BLE.d -o ./BUILD/NRF51_DK_BOOT/GCC_ARM/ble/source/BLE.o ./ble/source/BLE.cpp [DEBUG] Return: 1 [DEBUG] Output: In file included from ./ble/ble/services/DFUService.h:26:0, [DEBUG] Output: from ./ble/source/BLE.cpp:21: [DEBUG] Output: /Users/shayo/mbed/ClimbTagR08_os2/mbed/ad3be0349dc5/TARGET_NRF51_DK/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/dfu_app_handler.h:64:21: fatal error: ble_dfu.h: No such file or directory [DEBUG] Output: #include "ble_dfu.h"

Can you please check what is going on? I just want to get a simple NRF51_DK_BOOT target and I keep getting these annoying errors. Thank you!