I cannot upload code to the arduino board

Arduino: 1.8.12 (Windows Store 1.8.33.0) (Windows 10), Board: "Arduino Uno"

Sketch uses 1938 bytes (6%) of program storage space. Maximum is 32256 bytes.
Global variables use 184 bytes (8%) of dynamic memory, leaving 1864 bytes for local variables. Maximum is 2048 bytes.
An error occurred while uploading the sketch
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x1d
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x1d
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x1d
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x1d
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x1d
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x1d
Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x1d
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x1d
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x1d
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x1d

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

Have you had a look at the troubleshooting steps as shown in the error message?

http://www.arduino.cc/en/Guide/Troubleshooting#upload

Is there any further useful information shown when you enable verbose mode as indicated?

Quick rundown:

  • port detected in Device Manager? (driver?)
  • port shown in IDE?
  • correct port selected in IDE?
  • correct board selected in IDE?
  • nothing connected to RX0/TX0?
  • tried another USB cable?

If all above are correct then maybe try the ordinary installer version that can be downloaded from arduino.cc. Some problems have been reported with the Windows Store version.

what programmer are you using

the programmer is USBasp

Check the voltage on pins RAW & VCC.

You'll get this is your voltage drops to 4.6v during the Write / verification Read phases.

It's common if using a USB to TTL adapter to see the voltage drop too much when trying to program the chip.

Which arduino board are you trying to program? Your post shows an Uno, but you normally would not be using a USBasp when the board has a built-in USB to serial converter.