File tree 2 files changed +5
-0
lines changed
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,9 @@ function (SetupBoardToolchain boards_namespace board_id generate_dir)
52
52
string (TOUPPER "${pl_arch} " ARDUINO_BOARD_BUILD_ARCH)
53
53
_board_get_platform_property("/pl_path" ARDUINO_BOARD_RUNTIME_PLATFORM_PATH)
54
54
55
+ # Get board RAM size
56
+ _board_get_property("upload.maximum_data_size" board_ram_size)
57
+
55
58
# Inherit the platform.txt from the referenced platform. This gets
56
59
# overriden later, if the platform provides its own platform.txt.
57
60
_board_get_property("build.core" _prop_value QUIET )
@@ -530,6 +533,7 @@ function (SetupBoardToolchain boards_namespace board_id generate_dir)
530
533
set (ARDUINO_BOARD_IDENTIFIER "${_short_id} " )
531
534
set (ARDUINO_BOARD_NAME "${board_name} " )
532
535
set (ARDUINO_GENERATE_DIR "${generate_dir} " )
536
+ set (ARDUINO_BOARD_RAM_SIZE "${board_ram_size} " )
533
537
534
538
set (templates_dir "${ARDUINO_TOOLCHAIN_DIR} /Arduino/Templates" )
535
539
configure_file (
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ set(ARDUINO_CORE_SPECIFIC_PLATFORM_PATH "@ARDUINO_CORE_SPECIFIC_PLATFORM_PATH@")
21
21
set (ARDUINO_BOARD_BUILD_CORE_PATH "@ARDUINO_BOARD_BUILD_CORE_PATH@" )
22
22
set (ARDUINO_BOARD_BUILD_VARIANT_PATH "@ARDUINO_BOARD_BUILD_VARIANT_PATH@" )
23
23
set (ARDUINO_BOARD_HOST_NAME "@ARDUINO_BOARD_HOST_NAME@" )
24
+ set (ARDUINO_BOARD_RAM_SIZE "@ARDUINO_BOARD_RAM_SIZE@" )
24
25
25
26
@ARDUINO_SEL_MENU_SET_LIST@
26
27
You can’t perform that action at this time.
0 commit comments