<?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 MicrocontrollersのトピックRe: Connecting floating point type to project</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Connecting-floating-point-type-to-project/m-p/1050540#M56933</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have found a very simple solution on how to connect the CMSIS library on the IAR site:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.iar.com/support/resources/articles/using-iar-embedded-workbench-for-arm-and-the-cmsis-dsp-library/" title="https://www.iar.com/support/resources/articles/using-iar-embedded-workbench-for-arm-and-the-cmsis-dsp-library/"&gt;https://www.iar.com/support/resources/articles/using-iar-embedded-workbench-for-arm-and-the-cmsis-dsp-library/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Aug 2020 06:34:58 GMT</pubDate>
    <dc:creator>evgenik</dc:creator>
    <dc:date>2020-08-12T06:34:58Z</dc:date>
    <item>
      <title>Connecting floating point type to project</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Connecting-floating-point-type-to-project/m-p/1050535#M56928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working with IAR and Kinetis TWR-K21 development board,1024KB Flash, 128KB RAM.&lt;/P&gt;&lt;P&gt;When a function is called, which contains variables of float type, HardFault_Handler occurs. When studying this topic, I realized that I did not have a CMSIS connected (floating-point definition). After I connected the core_hm4.h file, which describes the floating-point, the function began to work, but variables of the float type in Watch show an error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have examples with fsl_... drivers&amp;nbsp;that work with float type without any problems. I can't use this project example as a template because I don't use fsl_.. drivers. I am using my own drivers.&lt;/P&gt;&lt;P&gt;Is there any specific way to connect to the IAR project the CMSIS instead of connecting &lt;SPAN&gt;core_hm4.h file&lt;/SPAN&gt;? (via General Options-&amp;gt; Library Configuration CMSIS does not work), or need to build a project from scratch with any specific definition?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Evgeni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2020 19:06:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Connecting-floating-point-type-to-project/m-p/1050535#M56928</guid>
      <dc:creator>evgenik</dc:creator>
      <dc:date>2020-07-31T19:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting floating point type to project</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Connecting-floating-point-type-to-project/m-p/1050536#M56929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="38410" data-username="evgenik" href="https://community.nxp.com/people/evgenik" style="color: #3d9ce7; background-color: #ffffff; border: 0px; font-weight: 600; text-decoration: underline; font-size: 11.9994px;"&gt;Evgeni Kosakovski&lt;/A&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp; Do you test the K21 SDK code which can be downloaded from this link:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuxpresso.nxp.com/en/select" title="https://mcuxpresso.nxp.com/en/select"&gt;https://mcuxpresso.nxp.com/en/select&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I have tested it on my side with the TWR-K21F120M board, the float is working.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Just based on the helloworld project:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/109184iA6583687A514B9AF/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/109216i544F4E32AF14E224/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You also can try the NXP sdk code on your side.&lt;/P&gt;&lt;P&gt;If you still have questions about it, please kindly let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Best Regards,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Kerry&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2020 04:48:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Connecting-floating-point-type-to-project/m-p/1050536#M56929</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2020-08-03T04:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting floating point type to project</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Connecting-floating-point-type-to-project/m-p/1050537#M56930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry.&lt;/P&gt;&lt;P&gt;Thanks for your reference. But I wrote about this, I don't have fsl drivers library. I am using my own driver's library. I ask: what needs to connect to the project, like lib, h. or any other files, and check into the project configuration, that project will start work with floating-point correctly?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Evgeni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2020 11:46:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Connecting-floating-point-type-to-project/m-p/1050537#M56930</guid>
      <dc:creator>evgenik</dc:creator>
      <dc:date>2020-08-03T11:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting floating point type to project</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Connecting-floating-point-type-to-project/m-p/1050538#M56931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are math.h, and maybe stdlib.h, and related libraries linkage being included in the linker file?&lt;/P&gt;&lt;P&gt;I don't know their IAR names to help with those.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2020 12:10:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Connecting-floating-point-type-to-project/m-p/1050538#M56931</guid>
      <dc:creator>bobpaddock</dc:creator>
      <dc:date>2020-08-03T12:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting floating point type to project</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Connecting-floating-point-type-to-project/m-p/1050539#M56932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="38410" data-username="evgenik" href="https://community.nxp.com/people/evgenik" style="color: #3d9ce7; background-color: #ffffff; border: 0px; font-weight: 200; text-decoration: underline; font-size: 1.286rem;"&gt;Evgeni Kosakovski&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Do you enable the FPU on your side?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/109335i5CE2B11EAFDAF1D8/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The SDK related header file is:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/109376i8C141F57725258E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I think you can try the related console driver, then printf the float on your side, whether ti works with your own other drivers.&lt;/P&gt;&lt;P&gt;Maybe you can also refer to the SDK IAR project, then test it on your side, compare the detail difference, which one will influence your float, I didn't find any other lib for float. The K21 have the FPU, it can support the float calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Best Regards,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Kerry&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2020 03:28:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Connecting-floating-point-type-to-project/m-p/1050539#M56932</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2020-08-04T03:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting floating point type to project</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Connecting-floating-point-type-to-project/m-p/1050540#M56933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have found a very simple solution on how to connect the CMSIS library on the IAR site:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.iar.com/support/resources/articles/using-iar-embedded-workbench-for-arm-and-the-cmsis-dsp-library/" title="https://www.iar.com/support/resources/articles/using-iar-embedded-workbench-for-arm-and-the-cmsis-dsp-library/"&gt;https://www.iar.com/support/resources/articles/using-iar-embedded-workbench-for-arm-and-the-cmsis-dsp-library/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2020 06:34:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Connecting-floating-point-type-to-project/m-p/1050540#M56933</guid>
      <dc:creator>evgenik</dc:creator>
      <dc:date>2020-08-12T06:34:58Z</dc:date>
    </item>
  </channel>
</rss>

