1

Arduino UNO R3

My error code: avrdude: ser_open(): can't set com-state for "\.\COM3" An error occurred while uploading the sketch

This has been mentioned several times before here in the Stack. I have been through several of them and followed the steps to delete/reinstall the CH340G Serial driver, change cables, and changed the USB port selection on the computer, all without success. The computer will 'see' the UNO.

I use Windows 11. I also learned that the card is a counterfeit from LAFVINTECH.COM. At the moment, I have no answers. I've tried everything I know of except taking it to the gun range.

StanB
  • 9
  • 3
  • Did you try turning the computer off then on again? – VE7JRO May 07 '23 at 20:47
  • Have you seen this Q+A? https://arduino.stackexchange.com/questions/55301/avrdude-ser-open-cant-set-com-state – VE7JRO May 07 '23 at 20:48
  • Did you assign USB on the Windows computer? Then Arduino IDE should be able to find the hardware when uploading the Sketch. This works for me. – John May 07 '23 at 23:13
  • Here are the answers to the above comments. – StanB May 08 '23 at 13:40
  • Did you try turning the computer off then on again? – VE7JRO

    YES

    Have you seen this Q+A? arduino.stackexchange.com/questions/55301/… – VE7JRO

    YES.

    Did you assign USB on the Windows computer? Then Arduino IDE should be able to find the hardware when uploading the Sketch. This works for me. – John

    The Computer automatically assigns a COM port to the connection. There are three USB ports on the front of the tower. They are COM 3, COM 4, and COM5. The computer has the correct Driver and then responds with a visible tie between card and PC.

    – StanB May 08 '23 at 13:46
  • 1
    The Computer automatically assigns a COM port to the connection. .... Normally in Arduino IDE you can pull down and change this, – John May 08 '23 at 16:26
  • I have more information that may be helpful - I connected an ATMEGA328P_U (call this one "A") to TWO different PCs and it worked fine. I then connected an ATMEGA328P_U_TH (Call this one "B") to both PCs and it did not 'see' the card in the proper way. "A" com port responded by adding 'Arduuino Uno' to the COM port number. "B" did not. – StanB May 09 '23 at 12:28

0 Answers0