You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
---------------------------- DO NOT DELETE OR EDIT anything above this line ----------------------------
Arduino IDE 1.8.5, using alternately SPIFlash 3.1.0 and SPIMemory 3.2.0, under Windows 10.
RUNDIAGNOSTIC and PRINTNAMECHANGEALERT (Lines 36 and 64) in SPIFlash.h are commented out to save space for 3.1.0
RUNDIAGNOSTIC (Line 35) in SPIMemory.h is commented out to save space for 3.2.0
Board settings are Arduino Pro/Pro Mini, ATMega328p, 3.3v/8mHz
The following code compiles to 2784 bytes in 3.1.0:
Replacing SPIFlash.h with SPIMemory.h for using with 3.2.0 compiles with 5636 bytes, over double that of 3.1.0.
This is of particular interest to me as the program I am using it in compiles to precisely 30720 bytes with 3.1.0 - The maximum a 328p can utilize. For ease of users compiling their own code, I would like to be able to give simple instructions on what needs to be commented out. For 3.1.0, this is "Comment out lines 36 and 64 in SPIFlash.h" - For 3.2.0 this "Simple" memory saver doesn't work.
I haven't had time to investigate the cause of the space usage increase (I'm flying out to Seattle tomorrow morning), but I feel such incredible balooning seems to be a bug.
If this is expected performance, then this can be treated as a feature request for space saving measures.
The text was updated successfully, but these errors were encountered:
Ugh! That's something that I missed with the name change issue.
I will fix this for you ASAP and get a bugfix release out within a week with the option of turning off the new features. That should take the memory footprint back down. Thanks for catching it.
Commit e24a2bc fixes this issue and ea26a05 & c0acadd reduce the footprint even further. If you make sure that #define RUNDIAGNOSTIC and #define USES_SFDP are commented out in SPIMemory.h, your code is currently compiling to 3034230334 30326 bytes instead of the previous 30720 bytes in v3.1.0. Feel free to use the code from the development branch for now. I have a few more changes to make before the code goes stable and I push out v 3.2.1
…dy to go.
Relative to v3.2.0 this version (v3.2.1) reduces compiled code memory
footprint by 24% and 12%, with SFDP discovery turned off and turned on
respectively.
---------------------------- DO NOT DELETE OR EDIT anything above this line ----------------------------
Arduino IDE 1.8.5, using alternately SPIFlash 3.1.0 and SPIMemory 3.2.0, under Windows 10.
RUNDIAGNOSTIC and PRINTNAMECHANGEALERT (Lines 36 and 64) in SPIFlash.h are commented out to save space for 3.1.0
RUNDIAGNOSTIC (Line 35) in SPIMemory.h is commented out to save space for 3.2.0
Board settings are Arduino Pro/Pro Mini, ATMega328p, 3.3v/8mHz
The following code compiles to 2784 bytes in 3.1.0:
Replacing
SPIFlash.h
withSPIMemory.h
for using with 3.2.0 compiles with 5636 bytes, over double that of 3.1.0.This is of particular interest to me as the program I am using it in compiles to precisely 30720 bytes with 3.1.0 - The maximum a 328p can utilize. For ease of users compiling their own code, I would like to be able to give simple instructions on what needs to be commented out. For 3.1.0, this is "Comment out lines 36 and 64 in SPIFlash.h" - For 3.2.0 this "Simple" memory saver doesn't work.
I haven't had time to investigate the cause of the space usage increase (I'm flying out to Seattle tomorrow morning), but I feel such incredible balooning seems to be a bug.
If this is expected performance, then this can be treated as a feature request for space saving measures.
The text was updated successfully, but these errors were encountered: