0

Program Memory Leonardo vs Uno
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Program Memory Leonardo vs Uno

by dopplerdave on Tue Dec 18, 2018 1:19 pm

I have a working program that uses 29020 bytes out of 32256 available on the Uno. When I recompile for the Leonardo, it says the program size is 31256 out of 28672 available. Does this make sense? I understand that the Leonardo needs memory for the USB but does this make the program size bigger or the available memory smaller?

dopplerdave
 
Posts: 19
Joined: Wed Oct 11, 2017 4:34 pm

Re: Program Memory Leonardo vs Uno

by adafruit_support_bill on Tue Dec 18, 2018 1:45 pm

From the numbers posted, it looks like a little of both. The Leonardo bootloader is different from the UNO bootloader. That determines how much of the Flash remains for your code. Many of the libraries also have conditional compilation that generates different code for different processors. That will affect the size of your compiled program.

adafruit_support_bill
 
Posts: 73190
Joined: Sat Feb 07, 2009 10:11 am

Please be positive and constructive with your questions and comments.