Skip to main content
Lukasz Przenioslo
Associate III
August 13, 2018
Question

CubeMX changes optimization flags again

  • August 13, 2018
  • 8 replies
  • 3245 views

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​  ?

This topic has been closed for replies.

8 replies

Mohamed Mansouri
Visitor II
August 14, 2018

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
September 6, 2018

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

Lukasz Przenioslo
Associate III
September 7, 2018

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

Mohamed Mansouri
Visitor II
September 7, 2018

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

Lukasz Przenioslo
Associate III
September 7, 2018

The MCU is STM32L452VE, Truestudio version is 9.0.1

Mohamed Mansouri
Visitor II
September 7, 2018

Can you please share your Ioc

Lukasz Przenioslo
Associate III
September 7, 2018

Here it is.

Mohamed Mansouri
Visitor II
September 7, 2018

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