Skip to content

Commit b22fa0b

Browse files
author
Owen
authored
Merge pull request #125 from sparkfun/output-ram-usage-simple
Simple Solution to Add RAM Statistic at Compile
2 parents 5b7dca0 + 768d1a2 commit b22fa0b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

platform.txt

+2
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ recipe.objcopy.bin.pattern="{compiler.path}/{compiler.cmd.axf2bin}" {compiler.fl
119119
recipe.size.pattern="{compiler.path}/{compiler.cmd.size}" -A "{build.path}/{build.project_name}.axf"
120120
recipe.size.regex=\.text\s+([0-9]+).*
121121

122+
recipe.hooks.objcopy.postobjcopy.0.pattern="{compiler.path}/{compiler.cmd.size}" -A "{build.path}/{build.project_name}.axf"
123+
122124
## Preprocessor
123125
preproc.macros.flags=-w -x c++ -E -CC
124126
recipe.preproc.macros="{compiler.path}/{compiler.cmd.cpp}" {compiler.flags.cpp} {preproc.macros.flags} -mcpu={build.mcu} -DF_CPU={build.f_cpu} -DARDUINO={runtime.ide.version} -DARDUINO_{build.board} -DARDUINO_ARCH_{build.arch} {compiler.extra_flags.cpp} {build.extra_flags} {includes.all} "{source_file}" -o "{preprocessed_file_path}"

0 commit comments

Comments
 (0)