Error While integrating AMMCLib with existing Project

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

Error While integrating AMMCLib with existing Project

Jump to solution
887 Views
krithick14
Contributor I

I am trying to integrate AMMCLib with my existing project and call its functions.Facing the below issue in linking the objects. please help.

Refer images attached for more info

Description Resource Path Location Type error: CPAPSW.elf uses VFP register arguments, C:/Krithick/Mando/CPAP_sw (3)/CPAP_sw/CPAPSW/include\libCLIB.a(uds.o) does not CPAPSW C/C++ Problem failed to merge target specific data of file C:/Krithick/Mando/CPAP_sw (3)/CPAP_sw/CPAPSW/include\libCLIB.a(uds.o) CPAPSW C/C++ Problem

 

#AAMCLIB

#S32K

0 Kudos
Reply
1 Solution
801 Views
petrz_
NXP Employee
NXP Employee

Hi,

your project is configured to use FP instructions (hard) whereas your library libCLIB.a was compiled with software FP emulation. This means that your library uses general-purpose registers for passing float arguments in function calls and your project puts float arguments into VFP registers. You will need to recompile your library with the same FP settings as your project.

View solution in original post

0 Kudos
Reply
2 Replies
763 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

the libCLIB.a needs to be re-build with hardware float point support. 

0 Kudos
Reply
802 Views
petrz_
NXP Employee
NXP Employee

Hi,

your project is configured to use FP instructions (hard) whereas your library libCLIB.a was compiled with software FP emulation. This means that your library uses general-purpose registers for passing float arguments in function calls and your project puts float arguments into VFP registers. You will need to recompile your library with the same FP settings as your project.

0 Kudos
Reply