Size discrepancy for .bin file in Arduino output

espmoses
Posts: 6
Joined: Mon Jan 03, 2022 3:28 am

Size discrepancy for .bin file in Arduino output

Postby espmoses » Sun Jan 15, 2023 10:09 pm

Hi Everybody,

I have noticed a size discrepancy in the Arduino output vs the actual size of the .bin file. I get the following from a compile..

Sketch uses 1195002 bytes (91%) of program storage space. Maximum is 1310720 bytes.
Global variables use 46812 bytes (14%) of dynamic memory, leaving 280868 bytes for local variables. Maximum is 327680 bytes.

But the .bin is reported by windows as being "1.24 MB (1,307,808 bytes)", that is 112,806 bytes additional then what Arduino is telling me. Even if I add the global variables (which I'm not sure is correct) to the reported sketch size, it's still off by 50k or so. This caused me some problems when I went over the 1.3MB partition size a few times, but Arduino did not seem aware of it.

Am I missing something or is the size reporting wrong?

Thank you!

Regards,
-Moses

Who is online

Users browsing this forum: Google [Bot] and 59 guests