Skip to content

Add nrf52840 dongle support#322

Closed
eyJhb wants to merge 4 commits intojfedor2:masterfrom
eyJhb:add-nrf52840-dongle-support
Closed

Add nrf52840 dongle support#322
eyJhb wants to merge 4 commits intojfedor2:masterfrom
eyJhb:add-nrf52840-dongle-support

Conversation

@eyJhb
Copy link
Copy Markdown

@eyJhb eyJhb commented Nov 24, 2025

Adds support for the nrf52840 dongle using the default bootloader.
It disables the following things from prj.conf as a override

CONFIG_USE_DT_CODE_PARTITION=n
CONFIG_NVS=n

If either of these are enabled, the board will not work.
Besides this, it adds a overlay to get the correct LED colors on the device.

I've tried to add a basic workflow for Github actions, however, I had issues with remapper.zip not showing up outside of docker in the actions, but it was there on my own PC? It might be something funky with Podman, so I didn't investigate it further. And the entrypoint for the nrf docker image is weird, so I had to override it to make this work.

I tried to add some basic documentation, but I'm unsure if this is the best way to go about it.

But otherwise, it seems to be fully working and should resolve #204 .

EDIT: I fixed the github actions workflow, so that should work now :)

@eyJhb eyJhb force-pushed the add-nrf52840-dongle-support branch 2 times, most recently from 5076b74 to 1d39f1f Compare November 24, 2025 14:14
@eyJhb
Copy link
Copy Markdown
Author

eyJhb commented Nov 24, 2025

Example build attached here, and can be found here https://github.com/eyJhb/hid-remapper/actions/runs/19637385648 :)

artifact-nrf52840dongle_nrf52840.zip

@eyJhb
Copy link
Copy Markdown
Author

eyJhb commented Nov 24, 2025

For some reason media keys does not seem to work, e.g.

0x00070081 -> volume down
0x00070080 -> volume up
0x0007007f -> volume mute
0x000700e8 -> play/pause
0x000700ea -> prev track
0x000700eb -> next track

But I don't think that's an issue with this PR, but rather how my Glove80 sends this information.

@eyJhb
Copy link
Copy Markdown
Author

eyJhb commented Dec 2, 2025

It doesn't seem like it persists the settings when powered down. I'll try to investigate that.

@eyJhb
Copy link
Copy Markdown
Author

eyJhb commented Dec 16, 2025

It doesn't seem like it persists the settings when powered down. I'll try to investigate that.

I've defaulted the settings backend for nrf52840dongle to just use FCB. It works out of the box, but ideally it should use nvs instead. But I'm not really sure what's happening, and I am not able to debug the dongle.

@Tomaszal
Copy link
Copy Markdown

Could you maybe also add UF2 files for dongles that already have the bootloader? Would be great for some dongles with out of the box UF2 bootloader like these:

@eyJhb
Copy link
Copy Markdown
Author

eyJhb commented Dec 17, 2025

nrf52840_mdk_usb_dongle.zip

I've tried to do something. Does this uf2 work for you?

@Tomaszal
Copy link
Copy Markdown

Yep, can confirm that works!

@eyJhb
Copy link
Copy Markdown
Author

eyJhb commented Dec 17, 2025

Perfect. It will need to be a separate PR, as I had to update nrf-sdk as well. And it depends on if the maintainer of the project wants to get these PRs merged in. :)

EDIT: but at least you have something you can use now :)

@Tomaszal
Copy link
Copy Markdown

Makes sense, could you push it to a separate branch for now? Thanks!

@eyJhb
Copy link
Copy Markdown
Author

eyJhb commented Dec 17, 2025

@Tomaszal done :) Feel free to test the artifacts that I have linked to in the PR above ( #325 ).

@Tomaszal
Copy link
Copy Markdown

@eyJhb fantastic, thank you! Can confirm it works on MDBT50Q-RX

@eyJhb eyJhb force-pushed the add-nrf52840-dongle-support branch from 52d7c23 to 6b11661 Compare February 13, 2026 21:14
@eyJhb
Copy link
Copy Markdown
Author

eyJhb commented Feb 16, 2026

Superseded by #325 :)

@eyJhb eyJhb closed this Feb 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Using with nrf52840 Dongle + default bootloader

2 participants