Automated nRF5284 DFU via USB using python

Hello,

I am trying to write a python script that performs a DFU on a nRF52840 so I can change its firmware without pressing any button. I think I have to use the pyusb module to be able to communicate with my nRF52840 and trigger its bootloader mode (I also heard about the DFU trigger library but I don't know if I can use it in python). Am I on the right way ?

My issue is an error I encounter and I am not able to resolve : "usb.core.NoBackendError: No backend available". I installed libusb (with pip) and my nRF52840 is connected to my computer. I work on WSL (Ubuntu). Do anyone know what's wrong here ?

Thanks,

Robin

Parents
  • Hi there,

    The trigger library is meant for the dongle, you can Build/compile with it in your program to do some DFU ,bootloader tricks.

    exactly what you want, your python automation would handshake with the dongle to set DFU mode , Upload the new code and it would reset on completion, other options can make it stop and wait on reboot for a do over or boot the app.

    HTH

    GL :-) PJ :v:

Reply
  • Hi there,

    The trigger library is meant for the dongle, you can Build/compile with it in your program to do some DFU ,bootloader tricks.

    exactly what you want, your python automation would handshake with the dongle to set DFU mode , Upload the new code and it would reset on completion, other options can make it stop and wait on reboot for a do over or boot the app.

    HTH

    GL :-) PJ :v:

Children
No Data
Related