-
Notifications
You must be signed in to change notification settings - Fork 2
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
Can't program connected STM32 device, #15
Comments
Hi dude. Sorry for the issue. Your command looks as expected, I don’t think the issue there. Firstly I have to say that library was written based mostly on C sources and don't was properly tested with different devices. It was started as adjustment of dfu utils for LPC based device, and then was extended to be compatible with original API. Now I haven't the STM and can't now test it. It still in beta. Looks like the tool can’t find an altseting in right way and parse it. It was one of hardest parts of developing this library, and I not sure that it’s realised as expected. So if my implementation don't work u can probably use original dfu-util for it. If u like this project and want to contribute u can fork it, clone, install in editable mode and try to debug step by step. I would be pleasant |
I almost sure that the problem in altsettings descriptor parsing. I spent a lot of time to get it work with LPC. The process of descriptors parsing have to be monitorred row by row to find where the bug is until u got an expected result |
Hi.
I have STM32 device in DFU mode, checked with STM32Cube programmer software. I can't find proper command line switches to upload .bin file.
These are commands I executed
pydfuutil -l
v0.0.5
INFO:pydfuutil:Found Runtime: [0483:df11] devnum=45, cfg=1, intf=0, alt=0, name="@internal Flash /0x08000000/25608Kg"
INFO:pydfuutil:Found Runtime: [0483:df11] devnum=45, cfg=1, intf=0, alt=1, name="@option Bytes /0x5200201C/01297 e"
INFO:pydfuutil:Found Runtime: [0483:df11] devnum=45, cfg=1, intf=0, alt=2, name="@otp Memory /0x08FFF000/01*1024 e"
pydfuutil -d 43 -i 0 -a 0 -R -U bcu.bin
v0.0.5
INFO:pydfuutil:Filter on VID = 0x0000 PID = 0x0000
INFO:pydfuutil:Opening DFU capable USB device...
INFO:pydfuutil:ID 0x0483:0xDF11
WARNING:pydfuutil:Can not find cached DFU functional descriptor
WARNING:pydfuutil:Assuming DFU version 1.0
INFO:pydfuutil:Run-time device DFU version 0x0100
INFO:pydfuutil:Claiming USB DFU Runtime Interface...
INFO:pydfuutil:Determining device status: state = dfuUPLOAD-IDLE, status = 0
INFO:pydfuutil:Runtime device already in DFU state ?!?
INFO:pydfuutil:Opening DFU USB Device...
ERROR:pydfuutil:No such Alternate Setting: 0
Can you, please, send me proper commands that I have to send to upload file to this device?
Best !
The text was updated successfully, but these errors were encountered: