-
Notifications
You must be signed in to change notification settings - Fork 149
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
WCH CH340 serial port issue under Windows: can't set com-state for "\\.\COMx #1328
Comments
The following is a different issue but with the same symptom. It is not using CH340 but the original ATmega16U2 USB to Serial FW. |
I found a solution for using the latest version 3.8 driver (CH341SER 3.8 version). I need to click the check box in the advanced settings --> Before enabling the option and after enabling the option. I have no idea why WCH does not make this option default.
|
Somehow this is dependent on the PC.
|
I have to use older version of the driver to work reliably in the end. The new version just does not work properly. |
In case someone else are having the same issue, what driver version are you using (that works), and where did you download it from? |
Since I was not able to find a way to source an older version of the driver directly from the WCH website, I am recommending sourcing it from a SparkFun tutorial since I consider SparkFun to be a trustworthy source. The instructions are here: https://forum.arduino.cc/t/arduino-nano-upload-error/1146296/14 |
Yes, SparkFun version (WCH driver version 3.4) works fine. |
I will carry out a bit more tests to see which version does not work and which versions work. I believe all the older versions (3.7 and earlier) work fine except latest version 3.8 but I need to double check. Version 3.8 does not work reliably (my test shows problem only in Windows 11 but not Windows 10).
|
Another reliable place to download is from Microsoft. They have version 3.8.2023.2 (problem version), version 3.5.2019.1 and version 3.4.2014.08 (both are working). There is no driver installer included but you can use Windows Device Manager to install the driver. |
Interestingly I do not seem to have issues using serialupdi with latest driver. |
I think this is not an avrdude issue but an WCH CH340 driver issue.
Still it is good to put some info here so that people can reference to it, since there are quite some similar issues posted online.
I was playing with CH341A yesterday and install the latest CH341SER driver for CH340/CH341. Then I was encountering the above issue. Reverting to an old version sorted out the issue for me -- I am using version 3.5 (3.5.2019.1) and it is working fine.
Problematic driver version:
http://www.wch-ic.com/downloads/CH341SER_EXE.html (version 3.8, uploaded on 2023-03-16, size 642KB)
Working driver version:
If you can not find the older driver version, here is one link for version 3.5.
https://github.com/wemos/ch340_driver
Good and bad run log for reference:
The text was updated successfully, but these errors were encountered: