Old running sketch now takes to much memory?

I've updated to the latest IDE. I have a good running sketch on a mega 2560 that's been working perfectly for a couple of years!
I want to make a small change to this sketch but when I try to compile with the new IDE (1.8.16) I get a Global and Local variables now exceed memory by 515%!! It's so ridiculous I can't even begin to understand what's happening.
HELP any ideas or suggestions would be very much appreciated

Can You in some way mark the changes You made? Like
//Beginning of change
.
.
//End of change

Please post that code, autoformatted in the IDE using code tags here.

Maybe your compiler is set for the wrong target processor?

e.g. written for a MEGA1284P, compiled for a 328p ?

2 Likes

The point here is that what has apparently change is the version of the Ide. The sketch has not been modified at this point in anyway. It is currently identical to what has/is successfully running on a MEGA2560.
My hope was that someone would have a "secret" revelation about the behavior of 1.8.16 versus 1.6 vintage IDE. It's really hard to understand the issue as I'm sitting here with my "device" running the sketch with the very device that the current IDE says won't "fit" in memory. Thanks for the suggestion to send the code though -- very generous :+1:

Lastchancename :slight_smile: Very very good suggestion. It is in fact something I've done in the past. Unfortunately I did manage to check this when trouble arose and alas the correct board is selected MEGA2560.....
Thanks though -- good call :slightly_smiling_face:

It's impossible to say anything for certain because you haven't provided anywhere near enough information. However, this very likely isn't about the IDE's behavior. It's about the differences in the things that are bundled with each version of the IDE:

  • Arduino AVR Boards core library
  • Arduino AVR Boards platform bundled libraries
  • Arduino AVR Boards toolchain
  • IDE built-in libraries

If you want more help, you're going to need to provide:

  • the sketch
  • instructions for installing any additional libraries we might need for compiling your sketch
  • the verbose output from compiling the sketch using the old version of the IDE
  • the verbose output from compiling the sketch using the new version of the IDE

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