Skip to main content
Associate III
August 14, 2026
Solved

STM32CubeIDE STM32F303K8 offers an unexpected mtune

  • August 14, 2026
  • 4 replies
  • 84 views

When building in STM32CubeIDE 2.1.1, and targeting an STM32F303K8,

  • Project properties
  • C/C++ Build
  • Settings
  • MCU GCC Compiler
  • Miscellaneous
  • Near the bottom, observe a checkbox for -mtune=cortex-a35.

This option really does have effect in the gcc command line, and that really does significantly alter the compiled machine code.

But… why is this allowed in the UI? Why would this tuning option appear specifically for the A35, when the STM32F303K8 is an M4? By default, the makefile does correctly add -mcpu=cortex-m4.

Best answer by Ghofrane GSOURI

Hello ​@avidroneg 

Your contribution is much appreciated.

Issue has been raised to dev team for further investigation and resolution under ID ticket #0065130 

I will keep you posted with updates.

THX

Ghofrane

4 replies

Ghofrane GSOURI
Ghofrane GSOURIBest answer
ST Technical Moderator
August 17, 2026

Hello ​@avidroneg 

Your contribution is much appreciated.

Issue has been raised to dev team for further investigation and resolution under ID ticket #0065130 

I will keep you posted with updates.

THX

Ghofrane

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
avidronegAuthor
Associate III
August 20, 2026

This has been marked as an answer? I don’t understand why. Can you link to the bug tracker?

Ghofrane GSOURI
ST Technical Moderator
August 20, 2026

Hello ​@avidroneg 

Thank you for your message, and I understand your concern.

I marked this reply as the best answer to give visibility to other users who may encounter the same issue, since the ticket has already been escalated to the development team for investigation under internal ticket #0065130.

Please note that this is an internal tracking ID, so I’m unfortunately not able to share a public bug tracker link. However, I will keep you informed of any relevant updates, including the IDE version that will integrate the fix once it is available.

Thank you for your understanding and patience.

Ghofrane

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
TDK
August 20, 2026

The thread is marked as “Solved” and yet the issue is very much not solved. Perhaps it should remain open until the issue discussed in the thread is actually solved.

This is a reoccurring theme here. Responding to a question does not mean it’s solved. It is good that it was reported, but creating a bug ticket in some hidden tracker is not a solution for the user.

 

"If you feel a post has answered your question, please click ""Accept as Solution""."