Difficulties with Compiler Optimization Levels in STM32 CubeIDE
I'm using STM32 CubeIDE and trying out different compiler optimization levels. I've been using the Og(size) level, which has reduced my code size while still keeping it working normally in regular situations.
I've noticed a problem: my custom board gets really hot when running the optimized code. This makes me think there might be some unintended issues with this optimization level.
I want to understand more about how compiler optimization levels work in CubeIDE and how they can affect code and hardware. Can someone explain what compiler optimization levels are and how they impact code generation in CubeIDE?
