Nano board will not be reconised by the PC

image

I have unplugged and plugged it in and shown hidden devices and its the USB2.0-ser, but i need it in the Com ports even tho it is connected directly into were another board was and were that board worked but this one wont.

Hi @jakeepoo. You need to install the driver for the CH340 USB to serial adapter chip used by your Arduino board. You can install the latest version of the driver by following these instructions:

  1. Open the driver download page on the website of WCH, the manufacturer of the CH340 chip:
    http://www.wch-ic.com/downloads/CH341SER_ZIP.html
  2. Click the button with the cloud and downward pointing arrow to download the driver.
  3. Wait for the download to finish.
  4. Unzip the downloaded file.
  5. Open the Windows "Device Manager".
  6. Connect the Arduino board to your computer with a USB cable.
  7. You should see a new device appear under the "Other devices" section of the device tree. Right click on it.
    The context menu will open.
  8. Select "Update driver from the context menu.
    An "Update Drivers" dialog will open.
  9. Click "Browse my computer for drivers" in the "Update Drivers" dialog.
    The dialog will progress to the "Browse for drivers on your computer" step.
  10. Click the "Browse..." button to the right of the location field in the dialog.
    The "Browse For Folder" dialog will open.
  11. Select the folder you unzipped in the previous step of these instructions in the "Browse For Folder" dialog.
  12. Click the "OK" button.
    The "Browse For Folder" dialog will close.
  13. Click the "Next" button in the "Update Drivers" dialog.
  14. The dialog should now show the message "Windows has successfully updated your drivers". Click the "Close" button.
  15. Click the X icon in the Device Manager window to close it.

You should now see a port for your Arduino board under the Tools > Port menu in Arduino IDE. Select that port and try uploading again.

I have a fear that you might still experience an upload failure even after solving the port problem. The reason I have this fear is that the latest version of the driver is incompatible with certain (maybe counterfeit or defective) CH340 chips and I have seen some information that the device being identified as "USB2.0-Ser!" in Windows Device Manager instead of the expected "USB2.0-Serial" (note "Ser!" vs. "Serial") is an indicator that you have one of those bad chips.

But we'll cross that bridge if we come to it so for now just give this procedure a try. If you still get an error, please post the full and exact text of the error here. And this time post it AS TEXT, not as a screenshot of text!!!

1 Like

Arduino: 1.8.12 (Windows 10), Board: "Arduino Nano, ATmega328P"

Sketch uses 2576 bytes (8%) of program storage space. Maximum is 30720 bytes.
Global variables use 345 bytes (16%) of dynamic memory, leaving 1703 bytes for local variables. Maximum is 2048 bytes.
avrdude: ser_open(): can't set com-state for "\.\COM6"
An error occurred while uploading the sketch

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Still is giving me an error even if i switch ports etc @ptillisch

image

image

It is just as I feared. There were some previous reports of this "can't set com-state for ..." error occurring specifically when uploading to the boards that use the CH340 USB chip (and apparently only specific batches of those chips) as is the case with your board. The problem only occurs when using the latest version of the CH340 driver (which is the one you get from the WCH website).

The affected users have reported that doing a "roll back" to an older version of the driver was an effective workaround. You can give that a try.

I'll provide instructions:

  1. Open this tutorial from SparkFun in your browser:
    https://learn.sparkfun.com/tutorials/how-to-install-ch340-drivers/all#drivers-if-you-need-them
    We are using this tutorial as a source for an older version of the CH340 drivers. Generally I recommend only obtaining drivers from the manufacturer of the device, but WCH does not provide older versions of their drivers and SparkFun is trustworthy.
  2. Click the "Windows (EXE)" link you see in red under the "Drivers (If You Need Them)" section of the tutorial.
  3. Wait for the download to finish.
  4. Run the downloaded CH341SER.EXE file.
  5. 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.
  6. A "DriverSetup(X64)" dialog will appear. Click the "INSTALL" button in the dialog.
  7. Wait for the driver installation to finish, as indicated by the appearance of a "Driver install success!" dialog.
  8. Click the "OK" button in the "Driver install success!" dialog.
  9. Click the X icon at the top right of the "DriverSetup(X64)" dialog to close it.
  10. Close Arduino IDE if it is running.
  11. Connect the Arduino board to your computer with a USB cable.
  12. Open the Windows Device Manager.
  13. Select View > Devices by type from the Device Manager menus.
  14. Open the "View" menu.
  15. If there is a to the left of the "Show hidden devices" menu item, click on "Show hidden devices" to disable it.
  16. Open the "Ports (COM & LPT)" section of the Device Manager tree.
  17. You should see a port identified as "USB-SERIAL CH340 (COM_n_)" under the "Ports (COM & LPT)" section (where "COM_n_" is some serial port e.g., COM4). Right click on that item.
    A context menu will open.
  18. Select the "Drivers" tab of the "USB-SERIAL CH340 (COM_n_) Properties" dialog.
  19. You will see a "Roll Back Driver" button in the dialog. If it is not clickable, perform the following instructions:
    1. Select "Update driver" from the context menu.
      An "Update Drivers Device - USB-SERIAL CH340 (COM_n_)" dialog will open.
    2. Click on "Search automatically for drivers" in the "Update Drivers Device - USB-SERIAL CH340 (COM_n_)" dialog.
    3. 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.
      :exclamation: It is possible you will instead see the message "The best drivers are already installed". If so, please stop following the instructions here and reply on the forum thread to let me know. I'll provide alternative instructions you can follow.
    4. Click the "Close" button in the "Update Drivers Device - USB-SERIAL CH340 (COM_n_)" dialog.
  20. Click the "Roll Back Driver" button in the "USB-SERIAL CH340 (COM_n_) Properties" dialog.
    The "Driver Package rollback" dialog will open.
  21. Click the radio button next to "My apps don't work with this driver" in the "Driver Package rollback" dialog .
  22. Click the "Yes" button.
  23. Click the "Close" button in the "USB-SERIAL CH340 (COM_n_) Properties" dialog.

Now start Arduino IDE again and repeat whatever you were doing before when you encountered that error. Please reply here to let us know whether the error still occurs.

1 Like


I followed directions till #7 and evreytime i clicked retry it would give same error, "Driver Install Failure" @ptillisch

I'm not sure what would cause that.

I will provide alternative instructions that use a different (but equally good) method of installing drivers. Maybe the different driver installation method will be a way to bypass the problem you are experiencing when using the standalone driver installer utility WCH provides.

Please try this:

  1. Open this tutorial from SparkFun in your browser:
    https://learn.sparkfun.com/tutorials/how-to-install-ch340-drivers/all#drivers-if-you-need-them
  2. Click the "Windows (ZIP)" link you see in red under the "Drivers (If You Need Them)" section of the tutorial.
  3. Wait for the download to finish.
  4. Unzip the downloaded file.
  5. Open the Windows "Device Manager".
  6. Connect the Arduino board to your computer with a USB cable.
  7. You should see a new device appear under the "Other devices" section of the device tree. Right click on it.
    The context menu will open.
  8. Select "Update driver from the context menu.
    An "Update Drivers" dialog will open.
  9. Click "Browse my computer for drivers" in the "Update Drivers" dialog.
    The dialog will progress to the "Browse for drivers on your computer" step.
  10. Click the "Browse..." button to the right of the location field in the dialog.
    The "Browse For Folder" dialog will open.
  11. Select the folder you unzipped in the previous step of these instructions in the "Browse For Folder" dialog.
  12. Click the "OK" button.
    The "Browse For Folder" dialog will close.
  13. Click the "Next" button in the "Update Drivers" dialog.
  14. The dialog should now show the message "Windows has successfully updated your drivers". Click the "Close" button.
  15. Double click the CH340 device under "Ports (COM & LPT)" section of the Device Manager tree.
    The "USB-SERIAL CH340 (COM_n_) Properties" dialog will open.
  16. Select the "Drivers" tab of the "USB-SERIAL CH340 (COM_n_) Properties" dialog.
  17. You will see a "Roll Back Driver" button in the dialog. If it is not clickable, perform the following instructions:
    1. Select "Update driver" from the context menu.
      An "Update Drivers Device - USB-SERIAL CH340 (COM_n_)" dialog will open.
    2. Click on "Search automatically for drivers" in the "Update Drivers Device - USB-SERIAL CH340 (COM_n_)" dialog.
    3. 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.
      :exclamation: It is possible you will instead see the message "The best drivers are already installed". If so, please stop following the instructions here and reply on the forum thread to let me know. I'll provide alternative instructions you can follow.
    4. Click the "Close" button in the "Update Drivers Device - USB-SERIAL CH340 (COM_n_)" dialog.
  18. Click the "Roll Back Driver" button in the "USB-SERIAL CH340 (COM_n_) Properties" dialog.
    The "Driver Package rollback" dialog will open.
  19. Click the radio button next to "My apps don't work with this driver" in the "Driver Package rollback" dialog .
  20. Click the "Yes" button.
  21. Click the "Close" button in the "USB-SERIAL CH340 (COM_n_) Properties" dialog.

Now start Arduino IDE again and repeat whatever you were doing before when you encountered that error. Please reply here to let us know whether the error still occurs.

image
---this was the error---
Arduino: 1.8.12 (Windows 10), Board: "Arduino Nano, ATmega328P"

Sketch uses 2576 bytes (8%) of program storage space. Maximum is 30720 bytes.
Global variables use 345 bytes (16%) of dynamic memory, leaving 1703 bytes for local variables. Maximum is 2048 bytes.
An error occurred while uploading the sketch

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

---------------------------------------_--------------------------------------------------------------------------------------------------------

sorry about the delay, all the steps were successful and was able to roll back the driver, however when i upload it gives this error after a while of standing at upload.

Have you tried the different options under tools → processor? Not many clones use the (new) 328P bootloader, most use the 328P (Old bootloader).

it did not work

Correction @ptillisch I think it went back to the 2023 version? i went back to look cause it wasn't working, and this is what I got.

image

I tried plugging and unplugging after multiple tries and now this is the error-

Arduino: 1.8.12 (Windows 10), Board: "Arduino Nano, ATmega328P (Old Bootloader)"

Sketch uses 2576 bytes (8%) of program storage space. Maximum is 30720 bytes.
Global variables use 345 bytes (16%) of dynamic memory, leaving 1703 bytes for local variables. Maximum is 2048 bytes.
avrdude: ser_open(): can't set com-state for "\.\COM7"
An error occurred while uploading the sketch

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

I got it working i believe, I'll have to test it in game but i verified and uploaded successful is what it said. I'm not sure what i did, i believe was a error that fixed itself, thank you for the help.

Hm, I noticed you credited yourself Solution

I looked at your other 3 given Solution, and you always give it to yourself. Why?

well i thought you could give 2 so i clicked the last one and mine so they will see that that fixed it however not sure how...

However It is still being a pain in the butt and still refuses to work again so im not sure

I don't think it can be given more than one time. A suggestion is to give it to the one who gave the solution (of course) or the one who best contributed you toward the solution.

Also you can edit your topic to include Solved

If you haven't done so already, but try with some other computer(s), to rule out that the USB - Serial is faulty.

I figured that out however this isn't working still, so there isn't a technical solution just yet.

I have no other computers, however i have tried other ports and still is not working

Bummer. That is the quickest way to troubleshoot, if you can switch devices to find out when things start working as normal. I think you got some good advice from @ptillisch and @sterretje and that they are more capable than me to continue with this case.

For me, I'll check in @ the pillow :upside_down_face: