Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

Hard FP compilation under GCC

$
0
0

I'm trying to take advantage of the hardware floating point support in the Stellaris Launchpad and as I understand I need to recompile both my application and libraries using the -mfloat-abi=hard flag.

The thing is that I've changed -mfloat-abi=softfp to -mfloat-abi=hard in my make file, and done the same in makedefs before running a make clean then make install on my stellarisware directory. However, I'm still getting the following error on pretty much all my files:

"c:\arm-gcc\bin\arm-none-eabi-ld.exe: error: src/system/startup_gcc.o uses VFP register arguments, bin/myproject.axf does not"

Which from my research occurs when floating point types are mixed.

I can see though in my make file output:

"Compiling src/system/startup_gcc.c...
arm-none-eabi-gcc -c -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Os -ffunction-sections -fdata-sections -MD -std=c99 -Wall -pedantic -DPART_LM4F120H5QR -c -DTARGET_IS_BLIZZARD_RA1 -g -D DEBUG -D gcc -IC:\StellarisWare src/system/startup_gcc.c -o src/system/startup_gcc.o"

So I don't know why I'm still receiving this message, I've run make clean and manually deleted my compiled artifacts several times to ensure that's not the issue.

I'm using gcc-arm-none-eabi 4.7-2013-q1-update.

Any ideas?


Viewing all articles
Browse latest Browse all 262198

Trending Articles