-
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
hf2: failed to open Adafruit nRF52 board #41
Comments
Yeah if they did indeed disabl the hid (hf2) then this tool cant do anything sadly. However you can update the bootloader to a version that has that mode enabled. You might be able to build a new version from source. |
Heres an adafruit samd device with the hid
Heres the samd bootloader code and the USE_HID define The nrf52 bootloader might be this one? |
I just got a Circuit Playground Bluefruit and was hoping that |
Just ran into this issue as well, with a different chip (nice!nano) but same bootloader. How would I determine if my bootloader has HID enabled? I am running windows |
Have you tried the lsusb above and explicitly setting your pid and vid?
It's possible hf2 just doesn't know about your device
…On Fri, Dec 17, 2021, 11:15 AM Ryan Butler ***@***.***> wrote:
Just ran into this issue as well, with a different chip (nice!nano) but
same bootloader. How would I determine if my bootloader has HID enabled? I
am running windows
—
Reply to this email directly, view it on GitHub
<#41 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADPI5AC6P3XKHI5HXLSPGLURN443ANCNFSM5ATFOQPA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.Message ID:
***@***.***>
|
Here is the output of lsusb on my raspberry pi:
|
Yeah your vid pid pair is present in our list Line 201 in 3395645
And you're an nrf from adafruit so seems like its probably a related issue. |
NB: I think this is the same root problem as #34, but I'm not sure, so I'm filing this separately.
I do have an Adafruit Feather nRF52840 Express board (this one).
According to the docs (here), it has an UF2-capable bootloader (source).
Before this, I updated the bootloader to the latest version available (0.6.0).
On my Linux workstation (Debian testing, kernel 5.10.0), I tried to upload a new application-firmware to it through
cargo-hf2
, but the detection logic failed.The board is properly sitting in bootIoader mode (confirmed by leds status and by the mass-storage device) and waiting for uploads, but it looks like
hf2
is not able to enumerate it:At the same time, in the same setup I can properly upload my application in UF2 format to the mass storage device that the bootloader provides. These are the details provided by the board bootloader via the mass-storage device:
Looking at the USB descriptors, these are the interfaces I'm seeing:
I'm seeing three interfaces there, but none of them is an HID endpoint. Unfortunately I don't have any other hf2-capable board to compare, but I have a feeling that the problem is there. Do other supported devices directly expose an HID endpoint? How does the CDC endpoint fits in the picture?
It looks like this device supports UF2 uploads through the CDC+serial endpoint (and mass-storage too), but does not directly expose HID. Am I reading this right? If that is the case, is
cargo-hf2
supposed to handle this "UF2 without HID" case?The text was updated successfully, but these errors were encountered: