emWin on LPC4357 with Gnu and floating point

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

emWin on LPC4357 with Gnu and floating point

619 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by hlsa on Wed Apr 17 03:35:41 MST 2013

I would like to use the emWin library together with the LPC4357 using the GNU 4.6.2 toolchain. Therefore I added the precompiled library "libemWin_518_LPCXpresso501_M4_LE_Redlib.a" to the linker arguments. However, the linker now provides the following output:


ld.exe: error: output.elf uses VFP register arguments, C:\Lpc4357_MCB4300\libemWin_518_LPCXpresso501_M4_LE_Redlib.a(GUI_Alloc.o) does not 


Probably the library has been compiled with the software floating point option "-mfloat-abi=soft". However, I need to use hardware floating point for my own code ("-mfloat-abi=hard").


 


How can I get the emWin library running with hardware floating point?


 


Best regards,


Holger 

Labels (1)
0 Kudos
1 Reply

488 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Wouter on Fri Apr 19 02:41:49 MST 2013

Hi,


 


The GCC emWin libraries are compiled with default -mfloat-abi value. Compiling/linking your project with option "-mfloat-abi=softfp" should solve the linker issue. Note that option "-mfloat-abi=softfp" still uses the FPU, only the calling convention is different from "-mfloat-abi=hard". See: http://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html


 


Regards,


Wouter

0 Kudos