Error uploading the code

Hello Arduino family!
I am using Arduino UNO and trying to uploading a blink sketch. I have used different ports , different cable and also restarting the computer, but issue is irregular error messages. sometimes the arduino compiled, but sometimes it gives different errors. following are some errors

Arduino: 1.8.19 (Windows Store 1.8.57.0) (Windows 10), Board: "Arduino Uno"

Sketch uses 924 bytes (2%) 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_recv(): programmer is not responding

avr_read(): error reading address 0x0000

    read operation not supported for memory "flash"

avrdude: failed to read all of flash memory, rc=-2

avrdude: stk500_recv(): programmer is not responding

the selected serial port avrdude: stk500_recv(): programmer is not responding

 does not exist or your board is not connected



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

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

Sketch uses 924 bytes (2%) 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_getsync() attempt 1 of 10: not in sync: resp=0x10

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

avrdude: stk500_set_extended_parms(): protocol error, expect=0x14, resp=0x10

avrdude: stk500_initialize(): failed

avrdude: initialization failed, rc=-1

         Double check connections and try again, or use -F to override

         this check.



the selected serial port 

 does not exist or your board is not connected



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

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

Sketch uses 924 bytes (2%) 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.

An error occurred while uploading the sketch



avrdude: arduino_read_sig_bytes(): (a) protocol error, expect=0x14, resp=0x1e

avrdude: error reading signature data for part "ATmega328P", rc=-2

avrdude: error reading signature data, rc=-2

avrdude: stk500_recv(): programmer is not responding



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

avrdude: stk500_loadaddr(): (a) protocol error, expect=0x14, resp=0x10
Arduino: 1.8.19 (Windows 10), Board: "Arduino Uno"

Sketch uses 924 bytes (2%) 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.

An error occurred while uploading the sketch

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_recv(): programmer is not responding

avr_read(): error reading address 0x0000

    read operation not supported for memory "flash"

avrdude: failed to read all of flash memory, rc=-2

avrdude: stk500_recv(): programmer is not responding



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

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

Sketch uses 924 bytes (2%) 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_recv(): programmer is not responding

avr_read(): error reading address 0x0000

    read operation not supported for memory "flash"

avrdude: failed to read all of flash memory, rc=-2

avrdude: stk500_recv(): programmer is not responding

the selected serial port avrdude: stk500_recv(): programmer is not responding

 does not exist or your board is not connected



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

I'm not getting what is the main reason for this behaviour, kindly help

Are you using an original Arduino UNO or some clone? If it's a clone please post a link to it.

As the errors are not reproducible and change from call to call it's hard to do a remote analysis.

Check the voltage from the 5V pin to the GND pin on your UNO. What value do you get?

Did you succeed at least once or do you always get errors?

I'm using a clone, but I don't know how to post a link to it,can you please tell me how to post , i have bought this clone from a local shop.
I have succeeded multiple times in programming the board but not always.
Thanks very much

Copy the URL from your browser and paste it here.

Dear sterretje, I have bought a clone from a local shop, im doing programming in software, i don't know which url i have to copy and paste,

Take a sharp picture of your board and post it here!




Here is the picture, thanks

I have post the pictures, please review

That's a clone which is not fully hardware compatible to the Arduino UNO (for example it doesn't use an ATmega16U2 as the USB2serial chip).
My guess is a bad circuit design in the power section so you don't have a stable supply power for the chips. At least the decoupling capacitors are to far from the MCU, there may be other flaws.
You probably have to live with these errors or get an original Arduino UNO.

Ok thank you very much

will installing the bootloader work?

Most probably not. If my guess above is correct it won't change anything.

One other thing is to look carefully at the soldering on the underside of the board. Some boards I have seen have the most abysmal solder quality - poor hole fill, poor solder temperature, sloppy component positioning, etc. Before you toss it, look in particular at the solder connections of the USB port, because that component is often added manually, and therefore is also subject to human failures; certainly, a failed lead joint here would result in the random conditions you describe.
C

(post deleted by author)

(post deleted by author)

Hi,
Can you please stop adding more and more duplicate threads to the forum.
It is wasteful and confusing.

Thanks.. Tom... :smiley: :+1: :australia:
PS. Depending apon what time it is in various parts of the world, you would be best to wait at least 24hours for a response.

Dear Tom, This error is different from the previous error, it's not the same

Hi,
Is this the first time you have tried to upload code to this particular UNO, or have you been able to upload without error to it before?

Can you upload to another UNO to check your hardware?

Tom... :smiley: :+1: :coffee: :australia:

It's not the first time i'm uploading, usually most of the time i got errors .
I have checked on other hardware also, the code was working fine on that .

Hi,
Have you checked that the correct com port has been selected?

What OS and IDE version are you using?

Tom... :smiley: :+1: :coffee: :australia:
PS; Please do not add more threads with the same enquiry.