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

Related