7 years, 1 month ago.

How to manually enter DFU mode in mbed OS5 ?

Is os5, I could use dfu_app_on_dfu_evt. However, it seems that this function is not available anymore in os5 ?

1 Answer

7 years, 1 month ago.

Hi Shay,

The DFU is being reworked in a branch: https://github.com/ARMmbed/mbed-os/tree/feature-nrf5_dfu_s13x_v2 . My best advice would is to wait for the branch to be integrated to mbed-os.

Regards,

Andrea, team mbed

Thanks Andrea. I guess I'll have to keep watching.

posted by Shay Ohayon 03 Feb 2017

Andrea, I hope you might be able to help me with something else in the mean while. It seems that there are some issues with OS2 and the latest mbed library. For example, compiling the example BLE_HeartRate fails when trying to deploy to NRF51_DK_BOOT with the following error: [DEBUG] Return: 1 [DEBUG] Output: In file included from ./ble_api/source/BLE.cpp:21:0: [DEBUG] Output: ./ble_api/ble/services/DFUService.h:26:29: fatal error: dfu_app_handler.h: No such file or directory [DEBUG] Output: compilation terminated. Traceback (most recent call last): File "/Users/shayo/mbed/OS2_Test/.temp/tools/make.py", line 293, in <module> toolchain)) File "/Users/shayo/mbed/OS2_Test/.temp/tools/build_api.py", line 493, in build_project resources.inc_dirs) File "/Users/shayo/mbed/OS2_Test/.temp/tools/toolchains/init.py", line 807, in compile_sources return self.compile_queue(queue, objects) File "/Users/shayo/mbed/OS2_Test/.temp/tools/toolchains/init.py", line 870, in compile_queue raise ToolException(err) ToolException: In file included from ./ble_api/source/BLE.cpp:21:0: ./ble_api/ble/services/DFUService.h:26:29: fatal error: dfu_app_handler.h: No such file or directory compilation terminated.

But compiles without a problem for target NRF51_DK. I'm referring to build 176b8275d35d with ble_api v2.7.0 ( 8d97fced5440d78c9557693b6d1632f1ab5d77b7)

posted by Shay Ohayon 03 Feb 2017