<?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>Kinetis Design StudioのトピックSorting out asm(); in KDS: How to change your compiler language to GNU ISO90</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Sorting-out-asm-in-KDS-How-to-change-your-compiler-language-to/m-p/316042#M263</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problems with asm(); calls in KDS coming back as "&lt;SPAN style="font-size: 10.0pt; font-family: 'Segoe UI','sans-serif'; color: black;"&gt;undefined reference&lt;/SPAN&gt;"?&lt;/P&gt;&lt;P&gt;as the FAQ says: &lt;A _jive_internal="true" data-containerid="11213" data-containertype="14" data-objectid="100440" data-objecttype="102" href="https://community.nxp.com/docs/DOC-100440"&gt;KDS Frequently Asked Questions (FAQ)&lt;/A&gt;&lt;BR /&gt;"By default the compiler settings are for C99, and there the 'asm' keyword is not recognized. Either change it to __asm (with two underscores) or change the compiler settings to use GNU ISO 90"&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so you can either add '__' in front of&amp;nbsp; all asm() calls (a simple search and replace should do), or you can edit the compiler options. If you're using a framework, you might prefer the compiler options route, so here's how to do that:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Access the Project options by right clicking your project and selecting 'Properties'&lt;/P&gt;&lt;P&gt;2)Navigate through to "C/C++ Build&amp;gt;Settings&amp;gt;Tool Settings&amp;gt;Cross ARM C Compiler &amp;gt; Optimization &amp;gt; Langauge Standard"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="13104_13104.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119855i84A83FA8CD0869E1/image-size/large?v=v2&amp;amp;px=999" role="button" title="13104_13104.png" alt="13104_13104.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="CompilerLanguageSettings.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/44784iD75074EBE8359F02/image-size/large?v=v2&amp;amp;px=999" role="button" title="CompilerLanguageSettings.png" alt="CompilerLanguageSettings.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3) Select "Tool Chain Default (GNU ISO C90)" from the drop down menu&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4) Your project should now build fine and "undefined reference: asm" should be a thing of the past!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this is helpful for anyone like me who had asm issues and didn't know how to change these settings&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone knows how to set this as the default for all new KDS projects, please let me know!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Jul 2014 13:33:09 GMT</pubDate>
    <dc:creator>raels-r</dc:creator>
    <dc:date>2014-07-04T13:33:09Z</dc:date>
    <item>
      <title>Sorting out asm(); in KDS: How to change your compiler language to GNU ISO90</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Sorting-out-asm-in-KDS-How-to-change-your-compiler-language-to/m-p/316042#M263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problems with asm(); calls in KDS coming back as "&lt;SPAN style="font-size: 10.0pt; font-family: 'Segoe UI','sans-serif'; color: black;"&gt;undefined reference&lt;/SPAN&gt;"?&lt;/P&gt;&lt;P&gt;as the FAQ says: &lt;A _jive_internal="true" data-containerid="11213" data-containertype="14" data-objectid="100440" data-objecttype="102" href="https://community.nxp.com/docs/DOC-100440"&gt;KDS Frequently Asked Questions (FAQ)&lt;/A&gt;&lt;BR /&gt;"By default the compiler settings are for C99, and there the 'asm' keyword is not recognized. Either change it to __asm (with two underscores) or change the compiler settings to use GNU ISO 90"&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so you can either add '__' in front of&amp;nbsp; all asm() calls (a simple search and replace should do), or you can edit the compiler options. If you're using a framework, you might prefer the compiler options route, so here's how to do that:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Access the Project options by right clicking your project and selecting 'Properties'&lt;/P&gt;&lt;P&gt;2)Navigate through to "C/C++ Build&amp;gt;Settings&amp;gt;Tool Settings&amp;gt;Cross ARM C Compiler &amp;gt; Optimization &amp;gt; Langauge Standard"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="13104_13104.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119855i84A83FA8CD0869E1/image-size/large?v=v2&amp;amp;px=999" role="button" title="13104_13104.png" alt="13104_13104.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="CompilerLanguageSettings.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/44784iD75074EBE8359F02/image-size/large?v=v2&amp;amp;px=999" role="button" title="CompilerLanguageSettings.png" alt="CompilerLanguageSettings.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3) Select "Tool Chain Default (GNU ISO C90)" from the drop down menu&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4) Your project should now build fine and "undefined reference: asm" should be a thing of the past!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this is helpful for anyone like me who had asm issues and didn't know how to change these settings&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone knows how to set this as the default for all new KDS projects, please let me know!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2014 13:33:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Sorting-out-asm-in-KDS-How-to-change-your-compiler-language-to/m-p/316042#M263</guid>
      <dc:creator>raels-r</dc:creator>
      <dc:date>2014-07-04T13:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting out asm(); in KDS: How to change your compiler language to GNU ISO90</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Sorting-out-asm-in-KDS-How-to-change-your-compiler-language-to/m-p/316043#M264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am facing this problem and just try your method, but it still not recognize the asm&amp;nbsp;function. any other solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2017 13:46:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Sorting-out-asm-in-KDS-How-to-change-your-compiler-language-to/m-p/316043#M264</guid>
      <dc:creator>radiptacandra</dc:creator>
      <dc:date>2017-11-09T13:46:32Z</dc:date>
    </item>
  </channel>
</rss>

