32bit boards (Due, ZEro, etc) maximum RAM
On all Arduino 8bit board when the Verify of code finish we receive a Maximum flash and Maximum RAM message in the consolle (so if it is to hight the ide block the upload) Instead on 32bit board the RAM check there isn't.
8bit boards
Sketch uses 928 bytes (2%) of program storage space. Maximum is 32,256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2,039 bytes for local variables. Maximum is 2,048 bytes.
32bit boards
Sketch uses 8,356 bytes (3%) of program storage space. Maximum is 262,144 bytes.
probably you must only put the upload.maximum_data_size value on all 32bit virtual board files ? like on the avr core ? https://github.com/arduino/Arduino/commit/7c87db3532155c051b902ac83c1feea78eb732ee#diff-4ead488680453362ffec01d74609315cR11
Happily, this has now been done for Arduino SAMD Boards: https://github.com/arduino/ArduinoCore-samd/pull/503 https://github.com/arduino/ArduinoCore-samd/pull/517
Still not done for Arduino SAM Boards though.
Related:
- https://github.com/arduino/Arduino/pull/1377#issuecomment-17389773
- https://github.com/arduino/Arduino/issues/1555#issuecomment-23622158
- https://github.com/arduino/Arduino/issues/5707
will we wait another 5 years for complete resolution? :-)
I made a PR into the ArduinoCore-sam repo, basically doing what @per1234 suggested (thanks for the suggestion!). Any comments are welcome!