Error uploading the code

I'm using Arduino UNO and trying to upload the blink program, but , the following error is occuring

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.



Any help will be much appreciated
Thanks

Did you select the correct port in the Arduino IDE?

yess

Try a different USB cable.
Try a different USB port.
Try a different Arduino.
Try a different PC/laptop.

tried different cable,com port and arduino,,,
nothing worked

Are you able to get the board info?

You can also try rebooting your computer.

can you be so kind tell me where can i get board info?

i have restarted my computer as well, the uploading worked for the first time but didn't work again.

It's under tools, just below the port selection. It will just verify that the computer is communicating with the arduino.

tried different cable, port and arduino....
sometimes uploading is performed but sometimes it won't

Just to be sure, is this the blink code you are using?

/*
  Blink

  Turns an LED on for one second, then off for one second, repeatedly.

  Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO
  it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to
  the correct LED pin independent of which board is used.
  If you want to know what pin the on-board LED is connected to on your Arduino
  model, check the Technical Specs of your board at:
  https://www.arduino.cc/en/Main/Products

  modified 8 May 2014
  by Scott Fitzgerald
  modified 2 Sep 2016
  by Arturo Guadalupi
  modified 8 Sep 2016
  by Colby Newman

  This example code is in the public domain.

  http://www.arduino.cc/en/Tutorial/Blink
*/

// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(LED_BUILTIN, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);                       // wait for a second
  digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);                       // wait for a second
}

unknown board

this is the message i am getting from board info, since my arduino is is not original and only 'UNO' is printed on it, maybe this is the reason it's giving unknown board

Im using this code

/*
  Blink

  Turns an LED on for one second, then off for one second, repeatedly.

  Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO
  it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to
  the correct LED pin independent of which board is used.
  If you want to know what pin the on-board LED is connected to on your Arduino
  model, check the Technical Specs of your board at:
  https://www.arduino.cc/en/Main/Products

  modified 8 May 2014
  by Scott Fitzgerald
  modified 2 Sep 2016
  by Arturo Guadalupi
  modified 8 Sep 2016
  by Colby Newman

  This example code is in the public domain.

  https://www.arduino.cc/en/Tutorial/BuiltInExamples/Blink
*/

// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(LED_BUILTIN, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);                       // wait for a second
  digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);                       // wait for a second
}

My boards all show their full info as soon as they are connected to the computer. Have you tried a different USB port? Maybe try one directly attached to the motherboard?

dear, I have checked two usb ports, both are showing the same behaviour, can you tell me how can i find which usb port is connected to motherboard?

It would be one of the ones on the back of your computer in the cluster of ports. If it's a laptop it could be any of them or all of them.

dude! i have checked arduino on all my ports, it's showing an irregular behaviour, sometimes it uploading , sometimes its giving an error

Sorry, I've had similar issues a few times, but they were always solved by things already suggested in this thread. My last suggestion was just to make sure it wasn't going through a hub/splitter.

It's ok, thank you very much for your help