cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMX changes optimization flags again

Hello,

CubeMX and libs version as in this topic: https://community.st.com/s/question/0D50X00009cegytSAA/l4-cubemx-package-ver-112-inconsistency?t=1534139773066

The problem is that each time one regenerates the project using CubeMX, the optimization flags get reset to -Os, no matter what was set before:

0690X000006BsmLQAS.png

Debug level flags are preserved correctly. @Imen DAHMEN​  ?

8 REPLIES 8

Hi @Community member​ ,

Unfortunately, I'm not able to reproduce this issue.

Could you please provide more information about your environment (windows version, atollic version..) . It will be more helpful if you share your Ioc and if you tell us about the scenario to reproduce the issue.

Thanks in advance for helping to complete this thread.

Regards,

Mohamed

kurta999
Senior

I can comfirn this bug. It even resets optimization flags in my new configuration what I made.0690X000006BzQaQAK.png

@Mohamed Mansouri​ So do you need any input from me or is the @kurta999​  post OK?

Hi,

Can you please give your Atollic TrueSTUDIO version and the MCU used.

Because using STM32F401, I cannot reproduce the bug. I change the optimization level to -0g and when i regenerate the code, it was kept, it wasn't changed to -Os,

Thanks in advance for helping to complete this thread,

Regards,

Mohamed

The MCU is STM32L452VE, Truestudio version is 9.0.1

Can you please share your Ioc

Here it is.

Thank you,

I confirm: With your Ioc, I succeed to reproduce the Bug. Its not the case with an empty project,

I will get back to you as soon as I get the right reason for this bug,

Thanks for your helping,

Regards,

Mohamed