Skip to main content
PHryn
Associate III
September 9, 2019
Solved

Makefile project for STM32G431 fail to build

  • September 9, 2019
  • 8 replies
  • 3284 views

Hi all,

I am trying to create simple makefile project in CubeMX for stm32g431.

After executing makefile I get error:

/home/pawel/STM32Cube/Repository/STM32Cube_FW_G4_V1.1.0/Drivers/CMSIS/Include/cmsis_gcc.h: In function '__get_CONTROL':
/home/pawel/STM32Cube/Repository/STM32Cube_FW_G4_V1.1.0/Drivers/CMSIS/Include/cmsis_gcc.h:152:1: sorry, unimplemented: Thumb-1 hard-float VFP ABI
 {
 ^

I suspect it has something to do with this:

# float-abi

FLOAT-ABI = -mfloat-abi=hard

Is it something to do with compiler? At the moment I am using gcc-arm-none-eabi-7-2017-q4-major .

I have to mention that I didn't have any problems with other sm32f and stm32l.

Regards,

Pawel

This topic has been closed for replies.
Best answer by PHryn

I checked generated makefile and there is a missing CPU declaration

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

adding it fix the problem:

#######################################
# CFLAGS
#######################################
# cpu
CPU = -mcpu=cortex-m4

Regards,

Pawel

8 replies

PHryn
PHrynAuthorBest answer
Associate III
September 10, 2019

I checked generated makefile and there is a missing CPU declaration

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

adding it fix the problem:

#######################################
# CFLAGS
#######################################
# cpu
CPU = -mcpu=cortex-m4

Regards,

Pawel

BGite.1
Visitor II
December 29, 2019

@PHryn​  thanks for that response, it's ridiculous to think that this is still an issue, 4month laters. I would expect st to have some sort of continuous integration setup, making sure they're generated build works ...

WTom
Associate III
February 6, 2020

Ya.. that makes sense. It holds up OEM sales on their new products too.

WTom
Associate III
February 5, 2020

Hi,

I have that problem with the G474. I added it to the end of the file named "makefile" and it wouldn't compile: Which ascii file is the proper one?

Regards,Wayne

PHryn
PHrynAuthor
Associate III
February 5, 2020

Try add it to the top of makefile, but only if

CPU = -mcpu=cortex-m4

is missing.

WTom
Associate III
February 6, 2020

Hi PHryn,

When I try to add it in the file makefile, it had the comment displayed that it was a derived file, which meant it was made on the fly... and it didn't make a difference. After the compilation, when I checked the file, the added line was not there.

There's apparently some way to add it to Eclipse. I'll have to look into it. I came across this free book on Eclipse: https://www.carminenoviello.com/2014/12/28/setting-gcceclipse-toolchain-stm32nucleo-part-1/

I'll look into it.

Regards,

/Wayne

Khouloud ZEMMELI
ST Employee
February 6, 2020

​Hello ALL,

Sorry for the delay ,Issue reproduced , it  will be fixed in the next release.

we are deeply sorry for any inconvenience this may have caused,

Best Regards,

Khouloud.

WTom
Associate III
February 6, 2020

Hi Khouloud,

Do you have any idea when the next release is planned for? It'll help me with my own plans to continue on the F334 or not, since I'm porting software to the G474.

Regards,

/Wayne

Khouloud ZEMMELI
ST Employee
February 7, 2020

​Hi @WTom​ , It will be W08.

Best Regards,

Khouloud

WTom
Associate III
February 7, 2020

That's good..Thank-you. /Wayne