Makefile project for STM32G431 fail to build
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-09-09 12:19 PM
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
Solved! Go to Solution.
- Labels:
-
Bug-report
-
STM32CubeMX
-
STM32G4 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-09-10 01:57 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-09-10 01:57 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-12-28 06:45 PM
@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 ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-02-04 06:57 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-02-05 01:32 PM
Try add it to the top of makefile, but only if
CPU = -mcpu=cortex-m4
is missing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-02-05 05:19 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-02-06 12:11 AM
​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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-02-06 12:07 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-02-06 12:26 PM
Ya.. that makes sense. It holds up OEM sales on their new products too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-02-07 12:10 AM
​Hi @WTom​ , It will be W08.
Best Regards,
Khouloud