<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: error while using lib generated in S32K</title>
    <link>https://community.nxp.com/t5/S32K/error-while-using-lib-generated/m-p/2188955#M53665</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/245816"&gt;@zhangzhixing&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You're seeing the following linker error when using a static library (libTESTLIB.a) in your S32DS project for S32K:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;error: LpuartFlexio_Uart_Ip_Example_S32K396.elf uses VFP register arguments,
libTESTLIB.a(SchM_Port.o) does not
error: failed to merge target specific data
collect2.exe: error: ld returned 1 exit status
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This means there's a &lt;STRONG&gt;mismatch in the floating-point ABI&lt;/STRONG&gt; between your application and the library.&lt;/P&gt;
&lt;P&gt;Your application is compiled with &lt;STRONG&gt;VFP (hardware floating-point)&lt;/STRONG&gt; support, using VFP registers to pass arguments.&lt;BR /&gt;However, the library object file (SchM_Port.o) was compiled without VFP support — likely using softfp or soft ABI.&lt;/P&gt;
&lt;P&gt;This ABI mismatch prevents the linker from combining the object files.&lt;/P&gt;
&lt;P&gt;To fix this, ensure &lt;STRONG&gt;both your application and the library are compiled with the same ABI settings&lt;/STRONG&gt;.&lt;/P&gt;
&lt;H4&gt;Option 1: Rebuild the library with VFP support&lt;/H4&gt;
&lt;P&gt;In S32DS:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Go to &lt;STRONG&gt;Project Properties&lt;/STRONG&gt; → &lt;STRONG&gt;C/C++ Build&lt;/STRONG&gt; → &lt;STRONG&gt;Settings&lt;/STRONG&gt; → &lt;STRONG&gt;Tool Settings&lt;/STRONG&gt; → &lt;STRONG&gt;Target Processor&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Set:
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Floating Point Unit&lt;/STRONG&gt;: FPv5-sp-d16 (or appropriate for your core)&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Floating Point ABI&lt;/STRONG&gt;: hard (to use VFP registers)&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Make sure these settings match in &lt;STRONG&gt;both&lt;/STRONG&gt; the main project and the library project.&lt;/P&gt;
&lt;H4&gt;Option 2: Change your main project to use softfp&lt;/H4&gt;
&lt;P&gt;If you cannot rebuild the library, you can change your main project to use softfp ABI:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Set &lt;STRONG&gt;Floating Point ABI&lt;/STRONG&gt; to softfp in your project settings.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;This allows compatibility with both hard and soft ABI, but may reduce performance.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PavelL_0-1760942436436.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/361581i6975F886EF0C541F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PavelL_0-1760942436436.png" alt="PavelL_0-1760942436436.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Pavel&lt;/P&gt;</description>
    <pubDate>Mon, 20 Oct 2025 06:40:51 GMT</pubDate>
    <dc:creator>PavelL</dc:creator>
    <dc:date>2025-10-20T06:40:51Z</dc:date>
    <item>
      <title>error while using lib generated</title>
      <link>https://community.nxp.com/t5/S32K/error-while-using-lib-generated/m-p/2188704#M53655</link>
      <description>&lt;P&gt;i made a lib using S32DS for S32K,but when i using the lib ,got the following errors ,how can i fix it .:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="reset board.bmp" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/361507iEADD9BD666D62CE6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="reset board.bmp" alt="reset board.bmp" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Sun, 19 Oct 2025 13:54:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/error-while-using-lib-generated/m-p/2188704#M53655</guid>
      <dc:creator>zhangzhixing</dc:creator>
      <dc:date>2025-10-19T13:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: error while using lib generated</title>
      <link>https://community.nxp.com/t5/S32K/error-while-using-lib-generated/m-p/2188955#M53665</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/245816"&gt;@zhangzhixing&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You're seeing the following linker error when using a static library (libTESTLIB.a) in your S32DS project for S32K:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;error: LpuartFlexio_Uart_Ip_Example_S32K396.elf uses VFP register arguments,
libTESTLIB.a(SchM_Port.o) does not
error: failed to merge target specific data
collect2.exe: error: ld returned 1 exit status
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This means there's a &lt;STRONG&gt;mismatch in the floating-point ABI&lt;/STRONG&gt; between your application and the library.&lt;/P&gt;
&lt;P&gt;Your application is compiled with &lt;STRONG&gt;VFP (hardware floating-point)&lt;/STRONG&gt; support, using VFP registers to pass arguments.&lt;BR /&gt;However, the library object file (SchM_Port.o) was compiled without VFP support — likely using softfp or soft ABI.&lt;/P&gt;
&lt;P&gt;This ABI mismatch prevents the linker from combining the object files.&lt;/P&gt;
&lt;P&gt;To fix this, ensure &lt;STRONG&gt;both your application and the library are compiled with the same ABI settings&lt;/STRONG&gt;.&lt;/P&gt;
&lt;H4&gt;Option 1: Rebuild the library with VFP support&lt;/H4&gt;
&lt;P&gt;In S32DS:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Go to &lt;STRONG&gt;Project Properties&lt;/STRONG&gt; → &lt;STRONG&gt;C/C++ Build&lt;/STRONG&gt; → &lt;STRONG&gt;Settings&lt;/STRONG&gt; → &lt;STRONG&gt;Tool Settings&lt;/STRONG&gt; → &lt;STRONG&gt;Target Processor&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Set:
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Floating Point Unit&lt;/STRONG&gt;: FPv5-sp-d16 (or appropriate for your core)&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Floating Point ABI&lt;/STRONG&gt;: hard (to use VFP registers)&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Make sure these settings match in &lt;STRONG&gt;both&lt;/STRONG&gt; the main project and the library project.&lt;/P&gt;
&lt;H4&gt;Option 2: Change your main project to use softfp&lt;/H4&gt;
&lt;P&gt;If you cannot rebuild the library, you can change your main project to use softfp ABI:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Set &lt;STRONG&gt;Floating Point ABI&lt;/STRONG&gt; to softfp in your project settings.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;This allows compatibility with both hard and soft ABI, but may reduce performance.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PavelL_0-1760942436436.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/361581i6975F886EF0C541F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PavelL_0-1760942436436.png" alt="PavelL_0-1760942436436.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Pavel&lt;/P&gt;</description>
      <pubDate>Mon, 20 Oct 2025 06:40:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/error-while-using-lib-generated/m-p/2188955#M53665</guid>
      <dc:creator>PavelL</dc:creator>
      <dc:date>2025-10-20T06:40:51Z</dc:date>
    </item>
  </channel>
</rss>

