Closed oplik0 closed 2 years ago
I have the same error. (thread 'main' panicked at 'success: HidApi(IncompleteSendError { sent: 60, all: 36 })') If usefull, I can post the RUST backtrace if you tell me how to do that..
It seems as if Window sends some kind of "full packet" vs. what was sent. The protocol is over-nitpicky on purpose about this (the idea was to learn what's different on other platforms). I believe this is an issue in lpc55-host that is fixed in the win-fix
branch of both repositories, will test some more and then release a v0.0.7. Thanks for reporting.
Thanks, I can confirm that the win-fix branch works for me for updating.
Also, a small thing I noticed in the logs here - firmware is misspelled as firmare in these two lines: https://github.com/solokeys/solo2-cli/blob/e010dc72982da488ccbaba2b70c06b2592531e4b/src/update.rs#L32 https://github.com/solokeys/solo2-cli/blob/e010dc72982da488ccbaba2b70c06b2592531e4b/src/update.rs#L46
Not worth separate report or a PR though, so just mentioning it here :)
Just for completeness: This is also, unsurprisingly, reproducible on Windows 11.
Should be fixed by https://github.com/solokeys/solo2-cli/releases/tag/v0.0.7 (if not, feel free to open a new issue).
Should be fixed by https://github.com/solokeys/solo2-cli/releases/tag/v0.0.7 (if not, feel free to open a new issue).
Yes, can confirm:
C:\Users\pkernstock\Downloads>solo2-v0.0.7-x86_64-pc-windows-msvc.exe update
Downloading latest release from https://github.com/solokeys/solo2/
Bootloader detected. The LED should be off.
Writing new firmware...
Done. Rebooting key. The LED should turn back on.
Thanks for the quick fix!
When trying to update on Windows 10, the key appears to be put into (or there are attempts to put it into) bootloader mode, but no commands seem to work on it afterwards - this results in
thread 'main' panicked at 'success: HidApi(IncompleteSendError { sent: 60, all: 36 })'
error on update and with other bootloader commands (bootloader ls
,bootloader reboot
). Full logs withSOLO2_LOG=debug
andRUST_BACKTRACE=full
(redacted some number since I'm not sure if they aren't supposed to be kept private):Subsequent runs produce basically the same output just without the device selection step.
Edit: this appears to be a general bootloader issue in Windows, not just with updates. Putting the key into bootloader mode manually (be it via
solo app admin boot-to-bootrom
or holding all keys for 5 seconds when inserting) bootloader commands emit the samethread 'main' panicked at 'success: HidApi(IncompleteSendError { sent: 60, all: 36 })'
error