Unable to programme Arduino Leonardo

I ordered 6 Arduino Uno R3’s from core a few months back. I opened the first one today and found that you’ve sent me Leonardos instead. Shouldn’t be a problem except that all the USB cables you sent are for the Uno, and not the micro for the leonardo. Anyway I connected the Leonardo up and tried to upload a sketch using the IDE on an Apple MacBook Pro running Mac OS Big Sur 11.4. The port appears as /dev/cv usb.modem 111201 (Arduino Leonardo) and the Board Info appears as follows
BN: Arduino Leonardo
VID: 2A03
PID: 803
SN: (null)
I tried uploading a sketch that has worked successfully on a Uno R3, and I’m getting the following error messages
Arduino: 1.8.13 (Mac OS X), Board: “Arduino Leonardo”

Sketch uses 5086 bytes (17%) of program storage space. Maximum is 28672 bytes.
Global variables use 155 bytes (6%) of dynamic memory, leaving 2405 bytes for local variables. Maximum is 2560 bytes.
ioctl(“TIOCMGET”): Device not configured
avrdude: ser_drain(): read error: Device not configured
avrdude: ser_send(): write error: Device not configured
avrdude: ser_drain(): read error: Device not configured
avrdude: ser_send(): write error: Device not configured
avrdude: ser_drain(): read error: Device not configured
avrdude: ser_send(): write error: Device not configured
avrdude: ser_recv(): read error: Device not configured
avrdude: ser_recv(): read error: Device not configured

avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: ser_send(): write error: Device not configured
avrdude: ser_recv(): read error: Device not configured
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: ser_send(): write error: Device not configured
avrdude: ser_recv(): read error: Device not configured
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: ser_send(): write error: Device not configured
avrdude: ser_recv(): read error: Device not configured
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: ser_send(): write error: Device not configured
avrdude: ser_recv(): read error: Device not configured
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: ser_send(): write error: Device not configured
avrdude: ser_recv(): read error: Device not configured
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: ser_send(): write error: Device not configured
avrdude: ser_recv(): read error: Device not configured
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: ser_send(): write error: Device not configured
avrdude: ser_recv(): read error: Device not configured
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: ser_send(): write error: Device not configured
avrdude: ser_recv(): read error: Device not configured
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: ser_send(): write error: Device not configured
avrdude: ser_recv(): read error: Device not configured
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
avrdude: ser_drain(): read error: Device not configured

Can you please assist with getting this to work

There is a good description of the difference between Leonardo and UNO here, under the heading Please Read. Note in particular the need to include a Serial.begin() in the setup loop, and the special procedure described in the last paragraph

2 Likes