cancel
Showing results for 
Search instead for 
Did you mean: 

Makefile project for STM32G431 fail to build

PHryn
Associate III

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

1 ACCEPTED SOLUTION

Accepted Solutions
PHryn
Associate III

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

View solution in original post

10 REPLIES 10
PHryn
Associate III

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
Associate

@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

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
Associate III

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

CPU = -mcpu=cortex-m4

is missing.

WTom
Associate III

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

​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

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

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

​Hi @WTom​ , It will be W08.

Best Regards,

Khouloud