@maxgerhardt i’ve posted examples about similar problem in this thread: Why `impure_data` appears on custom build and eats 1K memory? Need fix
- Succeeded to patch envs after
_bare.py
via post script, but lost 1K of RAM. - Problem is that i passed ldscript path via
-Wl,T
build option. If i set it in post script, as instm32cube.py
, size is ok.
Could you take a look? I’d like to understand 2 things:
- Why result depends on method to pass ldsript path? I carefully compared linker command in verbose mode - this option is the only difference.
- I don’t like to hardcode path in post-script. Can it be transfered somehow from platform.ini (for example via shell env var)?