__fp16 (Halfprecision floating point) problem

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

__fp16 (Halfprecision floating point) problem

308 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by bap on Tue May 15 09:28:06 MST 2012
I have the LPC1114 LPCXpresso board and LPCXpresso v4.2.2 [Build 275]. In my code I use the half precision floating point (__fp16). I have set the compiler flag -mfp16-format=ieee, but when linking I get the error: "undefined reference to `__aeabi_f2h'." I probably only need to set a linker flag, but I don't know which one and I haven't found the solution yet. So if anyone could point me in the right direction it would be much appreciated.
0 Kudos
1 Reply

255 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Tue May 15 09:49:55 MST 2012
Hi,

The issue is that half precision floating point is not supported in Redlib. You should just switch to Newlib and you will be able to link.
0 Kudos