Arduino Nano avrdude error while uploading

When i try to upload any code into my Arduino Nano (2 years old) it says this error in output:

Sketch uses 3786 bytes (26%) of program storage space. Maximum is 14336 bytes.
Global variables use 218 bytes (21%) of dynamic memory, leaving 806 bytes for local variables. Maximum is 1024 bytes.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xaa
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xaa
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xaa
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xaa
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xaa
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xaa
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xaa
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xaa
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xaa
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xaa
Failed uploading: uploading error: exit status 1

please help, thanks

Welcome to the forum

If the board that you are using is a classic Nano then try changing the processor in the Tools menu of the IDE

i tried it still error
(i had same problem when i first buy the nano so i changed processor into ATmega328P Old bootloader then it worked but now it doesnt work)

Hi @cinaxoffical. I'm going to ask you to provide the full verbose output from an upload attempt.


:red_exclamation_mark: This procedure is not intended to solve the problem. The purpose is to gather more information.


Please do this:

  1. Select File > Preferences... (or Arduino IDE > Settings... for macOS users) from the Arduino IDE menus.
    The "Preferences" dialog will open.
  2. Uncheck the box next to Show verbose output during: compile in the "Preferences" dialog.
  3. Check the box next to Show verbose output during: ☐ upload.
  4. Click the "OK" button.
    The "Preferences" dialog will close.
  5. Attempt an upload, as you did before.
  6. Wait for the upload to fail.
  7. You will see an "Upload error: ..." notification at the bottom right corner of the Arduino IDE window. Click the "COPY ERROR MESSAGES" button on that notification.
  8. Open a forum reply here by clicking the "Reply" button.
  9. Click the <CODE/> icon on the post composer toolbar.
    This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
  10. Press the Ctrl+V keyboard shortcut (Command+V for macOS users).
    This will paste the error output from the upload into the code block.
  11. Move the cursor outside of the code block markup before you add any additional text to your reply.
  12. Click the "Reply" button to post the output.
FQBN: arduino:avr:nano:cpu=atmega328old
Using board 'nano' from platform in folder: C:\Users\pc\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Using core 'arduino' from platform in folder: C:\Users\pc\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6

Detecting libraries used...
C:\Users\pc\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -IC:\Users\pc\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\pc\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\eightanaloginputs C:\Users\pc\AppData\Local\arduino\sketches\505837C37B22034E3FB3A7BA97F9A12C\sketch\sketch_apr23a.ino.cpp -o nul
Generating function prototypes...
C:\Users\pc\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -IC:\Users\pc\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\pc\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\eightanaloginputs C:\Users\pc\AppData\Local\arduino\sketches\505837C37B22034E3FB3A7BA97F9A12C\sketch\sketch_apr23a.ino.cpp -o C:\Users\pc\AppData\Local\Temp\3268365704\sketch_merged.cpp
C:\Users\pc\AppData\Local\Arduino15\packages\builtin\tools\ctags\5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives C:\Users\pc\AppData\Local\Temp\3268365704\sketch_merged.cpp

Compiling sketch...
"C:\\Users\\pc\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\\Users\\pc\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\pc\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\eightanaloginputs" "C:\\Users\\pc\\AppData\\Local\\arduino\\sketches\\505837C37B22034E3FB3A7BA97F9A12C\\sketch\\sketch_apr23a.ino.cpp" -o "C:\\Users\\pc\\AppData\\Local\\arduino\\sketches\\505837C37B22034E3FB3A7BA97F9A12C\\sketch\\sketch_apr23a.ino.cpp.o"
Compiling libraries...
Compiling core...
Using precompiled core: C:\Users\pc\AppData\Local\arduino\cores\arduino_avr_nano_cpu_atmega328old_ab4ffa8d8a675f099a8235a1c6ef4ea1\core.a
Linking everything together...
"C:\\Users\\pc\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o "C:\\Users\\pc\\AppData\\Local\\arduino\\sketches\\505837C37B22034E3FB3A7BA97F9A12C/sketch_apr23a.ino.elf" "C:\\Users\\pc\\AppData\\Local\\arduino\\sketches\\505837C37B22034E3FB3A7BA97F9A12C\\sketch\\sketch_apr23a.ino.cpp.o" "C:\\Users\\pc\\AppData\\Local\\arduino\\sketches\\505837C37B22034E3FB3A7BA97F9A12C/..\\..\\cores\\arduino_avr_nano_cpu_atmega328old_ab4ffa8d8a675f099a8235a1c6ef4ea1\\core.a" "-LC:\\Users\\pc\\AppData\\Local\\arduino\\sketches\\505837C37B22034E3FB3A7BA97F9A12C" -lm
"C:\\Users\\pc\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\\Users\\pc\\AppData\\Local\\arduino\\sketches\\505837C37B22034E3FB3A7BA97F9A12C/sketch_apr23a.ino.elf" "C:\\Users\\pc\\AppData\\Local\\arduino\\sketches\\505837C37B22034E3FB3A7BA97F9A12C/sketch_apr23a.ino.eep"
"C:\\Users\\pc\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\pc\\AppData\\Local\\arduino\\sketches\\505837C37B22034E3FB3A7BA97F9A12C/sketch_apr23a.ino.elf" "C:\\Users\\pc\\AppData\\Local\\arduino\\sketches\\505837C37B22034E3FB3A7BA97F9A12C/sketch_apr23a.ino.hex"
"C:\\Users\\pc\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-size" -A "C:\\Users\\pc\\AppData\\Local\\arduino\\sketches\\505837C37B22034E3FB3A7BA97F9A12C/sketch_apr23a.ino.elf"
Sketch uses 3786 bytes (12%) of program storage space. Maximum is 30720 bytes.
Global variables use 218 bytes (10%) of dynamic memory, leaving 1830 bytes for local variables. Maximum is 2048 bytes.
avrdude: ser_open(): can't set com-state for "\\.\COM3"
Failed uploading: uploading error: exit status 1

still no response

This "can't set com-state for ..." error occurs when uploading to the boards that use specific batches of the WCH CH340 USB chip. The problem only occurs when using the latest version of the CH340 driver.

The workaround for the problem is to perform a "roll back" to an older version of the driver that is compatible with these problematic "CH340" chips. I'll provide instructions you can follow to do that:

  1. Click the following link to download the previous version of the driver from the chip manufacturer's website:
    https://www.wch-ic.com/downloads/file/65.html?time=2023-03-16%2022:57:59
  2. Wait for the download to finish.
  3. Run the downloaded CH341SER.EXE file.
  4. A "User Account Control" dialog may now appear asking "Do you want to allow this app to make changes to your device?". Click the "Yes" button.
  5. A "DriverSetup(X64)" dialog will open. Click the "INSTALL" button in the dialog.
  6. Wait for the driver installation to finish, as indicated by the appearance of a "Driver install success!" dialog.
  7. Click the "OK" button in the "Driver install success!" dialog.
    The dialog will close.
  8. Click the X icon at the top right of the "DriverSetup(X64)" dialog
    The dialog will close.
  9. Close Arduino IDE if it is running.
  10. Connect the Arduino board to your computer with a USB cable.
  11. Open the Windows Device Manager.
  12. Select View > Devices by type from the Device Manager menus.
  13. Open the "View" menu.
  14. If there is a to the left of the "Show hidden devices" menu item, click on "Show hidden devices" to disable it.
  15. Open the "Ports (COM & LPT)" section of the Device Manager tree.
  16. You should see a port identified as "USB-SERIAL CH340 (COMn)" under the "Ports (COM & LPT)" section (where "COMn" is some serial port e.g., COM4). Double click on that item.
    The "USB-SERIAL CH340 (COMn) Properties" dialog will open.
  17. Select the "Driver" tab of the "USB-SERIAL CH340 (COMn) Properties" dialog.
  18. You will see a "Roll Back Driver" button in the dialog. If it is not clickable, perform the following instructions:
    1. Click the "Update driver" button.
      An "Update Drivers Device - USB-SERIAL CH340 (COMn)" dialog will open.
    2. Click on "Search automatically for drivers" in the "Update Drivers Device - USB-SERIAL CH340 (COMn)" dialog.
    3. You should now see the driver installation wizard update the driver. Wait for the update to finish, as indicated by the message "Windows has successfully updated your drivers" in the dialog.
      :red_exclamation_mark: It is possible you will instead see the message "The best drivers are already installed". If so, please stop following the instructions here and reply on the forum topic to let me know. I'll provide alternative instructions you can follow.
    4. Click the "Close" button in the "Update Drivers Device - USB-SERIAL CH340 (COMn)" dialog.
      The dialog will close.
  19. Click the "Roll Back Driver" button in the "USB-SERIAL CH340 (COMn) Properties" dialog.
    The "Driver Package rollback" dialog will open.
  20. Click the radio button next to "My apps don't work with this driver" in the "Driver Package rollback" dialog .
  21. Click the "Yes" button.
    The "Driver Package rollback" dialog will close.
  22. Click the "Close" button in the "USB-SERIAL CH340 (COMn) Properties" dialog.

Now start Arduino IDE again and repeat whatever you were doing before when you encountered that error before. Hopefully this time you will not encounter that "can't set com-state" error during the sketch upload.

yeah it says that

still waiting

I have found that when the driver installation gets into this state, it can be solved by uninstalling and then reinstalling the drivers. After that, the "roll back" option should be enabled.

I'll provide instructions you can follow to do that:

  1. Close Arduino IDE if it is running.
  2. Connect the Arduino board to your computer with a USB cable.
  3. Open the Windows Device Manager.
  4. Select View > Devices by type from the Device Manager menus.
  5. Open the "View" menu.
  6. If there is a to the left of the "Show hidden devices" menu item, click on "Show hidden devices" to disable it.
  7. Open the "Ports (COM & LPT)" section of the Device Manager tree.
  8. You should see a port identified as "USB-SERIAL CH340 (COMn)" under the "Ports (COM & LPT)" section (where "COMn" is some serial port e.g., COM4). Double click on that item.
    The "USB-SERIAL CH340 (COMn) Properties" dialog will open.
  9. Select the "Driver" tab of the "USB-SERIAL CH340 (COMn) Properties" dialog.
  10. Click the "Uninstall Device" button.
    The "Uninstall Device" dialog will open.
  11. Check the box next to "☐ Attempt to remove the driver for this device.".
  12. Click the "Uninstall" button.
    The "Uninstall Device" and "USB-SERIAL CH340 (COMn) Properties" dialogs will close.
  13. Disconnect the USB cable of the Arduino board from your computer.
  14. Reconnect the USB cable of the Arduino board to your computer.
  15. Wait for the "USB-SERIAL CH340 (COMn)" device to appear under the "Ports (COM & LPT)" section of the Device Manager tree.
    :red_exclamation_mark: This will take a couple of minutes as Windows must first automatically reinstall the driver.
    :red_exclamation_mark: It might appear first as a "USB2.0-Serial" device under the "Other devices section of the tree. Just wait for a little longer and it will appear in its final place under the "Ports (COM & LPT)" section.
  16. Click the following link to download the previous version of the driver from the chip manufacturer's website:
    https://www.wch-ic.com/downloads/file/65.html?time=2023-03-16%2022:57:59
  17. Wait for the download to finish.
  18. Run the downloaded CH341SER.EXE file.
  19. A "User Account Control" dialog may now appear asking "Do you want to allow this app to make changes to your device?". Click the "Yes" button.
  20. A "DriverSetup(X64)" dialog will open. Click the "INSTALL" button in the dialog.
  21. Wait for the driver installation to finish, as indicated by the appearance of a "Driver install success!" dialog.
  22. Click the "OK" button in the "Driver install success!" dialog.
    The dialog will close.
  23. Click the X icon at the top right of the "DriverSetup(X64)" dialog.
    The dialog will close.
  24. Switch back to the Windows "Device Manager".
  25. Double click on the "USB-SERIAL CH340 (COMn)" device under the "Ports (COM & LPT)" section.
    The "USB-SERIAL CH340 (COMn) Properties" dialog will open.
  26. Select the "Driver" tab of the "USB-SERIAL CH340 (COMn) Properties" dialog.
  27. Click the "Update driver" button.
    An "Update Drivers Device - USB-SERIAL CH340 (COMn)" dialog will open.
  28. Click on "Search automatically for drivers" in the "Update Drivers Device - USB-SERIAL CH340 (COMn)" dialog.
  29. You should now see the driver installation wizard update the driver. Wait for the update to finish, as indicated by the message "Windows has successfully updated your drivers" in the dialog.
  30. Click the "Close" button in the "Update Drivers Device - USB-SERIAL CH340 (COMn)" dialog.
    The dialog will close.
  31. Click the "Roll Back Driver" button in the "USB-SERIAL CH340 (COMn) Properties" dialog.
    The "Driver Package rollback" dialog will open.
  32. Click the radio button next to "My apps don't work with this driver" in the "Driver Package rollback" dialog .
  33. Click the "Yes" button.
    The "Driver Package rollback" dialog will close.
  34. Click the "Close" button in the "USB-SERIAL CH340 (COMn) Properties" dialog.

Now start Arduino IDE again and repeat whatever you were doing before when you encountered that error before. Hopefully this time you will not encounter that "can't set com-state" error during the sketch upload.

1 Like

Please slow down a bit. You need to give people time, they also have other things to do.

1 Like

Hello, I have been having the same issue, though I am on a mac, and I am unable to install the CH34 driver. Is there a place I can find it online?

Hi @klumpy7. I'm going to ask you to provide the full verbose output from an upload attempt.


:red_exclamation_mark: This procedure is not intended to solve the problem. The purpose is to gather more information.


Please do this:

  1. Select File > Preferences... (or Arduino IDE > Settings... for macOS users) from the Arduino IDE menus.
    The "Preferences" dialog will open.
  2. Uncheck the box next to Show verbose output during: compile in the "Preferences" dialog.
  3. Check the box next to Show verbose output during: ☐ upload.
  4. Click the "OK" button.
    The "Preferences" dialog will close.
  5. Attempt an upload, as you did before.
  6. Wait for the upload to fail.
  7. You will see an "Upload error: ..." notification at the bottom right corner of the Arduino IDE window. Click the "COPY ERROR MESSAGES" button on that notification.
  8. Open a reply here on this forum topic by clicking the "Reply" button.
  9. Click the <CODE/> icon on the post composer toolbar.
    This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
  10. Press the Ctrl+V keyboard shortcut (Command+V for macOS users).
    This will paste the error output from the upload into the code block.
  11. Move the cursor outside of the code block markup before you add any additional text to your reply.
  12. Click the "Reply" button to publish the post.

Here is the error I get when uploading any code. I am using the Blink Example for this exercise. IT may also be worth mentioning that Arduino IDE does not automatically recognize my Nano. I have tried all the different Processors and most of the Programmer settings. Get Board Info isn't super helpful, and returns this:

BN: Unknown Board
VID: 0x1A86
PID: 0x7523
SN: (null)

Here is the verbose output from the compiler:

FQBN: arduino:avr:nano
Using board 'nano' from platform in folder: /Users/klumpy/Library/Arduino15/packages/arduino/hardware/avr/1.8.6
Using core 'arduino' from platform in folder: /Users/klumpy/Library/Arduino15/packages/arduino/hardware/avr/1.8.6

Detecting libraries used...
/Users/klumpy/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I/Users/klumpy/Library/Arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/Users/klumpy/Library/Arduino15/packages/arduino/hardware/avr/1.8.6/variants/eightanaloginputs /private/var/folders/j7/sbxtq45j4hd90ls1x8s66nlm0000gn/T/arduino/sketches/2B7AB0BCB2149738311D7B6D808A556D/sketch/Blink.ino.cpp -o /dev/null
Generating function prototypes...
/Users/klumpy/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I/Users/klumpy/Library/Arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/Users/klumpy/Library/Arduino15/packages/arduino/hardware/avr/1.8.6/variants/eightanaloginputs /private/var/folders/j7/sbxtq45j4hd90ls1x8s66nlm0000gn/T/arduino/sketches/2B7AB0BCB2149738311D7B6D808A556D/sketch/Blink.ino.cpp -o /private/var/folders/j7/sbxtq45j4hd90ls1x8s66nlm0000gn/T/1856614375/sketch_merged.cpp
/Users/klumpy/Library/Arduino15/packages/builtin/tools/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /private/var/folders/j7/sbxtq45j4hd90ls1x8s66nlm0000gn/T/1856614375/sketch_merged.cpp
Compiling sketch...
/Users/klumpy/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I/Users/klumpy/Library/Arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/Users/klumpy/Library/Arduino15/packages/arduino/hardware/avr/1.8.6/variants/eightanaloginputs /private/var/folders/j7/sbxtq45j4hd90ls1x8s66nlm0000gn/T/arduino/sketches/2B7AB0BCB2149738311D7B6D808A556D/sketch/Blink.ino.cpp -o /private/var/folders/j7/sbxtq45j4hd90ls1x8s66nlm0000gn/T/arduino/sketches/2B7AB0BCB2149738311D7B6D808A556D/sketch/Blink.ino.cpp.o
Compiling libraries...
Compiling core...
Using precompiled core: /private/var/folders/j7/sbxtq45j4hd90ls1x8s66nlm0000gn/T/arduino/cores/arduino_avr_nano_cpu_atmega328_791f60b525e7f89ed37f91499e380113/core.a
Linking everything together...
/Users/klumpy/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-gcc -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o /private/var/folders/j7/sbxtq45j4hd90ls1x8s66nlm0000gn/T/arduino/sketches/2B7AB0BCB2149738311D7B6D808A556D/Blink.ino.elf /private/var/folders/j7/sbxtq45j4hd90ls1x8s66nlm0000gn/T/arduino/sketches/2B7AB0BCB2149738311D7B6D808A556D/sketch/Blink.ino.cpp.o /private/var/folders/j7/sbxtq45j4hd90ls1x8s66nlm0000gn/T/arduino/sketches/2B7AB0BCB2149738311D7B6D808A556D/../../cores/arduino_avr_nano_cpu_atmega328_791f60b525e7f89ed37f91499e380113/core.a -L/private/var/folders/j7/sbxtq45j4hd90ls1x8s66nlm0000gn/T/arduino/sketches/2B7AB0BCB2149738311D7B6D808A556D -lm
/Users/klumpy/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 /private/var/folders/j7/sbxtq45j4hd90ls1x8s66nlm0000gn/T/arduino/sketches/2B7AB0BCB2149738311D7B6D808A556D/Blink.ino.elf /private/var/folders/j7/sbxtq45j4hd90ls1x8s66nlm0000gn/T/arduino/sketches/2B7AB0BCB2149738311D7B6D808A556D/Blink.ino.eep
/Users/klumpy/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy -O ihex -R .eeprom /private/var/folders/j7/sbxtq45j4hd90ls1x8s66nlm0000gn/T/arduino/sketches/2B7AB0BCB2149738311D7B6D808A556D/Blink.ino.elf /private/var/folders/j7/sbxtq45j4hd90ls1x8s66nlm0000gn/T/arduino/sketches/2B7AB0BCB2149738311D7B6D808A556D/Blink.ino.hex

/Users/klumpy/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-size -A /private/var/folders/j7/sbxtq45j4hd90ls1x8s66nlm0000gn/T/arduino/sketches/2B7AB0BCB2149738311D7B6D808A556D/Blink.ino.elf
Sketch uses 924 bytes (3%) of program storage space. Maximum is 30720 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
"/Users/klumpy/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/bin/avrdude" "-C/Users/klumpy/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega328p -carduino "-P/dev/cu.usbserial-210" -b115200 -D "-Uflash:w:/private/var/folders/j7/sbxtq45j4hd90ls1x8s66nlm0000gn/T/arduino/sketches/2B7AB0BCB2149738311D7B6D808A556D/Blink.ino.hex:i"

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

         System wide configuration file is "/Users/klumpy/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf"
         User configuration file is "/Users/klumpy/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/cu.usbserial-210
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
(...)
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00

avrdude done.  Thank you.

Failed uploading: uploading error: exit status 1

If you expect it to state that it's a Nano under Tools → Ports that will not happen because your board uses a generic srial-to-usb adapter.

Does that port disappear when you disconnect the board?

Ok, thank you for the reply! The port /dev/cu.usbserial-110 appears and disappears immediately upon plugging and unplugging the nano. I have seen it (rarely!) come up as /dev/cu.usbserial-210 as well, but usually it's 110. I also have a Bluno nano V1.3 by DFRobot, and it works very well. It shows up as /dev/cu.usbmodem-1101.

You mentioned that you tried different processors.

This indicates the "new" bootloader. Please verify (again) that the "old bootloader" does not work.

Please take clear photos of the top and the bottom of the board and post them here; you can drag and drop them (but might need two posts). We should be able to read the print in the ICs (CH340 (according to the VID/PID) at the bottom, 328P on the top).

Well, I tried the old bootloader again, and it worked. I am sure I tried it before, but this time it worked. (insert USB meme here)

For interest's sake, the microprocessor is an Atmel Mega328P, and the driver is the CH340G.

I may look into faulty connections on the board that might be causing intermittent issues; the soldering on the headers looks pretty messy.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.