-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trouble enumerating nRF52840-mdk-dongle on macOS #34
Comments
I wasnt aware they were shipping an hf2 bootloader. I know adafruit has a nordic uf2 but no idea what its shipping on. Yeah seems like it might be this one Also does it at least come up as a flash drive? can you do the usual copy a uf2 file over? As always make sure you update their bootloader to their latest whatever their latest is. Of course make sure youre enable debug logs with As always, whats your hf2 version and make sure to update to latest. Do you have any other adafruit stuff? Might be worth seeing if one of those enumerates. You can also just get something on it in general with cargo objcopy and either thier uf2 python tool or theres a rust one called uf2conv. From looking at those docs it would be something like this from inside a rust project with a blinky_basic example
|
I was on the latest commit on
Thanks! I'll try to get something like that to work, but no dice so far. I was hoping a bit to be able to use |
I'm having the same issues - NRF52840 Express, macOS 15.7. I've got uf2conv working for very simple programs, but not working when I enable more features and dependencies. I assume the memory layout might be wrong. When I put on the "wrong" programs the Express flashes red and the bootloader signal is a solid red. Any thoughts how I should go about debugging hf2 and seeing if I can get it to enumerate? In the enumeration phase, here's what's being returned:
All the VIDs are wrong - is it an Apple/permissions thing? I've opened an issue on hidapi. I'm testing the hidapi library with python and getting the same issue. |
Did you all come to any conclusions on this? |
hf2
is unable to flash an nRF52840-mdk-dongle on macOS. Even though the device is plugged in and in bootloader mode,hf2
(andcargo-hf2
) both fail to interact with it:The device's vendor and product ID are
0x239a:0x0029
, and it is shown correctly inSystem Information.app
:I've debugged it to the point that doesn't seem like
hidapi
'shid_enumerate
enumerates this device properly.hid_enumerate
uses IOKit to enumerate devices usingIOHIDManagerSetDeviceMatching
. OTOH,bobbin
, which correctly identifies the USB device (but incorrectly tries to flash it using BOSSA) uses [IO Registry
] on macOS andsysfs
on linux (source):I assume that the reason the dongle appears in the IO Registry, but not in IOKit's IOHIDManagerSetDeviceMatching, is because it reports a device class of
0xef
(miscellaneous) instead of0x3
:I wonder what the right way forward is here - is this a bug in the bootloader on the nRF52840-mdk-dongle /
hidapi
/hf2-rs
? Would it make sense to import theioreg
code frombobbin
?The text was updated successfully, but these errors were encountered: