nRF Connect SDK v2.6.1 DFU
1. 参考:Add DFU support to your application
Add DFU support to your application
首先我们使用SDK v2.6.1新建一个project,请根据上述链接中的配置工程。
DFU over Bluetooth
Modify the Peripheral LBS sample
重点:
#Enable MCUBOOT bootloader build in the application
CONFIG_BOOTLOADER_MCUBOOT=y
#Include MCUMGR and the dependencies in the build
CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU=y
以上使用NRF52840DK 测试通过。
2. 配置原有的旧porject
因为我们的project是 SDK v2.1.0 版本的,SDK v2.6.1的DFU配置已经变化了很多,所以我们根据第一步参考的配置移植。
有关