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

Dual Bootloader -- DFU (BLE) + UART?

Wondering if there are any example/reference implementations of a bootloader for the nRF51822 that support Device Firmware Update over both UART and BLE? We've got the BLE stuff working well, but would like to make sure that we've got UART for those that might not have a compatible BLE SmartPhone.

Thanks!

Parents
  • Hi Tim,

    We provided both solutions, UART and BLE. However, they are separated project and are not made to work together initially.

    You may have to modify the source code to allow end customer to choose which type of transportation they want to use, switching a button for example.

    There would be some work needed to combine the 2 projects, but I don't think it would be very difficult.

  • @Arepa: The newer DFU bootloader made it even easier to have multiple transport layers when doing DFU. I haven't tried myself, but as I can see in the nrf_dfu_transport.c , all transport layers will be initialized via the use of dfu_trans section. So any transport layer that registered with DFU_TRANSPORT_REGISTER() will be used.

    What you can do is to simply include both nrf_ble_dfu.c and nrf_serial_dfu.c to test.

    Let me know if you face any trouble.

  • Hi Hung Bui, In nRF52832,  SDK13.0.0, I just want combine BLE DFU and serial DFU in one project, when I add nrf_ble_dfu.c into bootloader_secure_serial demo, and modify some configuration items in sdk_config.h to support ble DFU. However, in combined project , BLE DFU can success, but serial DFU can't. Could you help me solve the problem?

    thank you very much.

Reply
  • Hi Hung Bui, In nRF52832,  SDK13.0.0, I just want combine BLE DFU and serial DFU in one project, when I add nrf_ble_dfu.c into bootloader_secure_serial demo, and modify some configuration items in sdk_config.h to support ble DFU. However, in combined project , BLE DFU can success, but serial DFU can't. Could you help me solve the problem?

    thank you very much.

Children
No Data
Related