Skip to content

Commit 392e44c

Browse files
author
Brian Baltz
committed
Fixing sketch size calculation (text + ctors + rodata)
Signed-off-by: Brian Baltz <[email protected]>
1 parent 6f9739f commit 392e44c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

boards.txt

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ arduino_101.vid.0x2A03.warning=Uncertified
1111
arduino_101.upload.tool=arduino101load
1212
arduino_101.upload.protocol=script
1313
arduino_101.upload.maximum_size=196608
14+
arduino_101.upload.maximum_data_size=8192
1415
arduino_101.upload.use_1200bps_touch=true
1516
arduino_101.upload.wait_for_upload_port=false
1617
arduino_101.upload.native_usb=false

platform.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ recipe.output.save_file={build.project_name}.{build.variant}.hex
8585

8686
## Compute size
8787
recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build.project_name}.elf"
88-
recipe.size.regex=Total\s+([0-9]+).*
88+
recipe.size.regex=^(?:text|ctors|rodata|datas)\s+([0-9]+).*
8989

9090
# Arc Uploader/Programmers tools
9191
# -------------------

0 commit comments

Comments
 (0)