Open bengalih opened 1 month ago
I've figured out how to do this - but probably not in the best fashion. The file to modify is not platformio.ini but buildroot > ini > avr.ini
I changed this:
build_flags = ${common.build_flags} -std=gnu++1z -Wl,--relax
build_unflags = -std=gnu++11
to this:
build_flags = ${common.build_flags} -fno-tree-scev-cprop -fno-split-wide-types -std=gnu++1z -Wl,--relax -mcall-prologues
build_unflags = -g -ggdb -std=gnu++11
by basically combining my necessary settings with what was there.
However, these seems like a sloppy way to do it. Is there a cleaner way to create a profile with the tuned memory settings and have it accessible from the ABM panel so you can manage the build and upload process?
Trying to follow this: https://thborges.github.io/blog/marlin/2019/01/07/reducing-marlin-binary-size.html
which states:
I can do something like this at the bottom of platformio.ini:
But I don't know how to call upon this from AutoBuildMarlin to properly attempt a build and upload with these fixes.