Avrdude: ser_setspeed(): tcsetattr() failed - Mini Pro

I am lost.... I hope you can help me.

When I program a Mini Pro, which can be a 3.3v or a 5v for the first time, it works

When I want to reprogram the same boards Mini Pro, it doesn't work...

I get the following errors:

avrdude: ser_setspeed(): tcsetattr() failed
avrdude: ser_open(): can't set attributes for device "/dev/cu.usbserial-110": Invalid argument
Failed uploading: uploading error: exit status 1

The program on the Mini Pro which was loaded before still runs, so the board isn't bricked.

I have tried to re-upload the boot loader using a Uno as ISP it doesn't work either.

I havent got this issue when I program a UNO with the same code.

I am using IDE 2.0 rc9, running on a MacBook Pro M1 with Monterey 12.3

I use a USB C to USB A adapter regardless the Ardoino board I am using (UNO, Nano usually and more recently the Mini Pro.)

Ah, I just got a slightly different error now, although I changed nothing:

Failed uploading: uploading error: exit status 1avrdude: ser_setspeed(): tcsetattr() failed
avrdude: ser_open(): can't set attributes for device "/dev/cu.usbserial-110": Invalid argument

Please, I hope somebody can help, I am desperate to make this work.

Thanks in advance,

Charles

I guess the serial device changed when the board did reset. Try to re-select the correct serial device and re-upload.

Is your serial port occupied by another program? For example a serial monitor program will lock access to the port.

Hi, thank you for your replies. I felt I was in Windows... But I am on a Mac... I just had to restart IDE, and force "quit" in the "activity monitor and it worked...

On one Mini Pro however, I still can't program it, and the previous code uploaded on it still runs fine...

I am getting the following errors, is there a trick to be able to program it again ??

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

Charles

A Mini Pro doesn't have an USB connector, so there is much potential of doing the connection from the Mac to the board wrong. As you didn't provide a wiring diagram I strongly guess you did the wiring wrong.

I thought I explained better, sorry.

I am using an adapter to connect the mini pros to usb on my Mac. (This is actually obvious)

What I might have not explained well is the fact that I can upload sketches to other mini pro boards without issues. I have this problem with one board only !

The application I loaded previously on this mini pro still runs but I can’t anymore upload anything to it.

I can’t change the boot loader either using a uno as isp.

What exact adapter are you using? That might heavily influence the result of an upload. Another factor may be the length and quality of the wires/cable used to connect the adapter to the Pro Mini.

I guess you soldered some headers to the Pro Mini to be able to connect the adapter, so the soldering is important too, a bad soldering on one single pin might show such problems.

I am using an adapter I bought at the same time. No wires, it just connects to the mini pro through headers.

I checked the soldering on both the adapter and the board and on both sides they are ok.

Post a sharp picture of that board and of the adapter!

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