2022-09-27 09:28 AM
2022-11-24 07:37 AM
Hi Fred, sorry for the long delay in replying.
Here's how I found this optimisation issue -
1:Import the project into the IDE from the workbench generated code
2: Set the C/C++ Build / Settings / MCU GCC Compiler / Optimization / Optimization level to None (-O0)
3: In the IDE, load the IOC file and change something - add a peripheral, modify a GPIO line etc.
4: In the IDE, compile the IOC file.
5: Go back to C/C++ Build / Settings / MCU GCC Compiler / Optimization / Optimization level - the value has changed to Optimize for size (-Os)
Regards
Tim