Skip to content

Unable to upload to Arduino Nano on M1 Mac Studio #1549

@ewrogers

Description

@ewrogers

Describe the problem

When using an Apple Mac Studio (M1 Max), I am unable to upload any code to the Arduino Nano via /dev/cu.usbserial-AB0JQVPN. Even the simple empty or blink script fails with the following error:

avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
...
Failed uploading: uploading error: exit status 1

I have tried using different cables, Arduino Nanos, and even avrdude directly via CLI. The same error persists and the Nano does not seem to be responding.

Interestingly enough, using a ISP (with the same USB cable to it) allows me to upload and flash code/bootloader. I just cannot flash directly to the Nano. It is a genuine Nano and I have multiple that I have all tried, including flashing new bootloaders via ISP.

It seems to be related to the Apple Silicon and UART. Using the SparkFun tinyISP I am able to flash via avrdude -c usbtiny -p atmega328p -b 57600 -U "flash:w:$1".

EDIT: After more testing I have determined it likely is the FT232RL UART chip in the Nano. My Uno R3 works perfectly and does not have this issue (comes up as /dev/cu.usbmodem101), as it uses a programmable ATMega 16U2 for UART instead of the FTDI IC.

To reproduce

  1. Connect Arduino Nano to Mac Studio (M1 Max)
  2. Select /dev/cu.usbserial-AXXXXXXX device
  3. Select Arduino Nano as board
  4. Attempt to upload blink example (or any other code)
  5. Get error: avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00

Expected behavior

The code should be uploaded to the Arduino Nano successfully.

Arduino IDE version

Version: 2.0.0 Date: 2022-09-14T07:08:28.861Z CLI Version: 0.27.1 [a900cfb2]

Operating system

macOS

Operating system version

12.6

Additional context

No response

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions