Arduino nano(clone) uploading code but not running it

Hi @zenux

As @sterretje mentioned, that procedure is only necessary when you have an unlabeled "CH340" chip on your board. From the picture you shared, I can see that you have a labeled WCH CH340 chip, which should be compatible with the latest driver version. So I recommend you use the Windows Device Manager to update the driver back to the latest version again in order to benefit from any fixes or improvements the chip manufacturer might have made to the driver over the last few years.

It is possible that a short or external circuitry connected to the Arduino board could cause this type of problem by interfering with the upload process.

Make sure the board is not sitting on anything conductive that could short the contacts on the bottom of the board. Make sure there isn't any conductive debris (e.g., loose beads of solder, strands of wire, or component leads) on the board or on the surface the board is sitting on.

If you have another USB cable on hand, try changing the cable. Maybe a damaged or defective USB cable could be the cause. Make sure the USB cable is fully inserted into the USB socket on the board and computer.

If you have a shield or any external circuitry or components connected to your Arduino board, try this experiment:

  1. Disconnect the USB cable of the Arduino board from your computer.
  2. Disconnect any shields, modules, external circuitry, etc. from your board.
  3. Connect the Arduino board to your computer with a USB cable.

Now try uploading a sketch to the board again. Does the upload succeed?

This experiment will determine whether the upload error was caused by interference from your external circuitry. If so, you can then focus your attention on identifying the specific problem with the circuit and resolving it.