Arduino Uno can't upload program

I have an Arduino r3 mega328p, selected from Tools > Board "Arduino Uno", selected the only port i have Com1. I made a test with a led, the board works. When i try to upload a new programm it taks a while and i get this error:

Arduino: 1.8.16 (Windows 10), Board: "Arduino Uno"

Sketch uses 1050 bytes (3%) of program storage space. Maximum is 32256 bytes.

Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x4e

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x4e

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x4e

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x4e

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x4e

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x4e

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x4e

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x4e

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x4e

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x4e

Problem uploading to board. See https://support.arduino.cc/hc/en-us/sections/360003198300 for suggestions.

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

Are you sure that your UNO is on COM1?

That is the only port i can see.

Ok, if you open up the Windows Device Manager and expand the COM port section, does COM1 disappear when you unplug your UNO and then reappear when you plug it back in?

I unplug the UNO and reopend the IDE. I can still see COM1.

  1. Does COM1 disappear when you disconnect the board?
  2. Are there any new devices (e.g. unknown) showing anywhere in Windows device manager when you connect the board.

You probably need a driver but you need to identify the TTL-to-USB chip (the chip closest to the USB port) to know which one. Either try to read it (take sharp photo, enlarge) or check the VID and the PID in Windows device manager for the unknown device (right click, properties, details tab, Hardware Ids from the dropdown box).

If (!!) the chip is the CH340 (the most common one on clones), you can download the driver from CH341SER.ZIP - NanjingQinhengMicroelectronics, extract it and run the exe to install the driver.

The chip is mega328p. From Windows device manager> ports(COM & LPT) > Comunications Port (COM1) ( right click, propartis, details , Hardware Ids ) >
gives a Value of
ACPI\VEn_PNP&DEV_0501
ACPI\PNP05051
*PNP0501

The 328P is not the one closest to the USB port.

And COM1 is not the unknown device; Windowsknows what to do with it and hence it's COM1 and not unknown.

The usual way to solve this is as @sterretje says.

It's unlikely that your UNO is on COM1. You need to open up Device Manager and watch what happens when you plug your UNO in. Usually Device Manager will indicate that there is an unknown device shortly after you plug the UNO in. That's the device you need to right click on and find the VID & PID values.

Other devices has appeard.

On propertis> details> hardware ids

The value is

USB\VID_1A86&PID_7523&REV_0264
USB\VID_1A86&PID_7523

I updatet the driver it says that Windows did not find drivers for this device

PCI Lookup says it's an HL-340 USB-Serial adapter. A quick google for HL340 driver brings up a lot of hits. Install the driver and you should be good to go.

HL340 driver installed, COM3 apeard. I upload the program and it WORKS!

THX

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.