Similar question here: Is there a number or numbers that I can read to determine my current code size? Is it the generated bin file size? is it the compiled code size? does it include libraries? library modules that are not used by the linker? If as mentioned ""the size of the binary code output that gets directly programmed to the MCU flash"", then data size also needs to be counted?