cancel
Showing results for 
Search instead for 
Did you mean: 

Bug in CubeMX generating Makefile, missing some CPU info.

Bertha
Associate III

I did not tested if this is specific to all MCU but for U5 familly this is sure:

How to reproduce :

Launch cubeMX, (6.7.0)

select U5 board like nucleo

Go to project manager, and select under Toolchain - Makefile.

--> Bug, the Makefile genereted is missing some details on CPU, so cannot build.

To solve it add :

CPU = -mcpu=cortex-m33

after

#######################################
# CFLAGS
#######################################
# cpu

Moreover, and i am not sure about this but I think I read somewhere that U5 was using : fpv5-sp-d16 and not fpv4-sp-d16 as in generated makefile

so I replaced

FPU = -mfpu=fpv4-sp-d16

by this :

FPU = -mfpu=fpv5-sp-d16

Please review the makefile generation under cudeMX seems to have some mistake for U5 series at least.

Hope this help and avoid other to lose time to spot this.

1 ACCEPTED SOLUTION

Accepted Solutions
Ghofrane GSOURI
ST Employee

Hello @Bertha​ 

Thank you for your contributions and for your detailed explanations,

I confirm the issue on my side, it has been reported to STM32CubeMX development team .

Internal ticket number: 145419(This is an internal tracking number and is not accessible or usable by customers).

I will keep you posted with updates.

Thx

Ghofrane

View solution in original post

2 REPLIES 2
Ghofrane GSOURI
ST Employee

Hello @Bertha​ 

Thank you for your contributions and for your detailed explanations,

I confirm the issue on my side, it has been reported to STM32CubeMX development team .

Internal ticket number: 145419(This is an internal tracking number and is not accessible or usable by customers).

I will keep you posted with updates.

Thx

Ghofrane

Ghofrane GSOURI
ST Employee

Hello @Bertha​ 

I am glad to inform you that the Internal ticket number: 145419 is fixed and integrated in the latest CubeMX version 6.8.0 .

This is the LINK for downloading it .

Thanks again for your contributions .

Ghofrane.