emWin on LPC4357 with Gnu and floating point

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

emWin on LPC4357 with Gnu and floating point

1,183 次查看
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 

标签 (1)
0 项奖励
回复
1 回复

1,052 次查看
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 项奖励
回复