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

I want to insert a DFU module through BLE in my old ble project to upgrade my nrf5340 image

    i have look for many DFU examples in NCS1.5.0 , but samples are Abstract ,and can not to start . a ble test  app in phone have a menu that  can  send file to nrf5340 through ble ,  when ble of nrf5340 receive this file  ,file can as  a new image.

Parents
  • Simon,thank you very much!

    1. I have tried to merge peripheral_uart example and smp_svr example in one project , a ble service would do some ordinary work ,the other ble service will do DFU work , but failed .

    2. I have saw a DFU method of nrf52832 through ble . when nrf52832 receive a DFU command from a connected app in phone , nrf52832 first write 0x01 in flash (address is  0 ), then reset . in the reset period ,app in phone send a DFU file , nrf52832 automatically DFU.  program  in nrf52832 have no code about DFU,  only only only write 0x01 in address 0 flash ,  then reset .i am confusing this for sereral days  , and  just asked former engineer ,he said a DFU code have loaded in bootloader of nrf52832 . i do not know the process of this DFU and how to operate .DOES NCS1.5.0 have this method DFU nrf5340 like this?

    3.maybe can use a ble device name to register  two  ble services,  each service has it's own service connect node , it's own receive event handler, it's own send data function. but i am not skill to do this . example smp-svr own a ble service ,and example peripheral_uart own a ble service, and merge two example into one project .

Reply
  • Simon,thank you very much!

    1. I have tried to merge peripheral_uart example and smp_svr example in one project , a ble service would do some ordinary work ,the other ble service will do DFU work , but failed .

    2. I have saw a DFU method of nrf52832 through ble . when nrf52832 receive a DFU command from a connected app in phone , nrf52832 first write 0x01 in flash (address is  0 ), then reset . in the reset period ,app in phone send a DFU file , nrf52832 automatically DFU.  program  in nrf52832 have no code about DFU,  only only only write 0x01 in address 0 flash ,  then reset .i am confusing this for sereral days  , and  just asked former engineer ,he said a DFU code have loaded in bootloader of nrf52832 . i do not know the process of this DFU and how to operate .DOES NCS1.5.0 have this method DFU nrf5340 like this?

    3.maybe can use a ble device name to register  two  ble services,  each service has it's own service connect node , it's own receive event handler, it's own send data function. but i am not skill to do this . example smp-svr own a ble service ,and example peripheral_uart own a ble service, and merge two example into one project .

Children
Related