-
Notifications
You must be signed in to change notification settings - Fork 39
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
wchisp hang after running once #22
Comments
How about v0.1.4? |
git checkout and rollback to 0.1.4, and got the same result. Since no 'probe' cmd in 0.1.4, tested with 'wchisp info'. runing once, hang at the second time. After read the codes, I do NOT think it's a bug of wchisp, but in rusb or libusb or base system, but need to be figured out and report to upstream. |
I didn't find a flappyboard with CH32V103. |
Sorry for confusing. What I mean is tested with a flappyboard (v203) and another ch32v103 breakout board. Both have the same result. |
Exact same problem here, using a "CH32V307 EVT by SCDZ" board from here. Running any Running latest binary from 02e8d68. Board info:
|
@maxgerhardt Thanks for your report. UPDATE: I can reproduce this on my ArchLinux machine. (🥲I use macOS as the primary dev platform) |
@cjacker @maxgerhardt Fixed in v0.2.2 release. |
Not hang now, but 'probe' still has some issue: running once, the second time will report 'timeout' and other commands not work anymore. But if I not run 'wchisp probe' at first, not matter run 'wchisp info' for any times, it's ok. Should reopen this issue? |
On Windows this does not occur with the latest build (using the CI binaries from https://github.com/Community-PIO-CH32V/wchisp/actions/runs/4226243545 for f36a05c) On Linux (Ubuntu 22.04 in VM) I can confirm that the eternal hangup error is now converted into always returning "Operation Timed Out" after running it once.
Verbose logs
|
I have reproduced this bug on my Pop!_OS. |
Fixed in 17c853b. I tested on Pop!_OS(should be the same as Ubuntu) & CH32V203. |
I see, I'll retest today. And btw, the Rust CI again did not run to produce the binaries, I think because of the path restrictions in the |
Confirm works ! |
I've grabbed the latest binaries from https://github.com/ch32-rs/wchisp/actions/runs/4245422276 and sadly it still doesn't work. Only getting timeout errors after the first time.
|
Recently I bought a CH32V305 from Muse Lab, it doesn't work again with CH32V305. |
@cjacker I'll check this. |
Hi, same kind of issue here on Arch Linux with a CH32V307. Latest git revision of wchisp, Rust 1.73.0. I can confirm the behavior above: a first 'wchisp probe' will work, after that subsequent commands usually fail with "operation timed out". Also, I tried flashing the MCU with a "wchisp flash" command right after booting the MCU in USB ISP mode.
|
Hello, i also have this timeout error. Tested with 3 different boards. Running Ubuntu 22.04 LTS |
I'm running into this with a CH582F. |
I might need to compare the USB packets against official tools. 🥹 |
Unlike OpusElectronics, it seems I can flash it if it's the first command I issue to it though, without it reporting any errors. |
@imavlr Usually the first command works without problems. But beginning with the second one, it fails always |
OS: fedora 36, glibc-2.35, kernel-6.1.9
rust: 1.67.0
wchisp: git and v0.20
Parts: tested with flappyboard and ch32v103
Problem:
run only once, hang on second running.
For example, run 'wchisp probe' once, no matter run 'wchisp xxx' again, it will hang.
Backtrace:
Ctrl-C to stop it, then 'bt'
The text was updated successfully, but these errors were encountered: