cancel
Showing results for 
Search instead for 
Did you mean: 

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

JBand.2
Associate II

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Ghofrane GSOURI
ST Employee

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

View solution in original post

2 REPLIES 2
Ghofrane GSOURI
ST Employee

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

JBand.2
Associate II

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!