Skip to main content
Associate III
February 10, 2023
Solved

Bug in CubeMX generating Makefile, missing some CPU info.

  • February 10, 2023
  • 2 replies
  • 1465 views

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.

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

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

2 replies

Ghofrane GSOURI
Ghofrane GSOURIBest answer
Technical Moderator
February 13, 2023

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

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.
Ghofrane GSOURI
Technical Moderator
March 7, 2023

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.

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.