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

nrf52840 dongle and pc-ble-driver

Hi,

I'm trying to use the python bindings for pc-ble-driver with an NRF52840 dongle and I'm having trouble flashing the connectivity FW. I've used the bindings with an NRF51 dongle using nrfjprog and it works fine, but the new dongles don't have a programmer built in and use a serial interface instead.

I've tried using the DFU serial method to package the connectivity hex as an application but it doesn't seem to run correctly and I have to manually reset the dongle. I've also tried using nrf connect to flash the device but it does not allow flashing for hex files that write over more than one region. I split the hex file into two regions (soft device and application) and I can flash but the device still doesn't work.

I'm using connectivity_2.0.1_115k2_with_s132_5.0.hex

Is the dongle supported? If so, how do I configure it to use pc-ble-driver and be compatible with the python bindings?

Thanks,

Gabe

Parents Reply
  • I was able to get things working using these instructions on the nRF52840 Dongle.  However, I found that the dongle becomes unstable if I reset my script without disconnecting and closing the driver using adapter.driver.ble_gap_disconnect() and adapter.driver.close().  The only way to recover is to unplug/plug the dongle or reset using the nRF Connect Programmer.

    This same code works fine using a nRF52 DK, but seems to have shutdown/startup issues using the nRF52840 Dongle.  Any thoughts on how to fix so that the Dongle can work (without resetting) if the script doesn't disconnect and close nicely?

Children
Related