Cannot Program into Leonardo

I am trying to program a sketch into Leonardo I just bought. I get this message:

Sketch uses 6994 bytes (24%) of program storage space. Maximum is 28672 bytes.
Global variables use 444 bytes (17%) of dynamic memory, leaving 2116 bytes for local variables. Maximum is 2560 bytes.
Connecting to programmer: .
Found programmer: Id = "CATERIN"; type = S
Software Version = 1.0; No Hardware Version given.
Programmer supports auto addr increment.
Programmer supports buffered memory access with buffersize=128 bytes.

Programmer supports the following devices:
Device code: 0x44

I do not know what to do from here. Any help would be appreciated.

Which Arduino-IDE are you using
IDE 2.X or IDE 1.8.19?

To me this sounds like adjusted to the wrong programmer.
For Arduino-IDE 1.8.19 you should use

best regards Stefan

I am using Mac OS Version:

2.2.2-nightly-20231110
CLI Version: 0.34.0

I do not know where to choose the programmer and boot loader you suggest. I cannot find this on my Mac OS IDE.

I found and chose the AVRISP mkII programmer. I cannot find where to select a bootloader.

Tried uploading sketch again with suggested programmer. After several minutes I get:

Connecting to programmer: .avrdude: butterfly_recv(): programmer is not responding

avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
Found programmer: Id = ""; type =
Software Version = .; Hardware Version = .
avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
avrdude: error: buffered memory access not supported. Maybe it isn't
a butterfly/AVR109 but a AVR910 device?
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.

Very important detail information. But with MacOS I'm out. I'm a pure WIndows user.
As a sarcastic comment: maybe the purism of the Apple-Eco-system just does not have the bells and whistles to make it work.
No just kidding.

If I use Arduino-IDE 1.8.19 on windows I have this programmer options

Maybe user @J-M-L can chime in as an apple-expert

best regards Stefan

that sounds useful.

I'd say it looks the same but better :slight_smile:

with 1.8.x

with 2.x


@n7kd see Connecting to Programmer Message?

can you double check if the upload actually failed ?

1 Like

What you actually get is the upload is successful but you don't see it say so on the screen where you normally would.
Instead click the notifications and you will see it says "download successful".

Had me fooled at first as well.

Is this behaviour shown by the IDE 2.X?
(just another reason to stay on IDE 1.8.19)

For veryfying if a new code-version is uploaded and running or not
change a serial.print() in function setup to be unique in comparison to the previous uploaded code-version.
If the changed characters appear in the serial monitor you can be sure: upload was successful.
Me personal I use this

void PrintFileNameDateTime() {
  Serial.println( F("Code running comes from file ") );
  Serial.println( F(__FILE__) );
  Serial.print( F("  compiled ") );
  Serial.print( F(__DATE__) );
  Serial.print( F(" ") );
  Serial.println( F(__TIME__) );  
}

void setup() {
  Serial.begin(115200);
  Serial.println("Setup-Start");
  PrintFileNameDateTime();
}

void loop() {
}
__FILE__

__DATE__

__TIME__  

are macros that were updated each time you compile a code new.

This prints the filename compile date and compile-time to the serial monitor
If you have just compiled and uploaded the code
and
your computer has actual time

If the new code starts running a time-stamp that is only 30 seconds to 2 minutes old compared tho then actual time will appear.

Time goes only forward. If you upload a new code-version and the upload was successful the time-stamp will show a later time than shown with the previous uploaded code-version.

best regards Stefan

Yes.

I can't help but agree.

This is the screen shot, you get these notifications if you click the small bell in the lower right screen margin with a dot on it and the number two after it. Here it is:-

You will have to press the expand icon to see the full detail in the screen dump.

To be fair they do flash up quickly when they occur, but as a long time IDE 1.x user I was not expecting it to be there.

Note I just tried this with the settings set to :-
Show verbose output during compiled and upload.
Along with Compiler warnings set to All.

Then it behaves very much compilation on the 1.8.19 IDE.
You don't even get the found programmer bit that was so puzzling at first.

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