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

Is there an nRF51822 DFU master source code ?

I'm trying to upload via DFU from one nRF51822 to another nRF51822 via DFU

The receiving side is not a problem as there there are loads of examples.

But I can't find any code where the nRF51822 acting in a central role sends data to a DFU device (another nRF51822)

Does anyone know if there is any source code for this ?

Parents
  • I am afraid that we do not have an example where another Nordic device that sends DFU data to another Nordic device.

    I think the closest thing we have is the nRF OpenMesh, but this uses a custom DFU implementation and not the Nordic DFU Service.

    If you want to use the Nordic DFU Service and the Nordic apps to perform the DFU, then you will have to create an application that forwards packets sent to the DFU Control Point and the DFU Packet characteristics.

    -Bjørn

  • Thanks Bjorn

    I think the DFU profile is what I was looking for. But I was hoping that there was an example of the master (central) side of this transfer.

    I will search the web e.g. github in case someone has already written some code to do this, as it looks very hard to debug. as I'd need to run debuggers on both the Master and Slave side

    (I have 2 JLink's but it would still not be easy to setup, as I suspect I would end up needing to use 2 difference PCs for debugging - one where the DFU bootloader code had been compiled and flashed and one where the master / central DFU code had been compiled)

    Perhaps I should look at the Android or iOS toolbox code, as this seems to be the only source code for the master / central side of things - even though I want that code to run on the nRF51822 its self

Reply
  • Thanks Bjorn

    I think the DFU profile is what I was looking for. But I was hoping that there was an example of the master (central) side of this transfer.

    I will search the web e.g. github in case someone has already written some code to do this, as it looks very hard to debug. as I'd need to run debuggers on both the Master and Slave side

    (I have 2 JLink's but it would still not be easy to setup, as I suspect I would end up needing to use 2 difference PCs for debugging - one where the DFU bootloader code had been compiled and flashed and one where the master / central DFU code had been compiled)

    Perhaps I should look at the Android or iOS toolbox code, as this seems to be the only source code for the master / central side of things - even though I want that code to run on the nRF51822 its self

Children
No Data
Related