Skip to content
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

KIAUH 6 - Upload klipper via DFU fails #545

Open
cad435 opened this issue Sep 24, 2024 · 3 comments
Open

KIAUH 6 - Upload klipper via DFU fails #545

cad435 opened this issue Sep 24, 2024 · 3 comments
Labels
Scope: Core Status: Feedback Needed Further information is required Type: Bug Something isn't working as expected

Comments

@cad435
Copy link

cad435 commented Sep 24, 2024

Linux Distribution

Armbian 24.5.1 Bookworm with Linux 6.6.32-current-meson64 on BananaPi CM4

What happened

When I try to upload a new klipper.bin so a STM32 in DFU mode KIAUH quits with the following error:

[ERROR] Unable to find a USB DFU device!
Command '"lsusb | grep "DFU" | cut -d " " -f 6 2>/dev/null"' returned non-zero exit status 127.
[WARN] No MCUs found!
[WARN] Make sure they are connected and repeat this step.

What did you expect to happen

An upload to the device

How to reproduce

Place a STM32 Board with Hardware Bootloader into DFU mode.
Try to upload klipper.bin via KIAUH

Additional information

If I manually type the command
lsusb | grep "DFU" | cut -d " " -f 6 2>/dev/null

Into the console I get
0483:df11
which would be the correct value for uploading.

the exact same procedere is working flawlessly with KIAUH v5

@dw-0 dw-0 added Type: Bug Something isn't working as expected Scope: Core Status: Evaluation Needed labels Sep 26, 2024
@dw-0 dw-0 added this to the v6.0.0-alpha.6 milestone Sep 26, 2024
@tameike000
Copy link

Can confirm this:
Bullseye RPi3 with 6 alpha: no DFU flash possible -> not found. Same with Bookworm.
With 5 works like a charm.
If you need logs, let me know.

@dw-0
Copy link
Owner

dw-0 commented Oct 3, 2024

Hi @tameike000 and @cad435, sorry for the late response, i haven't had time to look into this issue yet.
Can you both please provide the output of lsusb please? I don't have any USB devices i can flash with DFU, but i think having the raw output of the unmodified/unpiped lsusb command might already help. Thanks in advance!

@dw-0 dw-0 added Status: Feedback Needed Further information is required and removed Status: Evaluation Needed labels Oct 3, 2024
@dw-0
Copy link
Owner

dw-0 commented Oct 3, 2024

FYI: i may have already a patch ready. If you are familiar with manually checking out different git branches, you could try and test if my patch works. The name of the branch is fix/KIA-545 and you can check it out with:

cd ~/kiauh
git fetch origin fix/KIA-545
git checkout fix/KIA-545

after testing make sure you check out master again, so you receive regular updates to KIAUH again

cd ~/kiauh
git checkout master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Core Status: Feedback Needed Further information is required Type: Bug Something isn't working as expected
Projects
Status: In Progress
Development

No branches or pull requests

3 participants