<?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 undefined reference to `__sync_add_and_fetch_4' in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/undefined-reference-to-sync-add-and-fetch-4/m-p/323810#M14788</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on MKL26Z128VLH4 with CW 10.6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I got the following error in linker&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;undefined reference to `__sync_add_and_fetch_4'&lt;/P&gt;&lt;P&gt;undefined reference to `__sync_val_compare_and_swap_4'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does gcc provide these functions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jul 2014 07:24:42 GMT</pubDate>
    <dc:creator>paulyang</dc:creator>
    <dc:date>2014-07-23T07:24:42Z</dc:date>
    <item>
      <title>undefined reference to `__sync_add_and_fetch_4'</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/undefined-reference-to-sync-add-and-fetch-4/m-p/323810#M14788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on MKL26Z128VLH4 with CW 10.6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I got the following error in linker&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;undefined reference to `__sync_add_and_fetch_4'&lt;/P&gt;&lt;P&gt;undefined reference to `__sync_val_compare_and_swap_4'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does gcc provide these functions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 07:24:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/undefined-reference-to-sync-add-and-fetch-4/m-p/323810#M14788</guid>
      <dc:creator>paulyang</dc:creator>
      <dc:date>2014-07-23T07:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: undefined reference to `__sync_add_and_fetch_4'</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/undefined-reference-to-sync-add-and-fetch-4/m-p/323811#M14789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Paul&lt;/P&gt;&lt;P&gt;Would you please upload your project? I would like to check it for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 07:22:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/undefined-reference-to-sync-add-and-fetch-4/m-p/323811#M14789</guid>
      <dc:creator>Paul_Tian</dc:creator>
      <dc:date>2014-07-24T07:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Re: undefined reference to `__sync_add_and_fetch_4'</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/undefined-reference-to-sync-add-and-fetch-4/m-p/323812#M14790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have attached a test project. &lt;/P&gt;&lt;P&gt;It calls __sync_add_and_fetch() in main.c. This function is provided by gcc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 08:04:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/undefined-reference-to-sync-add-and-fetch-4/m-p/323812#M14790</guid>
      <dc:creator>paulyang</dc:creator>
      <dc:date>2014-07-24T08:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: undefined reference to `__sync_add_and_fetch_4'</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/undefined-reference-to-sync-add-and-fetch-4/m-p/323813#M14791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Paul Yang:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess you could not resolve the issue. Sorry about that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;:smileyinfo: Just for reference for anyone interested, &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;those are “built-in” functions provided by GCC. However CodeWarrior comes with a customized version of GCC developed by FSL + ARM and since those are processor specific functions then I think they are not available for Cortex-M processors.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;Regards!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Jorge Gonzalez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2015 01:56:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/undefined-reference-to-sync-add-and-fetch-4/m-p/323813#M14791</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2015-01-09T01:56:28Z</dc:date>
    </item>
  </channel>
</rss>

