arduino / Arduino

Arduino IDE 1.x
https://www.arduino.cc/en/software
Other
14.16k stars 7.02k forks source link

32bit boards (Due, ZEro, etc) maximum RAM #5245

Open Testato opened 8 years ago

Testato commented 8 years ago

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.

Testato commented 7 years ago

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

per1234 commented 3 years ago

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:

Testato commented 3 years ago

will we wait another 5 years for complete resolution? :-)

ollie1400 commented 2 years ago

I made a PR into the ArduinoCore-sam repo, basically doing what @per1234 suggested (thanks for the suggestion!). Any comments are welcome!