ch32-rs / wlink

An open source WCH-Link library/command line tool written in Rust.
Apache License 2.0
155 stars 25 forks source link

A flash command before issuing a status command fails with "pipe error" #52

Open OpusElectronics opened 5 months ago

OpusElectronics commented 5 months ago

If the first command sent to the WCH-Link adapter (when it has been plugged to USB) via wlink is a 'flash' command, it fails in the following way:

[INFO] Connected to WCH-Link v2.9(v29) (WCH-LinkE-CH32V305)
Error: USB error: Pipe error

Caused by:
    Pipe error

If we issue a 'status' command first, it works fine, and subsequent 'flash' commands all work until the WCH-Link is unplugged/replugged to USB.

On Linux, if that makes a difference.

andelf commented 5 months ago

Could you provide wlink -vv output?