Skip to content

Commit

Permalink
Merge pull request #125 from sparkfun/output-ram-usage-simple
Browse files Browse the repository at this point in the history
Simple Solution to Add RAM Statistic at Compile
  • Loading branch information
Owen committed Feb 28, 2020
2 parents 5b7dca0 + 768d1a2 commit b22fa0b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions platform.txt
Expand Up @@ -119,6 +119,8 @@ recipe.objcopy.bin.pattern="{compiler.path}/{compiler.cmd.axf2bin}" {compiler.fl
recipe.size.pattern="{compiler.path}/{compiler.cmd.size}" -A "{build.path}/{build.project_name}.axf"
recipe.size.regex=\.text\s+([0-9]+).*

recipe.hooks.objcopy.postobjcopy.0.pattern="{compiler.path}/{compiler.cmd.size}" -A "{build.path}/{build.project_name}.axf"

## Preprocessor
preproc.macros.flags=-w -x c++ -E -CC
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}"
Expand Down

0 comments on commit b22fa0b

Please sign in to comment.