Page 2 of 2

Re: only 50% of program gets compiled!!!!

Posted: Thu Dec 23, 2021 7:44 pm
by ozcar
I'm a bit confused as to how you know only 50% of your code got compiled.

Maybe the "Sketch uses xxxxx bytes" message shows only half the size you expect it to be?

Or you looked at the link map?

Something else besides the program only works partially?

As for suggested causes, if I deliberately try to compile something which is too big for the selected board, the link fails with a message saying that it will not fit in flash.

I did not try to see what happens, but if a board with more flash than is actually present is selected in the IDE, can the upload of a too large program really complete without error? If so, would it still show no problem if "Verify code after upload" is set in the IDE preferences?