Two different library linking process in MCUXpresso IDE

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

Two different library linking process in MCUXpresso IDE

545 Views
prasannanaik
Contributor III

Hi,

I am using MCUXpresso IDE v11.5

My application code uses floating point hardware whereas my library doesn't use floating point hardware.

When i compile the project, it gives an error that VFP registers used in application code but not in library code.

Is there any way to link these two different kind of libraries?

 

Thanks and best regards,

Prasanna Naik

0 Kudos
2 Replies

535 Views
frank_m
Senior Contributor III

> Is there any way to link these two different kind of libraries?

No.

The two kinds of floating point ABI are "hard" and "soft". The former passes parameters in FP registers, the latter in core registers, thus both are incompatible with each other.

Unless you are using a high amount of floating point calculation especially in tight loop, choose the "softfp" version of the library. It uses FP code and registers, but only core registers for parameter passing. The performance difference compared to "hard" is minimal.

0 Kudos

540 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

HI prasannanaik 

we must make sure application and lib have setting build settings.

Thanks,

Jun Zhang

0 Kudos