Skip to content

Commit 555cca8

Browse files
committed
add SRAM usage when compiling
1 parent 7d87911 commit 555cca8

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

boards.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ feather52.bootloader.tool=nrfjprog
2828
feather52.upload.tool=nrfutil
2929
feather52.upload.protocol=nrfutil
3030
feather52.upload.maximum_size=167936
31+
# ram size varies depending on S132 (check linker script)
32+
feather52.upload.maximum_data_size=51072
3133

3234
# required if using native usb ( for reference )
3335
#feather52.upload.use_1200bps_touch=false

platform.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ recipe.S.o.pattern="{compiler.path}{compiler.S.cmd}" {compiler.S.flags} -DF_CPU=
8989
recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}"
9090

9191
## Combine gc-sections, archives, and objects
92-
recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" "-L{build.path}" {compiler.c.elf.flags} {compiler.c.elf.extra_flags} "-L{build.variant.path}" "-L{nrf.sdk.path}/components/toolchain/gcc" "-T{build.ldscript}" "-Wl,-Map,{build.path}/{build.project_name}.map" --specs=nano.specs --specs=nosys.specs {compiler.ldflags} -o "{build.path}/{build.project_name}.elf" {object_files} -Wl,--start-group -lm "{build.path}/{archive_file}" -Wl,--end-group
92+
recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" "-L{build.path}" {compiler.c.elf.flags} {compiler.c.elf.extra_flags} "-L{build.variant.path}" "-L{build.core.path}" "-T{build.ldscript}" "-Wl,-Map,{build.path}/{build.project_name}.map" --specs=nano.specs --specs=nosys.specs {compiler.ldflags} -o "{build.path}/{build.project_name}.elf" {object_files} -Wl,--start-group -lm "{build.path}/{archive_file}" -Wl,--end-group
9393

9494
## Create output (bin file)
9595
#recipe.objcopy.bin.pattern="{compiler.path}{compiler.elf2bin.cmd}" {compiler.elf2bin.flags} {compiler.elf2bin.extra_flags} "{build.path}/{build.project_name}.elf" "{build.path}/{build.project_name}.bin"
@@ -111,6 +111,7 @@ recipe.output.save_file_hexu={build.project_name}.save.hex
111111
## Compute size
112112
recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build.project_name}.elf"
113113
recipe.size.regex=\.text\s+([0-9]+).*
114+
recipe.size.regex.data=(\.data|\.bss|\.stack)\s+([0-9]+).*
114115

115116
## Export Compiled Binary
116117
recipe.output.tmp_file={build.project_name}.hex

0 commit comments

Comments
 (0)