-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cortex-M4F: xxx.elf uses VFP register arguments, yyy.o does not #2660
Comments
Your installed newlib version is built for soft float, the RIOT application is built for hard float. If you don't want to change your newlib you can try adding |
@gebart , thanks for your answer,after I added -mfloat-abi=softfp both in Makefile.cflags and boards/stm32f4discovery/Makefile.include, I still get the following error messages:
Could you help me to find what is wrong with this arm compile problem? |
Try different combinations of the float configuration flags |
@OlegHahm please help me to find what's wrong? |
What have you tried so far? |
Is there a reason not to use the recommended ARM toolchain from launchpad? |
Since the original poster has not responded for a long time and the toolchain is not the recommended one I will now close this issue. |
I ran into the same issue trying to compile a project for the Teensy 3.6. with arm-none-eabi 4.8.4. The issue was that gcc was linking to libarm_cortexM4l_math.a, which is the software floating point version of the library. The solution was to force it to link to libarm_cortexM4lf_math.a, the hardware floating point version, instead. |
Can you explain pls how to do this? Thanks! |
Hmm, well it's been a while. If I remember correctly my solution was pretty inelegant. I simply went into the arm-none-eabi folder and renamed libarm_cortexM4lf_math.a to libarm_cortexM4l_math.a. |
@Rykerdial that indeed is inelegant and would still compile using software float. Have you figured out a way to link the hard float library while compiling? |
I am facing the same issue as @Rykerdial and I confirmed this by changing the makefile to using soft float abi. With the soft float abi it compiles well but using the hard float abi gives an error |
I am facing same issue trying to compile project for mbed cli with compiler version 5 . |
ARM's official toolchain can solve this problem. I just encountered the same problem. I used STM32CubeMX to generate Makefile compilation on ubuntu18.04. The toolchain comes from gcc-arm-none-eabi installed by ubuntu apt. The solution is first Uninstall the original toolchain: |
This link may help: |
This is still an issue in August 2019 with Ubuntu 19.04; is there a reason that the official embedded arm packages don't correctly work with hardfp? |
Simply clean project and build it again ; Give it a try |
When I compile default example by "make BOARD=stmf32f4discovery"
Is it because of the compile itself error?which version are you using to compile arm family application? can any one help me?I appreciate it very much
The text was updated successfully, but these errors were encountered: