I reached step 4 and the roll back still inactive.
Hi @wolfrose.
I have found that when the driver installation gets into this state, it can be solved by uninstalling and then reinstalling the drivers. After that, the "roll back" option should be enabled.
I'll provide instructions you can follow to do that:
- Close Arduino IDE if it is running.
- Connect the Arduino board to your computer with a USB cable.
- Open the Windows Device Manager.
- Select View > Devices by type from the Device Manager menus.
- Open the "View" menu.
- If there is a ✓ to the left of the "Show hidden devices" menu item, click on "Show hidden devices" to disable it.
- Open the "Ports (COM & LPT)" section of the Device Manager tree.
- You should see a port identified as "USB-SERIAL CH340 (COMn)" under the "Ports (COM & LPT)" section (where "COMn" is some serial port e.g., COM4). Double click on that item.
The "USB-SERIAL CH340 (COMn) Properties" dialog will open. - Select the "Driver" tab of the "USB-SERIAL CH340 (COMn) Properties" dialog.
- Click the "Uninstall Device" button.
The "Uninstall Device" dialog will open. - Check the box next to "☐ Attempt to remove the driver for this device.".
- Click the "Uninstall" button.
The "Uninstall Device" and "USB-SERIAL CH340 (COMn) Properties" dialogs will close. - Disconnect the USB cable of the Arduino board from your computer.
- Reconnect the USB cable of the Arduino board to your computer.
- Wait for the "USB-SERIAL CH340 (COMn)" device to appear under the "Ports (COM & LPT)" section of the Device Manager tree.
This will take a couple of minutes as Windows must first automatically reinstall the driver.
It might appear first as a "USB2.0-Serial" device under the "Other devices section of the tree. Just wait for a little longer and it will appear in its final place under the "Ports (COM & LPT)" section.
- Click the following link to download the previous version of the driver from the chip manufacturer's website:
https://www.wch-ic.com/downloads/file/65.html?time=2023-03-16%2022:57:59 - Wait for the download to finish.
- Run the downloaded
CH341SER.EXE
file. - A "User Account Control" dialog may now appear asking "Do you want to allow this app to make changes to your device?". Click the "Yes" button.
- A "DriverSetup(X64)" dialog will open. Click the "INSTALL" button in the dialog.
- Wait for the driver installation to finish, as indicated by the appearance of a "Driver install success!" dialog.
- Click the "OK" button in the "Driver install success!" dialog.
The dialog will close. - Click the X icon at the top right of the "DriverSetup(X64)" dialog.
The dialog will close. - Switch back to the Windows "Device Manager".
- Double click on the "USB-SERIAL CH340 (COMn)" device under the "Ports (COM & LPT)" section.
The "USB-SERIAL CH340 (COMn) Properties" dialog will open. - Select the "Driver" tab of the "USB-SERIAL CH340 (COMn) Properties" dialog.
- Click the "Update driver" button.
An "Update Drivers Device - USB-SERIAL CH340 (COMn)" dialog will open. - Click on "Search automatically for drivers" in the "Update Drivers Device - USB-SERIAL CH340 (COMn)" dialog.
- You should now see the driver installation wizard update the driver. Wait for the update to finish, as indicated by the message "Windows has successfully updated your drivers" in the dialog.
- Click the "Close" button in the "Update Drivers Device - USB-SERIAL CH340 (COMn)" dialog.
The dialog will close. - Click the "Roll Back Driver" button in the "USB-SERIAL CH340 (COMn) Properties" dialog.
The "Driver Package rollback" dialog will open. - Click the radio button next to "My apps don't work with this driver" in the "Driver Package rollback" dialog .
- Click the "Yes" button.
The "Driver Package rollback" dialog will close. - Click the "Close" button in the "USB-SERIAL CH340 (COMn) Properties" dialog.
Now start Arduino IDE again and repeat whatever you were doing before when you encountered that error before. Hopefully this time you will not encounter that "can't set com-state
" error during the sketch upload.
I did all the steps, and still the same result.
My board is really challenging ! I tried to program it through other platforms, flash tool, platformio and arduino ide.
I have two yellow esp32 tft capacitive boards:
- 3.5" running by esp32 wroom --> this one is working with no issues.
- 4.3" running by esp32 s3 --> this is the one that won't work. It still run the demo code but I can't program it.
I can see from your screenshot that the intended driver version ("3.7.2022.01") is installed. It is the version "3.8.2023.2" that is incompatible with certain "CH340" USB chips.
So please try uploading a sketch to your board again now that you have the older driver version installed. Hopefully this time the upload will be successful.
I tried to reset the device, no affect.
But when I press RST then boot, it stops the connect process and issues this window:
The driver rollback procedure I provided here is only intended to fix one specific cause of a sketch upload failure (the combination of and certain batches of sketchy "CH340" USB chips with driver version 3.8.2023.2). There are many other unrelated causes of an upload failure (or firmware flashing failure in your case).
Since you are using the driver version that does not cause upload failures, yet your failure persists, it seems likely that your failure has a different cause.
Unfortunately I don't have any experience using this "ESP32S3 FLASH DOWNLOAD TOOL" (I have used the ESP8266 equivalent a few times years ago, but I don't think that experience is of much value here).
This should be done before you initiate the the flashing process by clicking the "START" button in the "ESP32S3 FLASH DOWNLOAD TOOL" window.
Try this procedure:
- Press and hold the "boot" button.
- Press and release the "reset" button.
- Release the "boot" button.
- Click the "START" button in the "ESP32S3 FLASH DOWNLOAD TOOL" window.
Does the flashing procedure finish successfully after you do that, or do you still have the problem of it remaining forever in that state where it prints the "....."?
Yep, I tried both methods, before powering up the board and after powering up.
The small board works perfectly without any issues.
I'm installing linux ubuntu now and try there.
It happened with me before with arduino mega board that is using CH340 and only programmed in linux.
OK, problem solved here:
https://github.com/espressif/esptool/issues/682
Installing old CH340 driver solved the problem.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.