Having a problem programming a nano with one usb cable

Hello!

I haven’t been able to flash a nano using the same cable as the Jumperless. I followed this guide (excluding the resistor removal as you mentioned it’s not necessary for my particular board).

I can confirm that flashing the nano by itself and then connecting it to the Jumperless works fine.

Something odd I noticed is that reading the serial monitor works some of the time over the Jumperless port.

Steps taken

  1. Configured the Tx and Rx lines using the Wokwi Logic Analyzer like so

  1. Plugged in the Jumperless while holding the nano’s reset button down
  2. Saved the Wokwi connections
  3. Start the same upload command as I used for the nano alone (with the Jumperless port)
arduino-cli upload -i ./dist/src.ino.elf -b arduino:avr:nano:cpu=atmega328old -p /dev/cu.usbmodem03 -v
  1. Release the reset button after the Overriding Baud Rate ... line appears on the screen

After doing all that, the upload still fails, see the full output

$ arduino-cli upload -i ./dist/src.ino.elf -b arduino:avr:nano:cpu=atmega328old -p /dev/cu.usbmodem03 -v

"/Users/diego/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/bin/avrdude" "-C/Users/diego/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega328p -carduino "-P/dev/cu.usbmodem03" -b57600 -D "-Uflash:w:dist/src.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/diego/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf"
         User configuration file is "/Users/diego/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/cu.usbmodem03
         Using Programmer              : arduino
         Overriding Baud Rate          : 57600
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 2 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 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

About the setup

  • The nano is running with a delay(3500); in the setup() that is before cofiguring the Serial output
  • My nano is a clone :( it has a CH340 usb-to-serial converter

Questions

  • What might be causing this behavior?
  • Could this be related to using a clone instead of an official nano?