adafruit / Adafruit_nRF52_Bootloader

USB-enabled bootloaders for the nRF52 BLE SoC chips
MIT License
427 stars 380 forks source link

nRF52840 USB Key as nRF Connect for Desktop BLE Adapter? #285

Closed nitz closed 1 year ago

nitz commented 1 year ago

Hello lovely people!

I've been toying with the nRF52840 USB Key lately and I've run into an interesting potential usage situation. In short, I want to be able to use it with Nordic's nRF Connect for Desktop BLE application.

I typically use their USB device with it... but I can't seem to find it in my lab. (I'm sure it's here somewhere...) So I thought "Well heck, I'll just give this adafruit/raytec bit a shot."

Obviously I didn't expect the nordic app to find/flash it (they use their own DFU USB updater to handle that,) but I did find that they publish hex files (and the non-softdevice patches) for the firmware that the desktop app expects to talk to: https://github.com/NordicSemiconductor/pc-ble-driver/tree/master/hex/sd_api_v6

I converted it to a UF2 and made sure that I had the same version of softdevice, but no joy; I'm sure there's some changes that would need to be changed, or maybe when I converted using 0xada52840 isn't what I should have used as the family I passed to uf2conv.py. (I thought to try 0xd663823c, but I didn't want to risk needing to pry this thing open without chatting with someone about it first.)

I later noticed @hathach using Nordic's sniffer app for this tutorial, so I thought this might be a decent spot to ask if any of y'all have tried this, or if not, where I should look at adapting their changes (which are built on the \examples\connectivity\ble_connectivity application according to this) to fit this device.

Cheers and hope y'all are well!