Hello,
when creating a multi-image build is it possible to select the optimization level for each image individually?
Below is an example of the issue I am facing currently:
- I have a mutli-image build that builds mcuboot, TFM and my application.
- I also use a pm_static.yml file with optimized flash partition size for the TFM image.
- When I create a new configuration (VS Code with nRF extension) and select "Optimize for debugging (-Og)" in the "Optimization level" drop-down, the image size of TFM increases by around 35% and as a result it does not fit anymore in the partition defined with the pm_static.yml file.
- I actually don't need the debug optimization in TFM, only in my application.
- Is it possible to configure the build somehow, so only my application is build with debug optimization but TFM (and mcuboot) with another optimization level (e.g. size)?
Thanks and best regards,
rw