Skip to main content
JBand.2
Associate
April 11, 2023
Solved

CubeMX: Error when generating a STM323u575ZItxQ makefile. CPU flag is missing.

  • April 11, 2023
  • 2 replies
  • 997 views

When generating a makefile project with the STM32U575 MCU it does not generate the CPU= -mcpu-cortex-m33 section of the makefile

e.g. it looks like this:

#######################################
# CFLAGS
#######################################
# cpu
 
 
# fpu
FPU = -mfpu=fpv4-sp-d16
 
# float-abi
FLOAT-ABI = -mfloat-abi=hard
 
# mcu
MCU = $(CPU) -mthumb $(FPU) $(FLOAT-ABI)

This gives errors while compiling with a fresh makefile project.

This topic has been closed for replies.
Best answer by Ghofrane GSOURI

Hello @JBand.2​ 

First let me thank you for posting .

I assume this is the exact same issue already reported to the development team and tracked by the Ticket 145419 and it's already fixed in the latest version of CubeMX 6.8.0.

You can check this LINK for more details.

Thx

Ghofrane

2 replies

Ghofrane GSOURI
Ghofrane GSOURIBest answer
Technical Moderator
April 11, 2023

Hello @JBand.2​ 

First let me thank you for posting .

I assume this is the exact same issue already reported to the development team and tracked by the Ticket 145419 and it's already fixed in the latest version of CubeMX 6.8.0.

You can check this LINK for more details.

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.
JBand.2
JBand.2Author
Associate
April 11, 2023

Yes you are absolutely right! Updating to CubeMX 6.8.0 (which is still a painful experience on OSX) and deleting the makefile generated earlier fixed the issue.

Thank you for taking the time!