Skip to content

Conversation

@nexoscp
Copy link

@nexoscp nexoscp commented Apr 4, 2022

Also, creating list of supported devices.

@nexoscp
Copy link
Author

nexoscp commented Apr 6, 2022

Tried to run against my Adafruit Blulfruit Board. Find the device on USB but get "error: error while reading from serial port: Operation timed out" not sure whats wrong. Needs more investigation.

@nexoscp
Copy link
Author

nexoscp commented Apr 9, 2022

Getting a response from the Board: [13, 10, 119, 114, 105, 116, 101, 32, 116, 104, 105, 115, 13, 10, 48, 32, 91, 48, 46, 48, 48, 32, 109, 86, 93, 13, 10, 48, 32, 91, 48, 46, 48, 48, 32, 109, 86, 93, 13, 10] So the Error 'Operation timed out' seams to be a bit misleading.

@chrysn
Copy link
Contributor

chrysn commented May 2, 2025

Note that the Adafruit bootloader is a variation of the original nRF bootloader; their Python tool adafruit-nrfutil deviates from the upstream tool they forked. I don't know how large the differences are; they are large enough to not just be compatible; they may or may not be small enough that this tool might support both behind a switch.

@chrysn
Copy link
Contributor

chrysn commented May 7, 2025

My impression from playing around with the patches and the code is that those two are too far apart to warrant treatment with the same DFU tool; can't tell how far their MBRs and flash configuration formats are distinct.

I've opened an issue asking for clarification, but unless that is resolved quite positively, my guess for resolving this would need at least a different BootloaderConnection and main implementation (that may share some things, but differ eg. in that the adafruit seems to send end-of-frame before every message, something which is not too uncommin in SLIP but which the original nRF bootloader doesn't tolerate, at least not with the way this tool expects the responses).

@jonathanpallant
Copy link
Collaborator

I would be happy to see a fork of this crate, like adafruit-nrfdfu, but Ferrous Systems has no immediate need to support the Adafruit devices, only the nRF52840-Dongle that we use in our training.

@jonathanpallant jonathanpallant added the enhancement New feature or request label May 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants