Cannot upload to Nano - probably USB/COM driver issue?

Hi,

I'm having trouble with a couple of new "Duinotech" Nano's that I bought - https://www.techbrands.com/store/product/xc4414.aspx . I'm thinking it's a USB/COM Port driver issue but can't be sure. The behaviour is:

  1. Plug it in. Red LEDs come on, one starts flashing. I've read that this is the pre-loaded "blink" program. All good.

  2. Normally (say with some of my Uno's), the Arduino IDE seems to auto-detect the board, the processor and the port, and displays it in the bottom right corner. I have the Programmer set to "AVR ISP mkII" and have never changed it.

  3. With these nano's, it doesn't auto-detect. HOWEVER, if I manually select the correct COM port, and go Tools -> Get Board Info, then I do get some data. (BN: Unknown board, VID: 0403, PID: 6001, SN: Upload any sketch to obtain it).

  4. When I go to upload, it tries ten times, and gives the error message:
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xe0

  5. I have downloaded and installed the Virtual COM Port / D2XX drivers from ftdichip.com. That doesn't fix the problem.

  6. Problem is the same on two Windows machines, so clearly something to do with the nano's themselves.

Any troubleshooting tips .. ?

roohif:
2. Normally (say with some of my Uno's), the Arduino IDE seems to auto-detect the board, the processor and the port, and displays it in the bottom right corner.

The Arduino IDE doesn't have that level of auto-detection. The only thing it does automatically is label the port in the Tools > Port menu with the board name. But even this can only be done when the board uses a custom VID/PID that is associated with an Arduino board. The classic Nanos, both the official, clone, and derivative boards, use a general purpose USB chip that has the manufacturer-provide VID/PID. So there's no way for the IDE to know which board is on the other side of that chip. But that port identification is only a convenience feature and you can get by just fine without it.

roohif:
I have the Programmer set to "AVR ISP mkII" and have never changed it.

The Tools > Programmer menu selection is only used when you do a Tools > Burn Bootloader or Sketch > Upload Using Programmer. It is completely ignored during all other operations so it makes no difference what you select from that menu.

roohif:
4. When I go to upload, it tries ten times, and gives the error message:

    avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xe0

Please do this:

  • (In the Arduino IDE) File > Preferences
  • Uncheck the checkbox next to "Show verbose output during: compilation"
  • Check the checkbox next to "Show verbose output during: upload
  • Click "OK"
  • Sketch > Upload
  • After the upload fails, you'll see a button on the right side of the orange bar "Copy error messages" (or the icon that looks like two pieces of paper at the top right corner of the black console window in the Arduino Web Editor). Click that button.
  • In a forum reply here, click on the reply field.
  • Click the </> button on the forum toolbar. This will add the forum's code tags markup to your reply.
  • Press "Ctrl + V". This will paste the upload output between the code tags.
  • Move the cursor outside of the code tags before you add any additional text to your reply.

I think that selecting 328P old bootloader under Tools/Processor will solve the problem.

sterretje:
I think that selecting 328P old bootloader under Tools/Processor will solve the problem.

You sir/madam are the winner :slight_smile:
Thank you!

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