# Arduino nano(clone) uploading code but not running it

**URL:** <https://forum.arduino.cc/t/arduino-nano-clone-uploading-code-but-not-running-it/1384038>\
**Category:** Uploading\
**Created:** [May 24, 2025, 8:28am UTC](https://forum.arduino.cc/t/arduino-nano-clone-uploading-code-but-not-running-it/1384038 "2025-05-24T08:28:56Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![zenux](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/zenux/32/1126450_2.png) [@zenux](https://forum.arduino.cc/u/zenux)\
**Post date:** [May 24, 2025, 8:28am UTC](https://forum.arduino.cc/t/arduino-nano-clone-uploading-code-but-not-running-it/1384038/1 "2025-05-24T08:28:56Z")

</div>

arduino nano compiling the code successfully but but the code does not run.

tried it with the blink sketch and a custom code and a display code but no solution

chatgpt says its a probem with the bootloader but how is it a problem with the bootloader if the code uploads

this is what i get after i upload;

avrdude: Version 6.3-20190619  
Copyright (c) 2000-2005 Brian Dean, [http://www.bdmicro.com/](http://www.bdmicro.com/)  
Copyright (c) 2007-2014 Joerg Wunsch

```
     System wide configuration file is "C:\Users\Eydo\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

     Using Port : COM8
     Using Programmer : arduino
     Overriding Baud Rate : 115200
     AVR Part : ATmega328P
     Chip Erase delay : 9000 us
     PAGEL : PD7
     BS2 : PC2
     RESET disposition : dedicated
     RETRY pulse : SCK
     serial program mode : yes
     parallel program mode : yes
     Timeout : 200
     StabDelay : 100
     CmdexeDelay : 25
     SyncLoops : 32
     ByteDelay : 0
     PollIndex : 3
     PollValue : 0x53
     Memory Detail :

                              Block Poll Page Polled
       Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
       ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
       eeprom 65 20 4 0 no 1024 4 0 3600 3600 0xff 0xff
       flash 65 6 128 0 yes 32768 128 256 4500 4500 0xff 0xff
       lfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
       hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
       efuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
       lock 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
       calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
       signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00

     Programmer Type : Arduino
     Description : Arduino
     Hardware Version: 3
     Firmware Version: 4.4
     Vtarget : 0.3 V
     Varef : 0.3 V
     Oscillator : 28.800 kHz
     SCK period : 3.3 us

```

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e950f (probably m328p)  
avrdude: reading input file "C:\Users\Eydo\AppData\Local\arduino\sketches\E648EE68BF3D8056518D3DC92650576F/sketch\_may4a.ino.hex"  
avrdude: writing flash (722 bytes):

Writing | ################################################## | 100% 0.09s

avrdude: 722 bytes of flash written

avrdude done. Thank you.

please help

---

<div class="post-metadata">

**Author:** ![jim-p](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/jim-p/32/922840_2.png) [@jim-p](https://forum.arduino.cc/u/jim-p)\
**Post date:** [May 24, 2025, 8:46am UTC](https://forum.arduino.cc/t/arduino-nano-clone-uploading-code-but-not-running-it/1384038/2 "2025-05-24T08:46:46Z")

</div>

> [@zenux](#):
>
> tried it with the blink sketch

Do you have and LED and resistor to connect to a different pin?

---

<div class="post-metadata">

**Author:** ![sterretje](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/sterretje/32/391294_2.png) [@sterretje](https://forum.arduino.cc/u/sterretje)\
**Post date:** [May 24, 2025, 10:34am UTC](https://forum.arduino.cc/t/arduino-nano-clone-uploading-code-but-not-running-it/1384038/3 "2025-05-24T10:34:26Z")

</div>

Enable _verify code after upload_ under file → preferences and perform an upload. Does it still succeed?

---

<div class="post-metadata">

**Author:** ![zenux](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/zenux/32/1126450_2.png) [@zenux](https://forum.arduino.cc/u/zenux)\
**Post date:** [May 24, 2025, 10:46am UTC](https://forum.arduino.cc/t/arduino-nano-clone-uploading-code-but-not-running-it/1384038/4 "2025-05-24T10:46:16Z")

</div>

I used the built in led but i did try but no luck

---

<div class="post-metadata">

**Author:** ![zenux](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/zenux/32/1126450_2.png) [@zenux](https://forum.arduino.cc/u/zenux)\
**Post date:** [May 24, 2025, 10:49am UTC](https://forum.arduino.cc/t/arduino-nano-clone-uploading-code-but-not-running-it/1384038/5 "2025-05-24T10:49:33Z")

</div>

Nope. does not upload here is there error i got

```
     System wide configuration file is "C:\Users\Eydo\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

     Using Port : COM8
     Using Programmer : arduino
     Overriding Baud Rate : 115200
     AVR Part : ATmega328P
     Chip Erase delay : 9000 us
     PAGEL : PD7
     BS2 : PC2
     RESET disposition : dedicated
     RETRY pulse : SCK
     serial program mode : yes
     parallel program mode : yes
     Timeout : 200
     StabDelay : 100
     CmdexeDelay : 25
     SyncLoops : 32
     ByteDelay : 0
     PollIndex : 3
     PollValue : 0x53
     Memory Detail :

                              Block Poll Page Polled
       Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
       ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
       eeprom 65 20 4 0 no 1024 4 0 3600 3600 0xff 0xff
       flash 65 6 128 0 yes 32768 128 256 4500 4500 0xff 0xff
       lfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
       hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
       efuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
       lock 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00
       calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00
       signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00

     Programmer Type : Arduino
     Description : Arduino
     Hardware Version: 3
     Firmware Version: 4.4
     Vtarget : 0.3 V
     Varef : 0.3 V
     Oscillator : 28.800 kHz
     SCK period : 3.3 us

```

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e950f (probably m328p)  
avrdude: reading input file "C:\Users\Eydo\AppData\Local\arduino\sketches\FC20271DD7F4731C1C0AD903CEC3F216/Blink.ino.hex"  
avrdude: writing flash (924 bytes):

Writing | ################################################## | 100% 0.12s

avrdude: 924 bytes of flash written  
avrdude: verifying flash memory against C:\Users\Eydo\AppData\Local\arduino\sketches\FC20271DD7F4731C1C0AD903CEC3F216/Blink.ino.hex:  
avrdude: load data flash data from input file C:\Users\Eydo\AppData\Local\arduino\sketches\FC20271DD7F4731C1C0AD903CEC3F216/Blink.ino.hex:  
avrdude: input file C:\Users\Eydo\AppData\Local\arduino\sketches\FC20271DD7F4731C1C0AD903CEC3F216/Blink.ino.hex contains 924 bytes  
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.12s

avrdude: verifying ...  
avrdude: verification error, first mismatch at byte 0x0000  
0x62 != 0x0c  
avrdude: verification error; content mismatch

avrdude done. Thank you.

Failed uploading: uploading error: exit status 1

---

<div class="post-metadata">

**Author:** ![sterretje](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/sterretje/32/391294_2.png) [@sterretje](https://forum.arduino.cc/u/sterretje)\
**Post date:** [May 24, 2025, 11:07am UTC](https://forum.arduino.cc/t/arduino-nano-clone-uploading-code-but-not-running-it/1384038/6 "2025-05-24T11:07:01Z")

</div>

> [@zenux](#):
>
> avrdude: verification error, first mismatch at byte 0x0000  
> 0x62 != 0x0c

So that is the reason why your uploaded sketch does not work. I have no idea why.

You might have bought a crappy clone; my advice would be to return it and ask for your money back.

Please post a clear picture of the IC on the top. It should be this

 ![5e3fbda95057c77ac248a0082d925e5d08ef515c_2_562x750](https://europe1.discourse-cdn.com/arduino/original/4X/4/b/4/4b4ccfcc9fe0d1aa4ecc5d0433b1c505d915cf88.jpeg)

Please also post a clear picture of the IC on the bottom of your board. Is there text readable on it? Which text? Most clones use the CH340 and should look like below.

 ![deb89af271c1ca775189d674b94160108a6ce428_2_999x750](https://europe1.discourse-cdn.com/arduino/original/4X/8/2/e/82e5795c47d30ac6b1fa8c4b643c7db80f0f5352.jpeg)

How does Windows device manager identify the board? As a CH340 or as a FTDI?

If Windows recognises the board as a CH340 and the IC on the bottom is the CH340 (16 pins) and has no print on it you will have to roll back the driver; see [Port monitor error: command 'open' failed: Invalid serial port. Could not connect to COM serial port - #49 by ptillisch](https://forum.arduino.cc/t/port-monitor-error-command-open-failed-invalid-serial-port-could-not-connect-to-com-serial-port/1127713/49).

---

<div class="post-metadata">

**Author:** ![zenux](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/zenux/32/1126450_2.png) [@zenux](https://forum.arduino.cc/u/zenux)\
**Post date:** [May 24, 2025, 11:36am UTC](https://forum.arduino.cc/t/arduino-nano-clone-uploading-code-but-not-running-it/1384038/7 "2025-05-24T11:36:31Z")

</div>

ok so here is the photos you requested.

 ![IMG_0593](https://europe1.discourse-cdn.com/arduino/original/4X/9/d/a/9daa3a00c4a59c378feec27d14c703c521f3461f.jpeg)  
 ![IMG_0598](https://europe1.discourse-cdn.com/arduino/original/4X/8/4/0/8405627a3b2290a2d6ff23a04da5e9b6cbadc2e7.jpeg)

incase its not visible the first image says "atmel mega328PB"

and the other says its an ch340c.

i did the stuff in the link u gave me but still does not work.

when i asked gpt he said its either a Corrupted bootloader or fuse settings or Damaged flash memory.

i will give you an understanding of when this issue began incase u are able to know the problem.

i was playing audio from the nano using a sd card and a speaker with a mosfet to strengthen the audio and it worked for like a second and when i tried to increase the volume from the code it wouldnt work so i decreased the volume and it still wouldnt work i then kept trying to upload the code and fix stuff but no luck. i when to try the blink example and it wouldnt blink it just suddenly stopped working its the wierdest thing that happened. and im so sure that i did not short anything because i kept checking.

what chatgpt said:

 ![image](https://europe1.discourse-cdn.com/arduino/original/4X/0/9/c/09cc2ee6262a18d840d6bc6eba74707d3f68b0cf.png)

also i sadly cant return i have this nano for a couple of months now and i used it alot so ya

---

<div class="post-metadata">

**Author:** ![sterretje](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/sterretje/32/391294_2.png) [@sterretje](https://forum.arduino.cc/u/sterretje)\
**Post date:** [May 24, 2025, 11:48am UTC](https://forum.arduino.cc/t/arduino-nano-clone-uploading-code-but-not-running-it/1384038/8 "2025-05-24T11:48:34Z")

</div>

Your board has the 328PB, not the 328P. It would be advisable to use the [MiniCore](https://github.com/MCUdude/MiniCore) board package.

---

<div class="post-metadata">

**Author:** ![jim-p](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/jim-p/32/922840_2.png) [@jim-p](https://forum.arduino.cc/u/jim-p)\
**Post date:** [May 24, 2025, 11:51am UTC](https://forum.arduino.cc/t/arduino-nano-clone-uploading-code-but-not-running-it/1384038/9 "2025-05-24T11:51:35Z")

</div>

but it's returning the signature byte for the 328P not the 328PB  
Hmmm..

---

<div class="post-metadata">

**Author:** ![zenux](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/zenux/32/1126450_2.png) [@zenux](https://forum.arduino.cc/u/zenux)\
**Post date:** [May 24, 2025, 12:02pm UTC](https://forum.arduino.cc/t/arduino-nano-clone-uploading-code-but-not-running-it/1384038/10 "2025-05-24T12:02:50Z")

</div>

not only that but uploading the code with the mini core package gives me this error

avrdude: Can't find programmer id "urclock"

and then a whole list of "valid programmers"

and then : Failed uploading: uploading error: exit status 1

---

<div class="post-metadata">

**Author:** ![zenux](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/zenux/32/1126450_2.png) [@zenux](https://forum.arduino.cc/u/zenux)\
**Post date:** [May 24, 2025, 12:04pm UTC](https://forum.arduino.cc/t/arduino-nano-clone-uploading-code-but-not-running-it/1384038/11 "2025-05-24T12:04:02Z")

</div>

well i just tried the mini core package and i get an error

---

<div class="post-metadata">

**Author:** ![jim-p](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/jim-p/32/922840_2.png) [@jim-p](https://forum.arduino.cc/u/jim-p)\
**Post date:** [May 24, 2025, 12:04pm UTC](https://forum.arduino.cc/t/arduino-nano-clone-uploading-code-but-not-running-it/1384038/12 "2025-05-24T12:04:57Z")

</div>

Was it wrong device signature?

---

<div class="post-metadata">

**Author:** ![zenux](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/zenux/32/1126450_2.png) [@zenux](https://forum.arduino.cc/u/zenux)\
**Post date:** [May 24, 2025, 12:08pm UTC](https://forum.arduino.cc/t/arduino-nano-clone-uploading-code-but-not-running-it/1384038/13 "2025-05-24T12:08:00Z")

</div>

nope. its this error

avrdude: Can't find programmer id "urclock"

and then a whole list of "valid programmers"

and then : Failed uploading: uploading error: exit status 1

---

<div class="post-metadata">

**Author:** ![jim-p](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/jim-p/32/922840_2.png) [@jim-p](https://forum.arduino.cc/u/jim-p)\
**Post date:** [May 24, 2025, 12:33pm UTC](https://forum.arduino.cc/t/arduino-nano-clone-uploading-code-but-not-running-it/1384038/14 "2025-05-24T12:33:07Z")

</div>

> [@zenux](#):
>
> avrdude: Can't find programmer id "urclock"

That may be a totally different and unrelated problem.

All I can say is that the chip is returning the signature for a 328P and not a 328PB. However, the 328PB is not a pin for pin replacement for the 328P.  
It may well be possible to execute code designed for the 328P that will damage a 328PB. That may explain why it worked at first but later failed when you tried different code.

---

<div class="post-metadata">

**Author:** ![6v6gt](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/6v6gt/32/225488_2.png) [@6v6gt](https://forum.arduino.cc/u/6v6gt)\
**Post date:** [May 24, 2025, 1:18pm UTC](https://forum.arduino.cc/t/arduino-nano-clone-uploading-code-but-not-running-it/1384038/15 "2025-05-24T13:18:16Z")

</div>

If you have a look at the pictures of the ATmega328PB you see a wide variety.

 ![image](https://europe1.discourse-cdn.com/arduino/original/4X/5/a/b/5ab8eb4eb0ccd4264d61480a4505e677c929589d.jpeg)

The middle one is closest to that of the OP in post #7 but the font is a little bolder here. I've not idea which, if any, are fakes.

---

<div class="post-metadata">

**Author:** ![zenux](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/zenux/32/1126450_2.png) [@zenux](https://forum.arduino.cc/u/zenux)\
**Post date:** [May 24, 2025, 1:19pm UTC](https://forum.arduino.cc/t/arduino-nano-clone-uploading-code-but-not-running-it/1384038/16 "2025-05-24T13:19:40Z")

</div>

So basically my board is cooked? And there is no way to fix if?

---

<div class="post-metadata">

**Author:** ![zenux](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/zenux/32/1126450_2.png) [@zenux](https://forum.arduino.cc/u/zenux)\
**Post date:** [May 24, 2025, 1:22pm UTC](https://forum.arduino.cc/t/arduino-nano-clone-uploading-code-but-not-running-it/1384038/17 "2025-05-24T13:22:14Z")

</div>

I think the text got less visible by time. I can try to send you a clearer picture or atleast try to tell u the text written if that will help.

---

<div class="post-metadata">

**Author:** ![jim-p](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/jim-p/32/922840_2.png) [@jim-p](https://forum.arduino.cc/u/jim-p)\
**Post date:** [May 24, 2025, 2:49pm UTC](https://forum.arduino.cc/t/arduino-nano-clone-uploading-code-but-not-running-it/1384038/18 "2025-05-24T14:49:58Z")

</div>

> [@zenux](#):
>
> So basically my board is cooked? And there is no way to fix if?

Other than replace the 328, I don't see what else you could do.  
Most of the time it's just cheaper to throw it out.

---

<div class="post-metadata">

**Author:** ![ptillisch](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@ptillisch](https://forum.arduino.cc/u/ptillisch)\
**Post date:** [May 24, 2025, 5:26pm UTC](https://forum.arduino.cc/t/arduino-nano-clone-uploading-code-but-not-running-it/1384038/19 "2025-05-24T17:26:28Z")

</div>

Hi @zenux

> [@zenux](#):
>
> i did the stuff in the link u gave me but still does not work.

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.

> [@zenux](#):
>
> there is no way to fix if?

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.

---

<div class="post-metadata">

**Author:** ![pegaze](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/pegaze/32/1098597_2.png) [@pegaze](https://forum.arduino.cc/u/pegaze)\
**Post date:** [May 24, 2025, 5:56pm UTC](https://forum.arduino.cc/t/arduino-nano-clone-uploading-code-but-not-running-it/1384038/20 "2025-05-24T17:56:11Z")

</div>

Have you try "old bootloader"?

[Next page](https://forum.arduino.cc/t/arduino-nano-clone-uploading-code-but-not-running-it/1384038.md?page=2)
