I am running STM32CubeIDE 1.9 Is it possible to have some code files run at one optimization, and other files run at a different optimization?
My code is larger than expected and I am close to the 32K program boundary of my device. When I optimize for debugging or have no optimize I cannot test new code.
When I optimize for size I have plenty of room for the new code, but single stepping through the code to find a bug is a problem because the optimization jumps all over the place.
So can I optimize for size the files that I know are good, and optimize for debugging or no optimize the files I am working on?
It appears it is optimize by the whole project. If I change the optimization, it recompiles the whole project to that optimization.
The new rev of the board increases the memory from 32K to 64K but that is not going to happen for a couple of months, and I need this version working before they will release the new board. (Chicken and Egg problem)
