How do I add a DFU support for nRF Connect SDK in Linux

Hello, 

I'm using Linux (Ubuntu) and I would like to add a DFU support to my app.

Tried to follow Add DFU support to your application but it seems to me that some of the steps really focus on the sample they used in the article.

Additionally, I get an error when trying to add the includes described in the article, so I don't know how to proceed from here.

Advice and tips are welcome :)

Parents Reply
  • I will explain what I mean.

    For example, in the last two steps of the "DFU over bluetooth" section (shown below), it seems that these are things related to the sample "ble_dfu_peripheral_lbs" and I don't understand how to do it in any other sample (for example, I want to implement the DFU support it in the blinky sample).

    "

    • Remove the LBS Service UUID from the scan response packet, and replace it with the SMP service UUID:
      BT_DATA_BYTES(BT_DATA_UUID128_ALL,
      		      0x84, 0xaa, 0x60, 0x74, 0x52, 0x8a, 0x8b, 0x86,
      		      0xd3, 0x4c, 0xb7, 0x1d, 0x1d, 0xdc, 0x53, 0x8d),
    • Lastly, add these lines right before bt_conn_cb_register:
      printk("build time: " __DATE__ " " __TIME__ "\n");
      os_mgmt_register_group();
      img_mgmt_register_group();
      smp_bt_register();

    "

Children
Related