<?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: FPU unit hardfault</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FPU-unit-hardfault/m-p/906671#M53207</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amine,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please provide the details&amp;nbsp;on how you created your project&amp;nbsp;to include the FPU by software?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can provide the project itself by attaching the ZIP file or screenshots as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Sabina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Apr 2019 18:54:04 GMT</pubDate>
    <dc:creator>Sabina_Bruce</dc:creator>
    <dc:date>2019-04-23T18:54:04Z</dc:date>
    <item>
      <title>FPU unit hardfault</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FPU-unit-hardfault/m-p/906670#M53206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;I'm using TWR-K60D100M to deal with floating point number so i create a new project and include a soft Fpu , when i tried to debug the program it's jumping on hardfault that i can understand, for this i added here a screenshot maybe someone can help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for u.&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="screenshot.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80671i115A44C2DB38DC99/image-size/large?v=v2&amp;amp;px=999" role="button" title="screenshot.jpg" alt="screenshot.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2019 14:20:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FPU-unit-hardfault/m-p/906670#M53206</guid>
      <dc:creator>aminesedki_as</dc:creator>
      <dc:date>2019-04-23T14:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: FPU unit hardfault</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FPU-unit-hardfault/m-p/906671#M53207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amine,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please provide the details&amp;nbsp;on how you created your project&amp;nbsp;to include the FPU by software?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can provide the project itself by attaching the ZIP file or screenshots as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Sabina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2019 18:54:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FPU-unit-hardfault/m-p/906671#M53207</guid>
      <dc:creator>Sabina_Bruce</dc:creator>
      <dc:date>2019-04-23T18:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: FPU unit hardfault</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FPU-unit-hardfault/m-p/906672#M53208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sabina please find here the zip file of my project it's juste a simple exemple the goal for me is to understand how to use the FPU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your quick reaction&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2019 19:31:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FPU-unit-hardfault/m-p/906672#M53208</guid>
      <dc:creator>aminesedki_as</dc:creator>
      <dc:date>2019-04-23T19:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: FPU unit hardfault</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FPU-unit-hardfault/m-p/906673#M53209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;Hello Amine,&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;Thank you for the information.&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;Firstly I would like to point out that the TWR-K60D100 does not have an FPU in hardware. I noticed you modified the MK60D10.h file and changed the following value to one:&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;#define __FPU_PRESENT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /**&amp;lt; Defines if an FPU is present or not */&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;It is crucial that these files are not modified as they represent the core cortex configuration, in this case as I mentioned there is no FPU physically present so this value has to remain 0.&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;Also I noticed that in your settings you have selected the softABI mode, this is incorrect as this is for operations that are implemented in hardware. You can refer to this &lt;A _jive_internal="true" href="https://community.nxp.com/thread/388994"&gt;article&lt;/A&gt;&amp;nbsp;for more information about the floating point variants,&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;Now in order to change your project to the correct mode, you can select your project and click on &lt;STRONG&gt;PROPERTIES &amp;gt; C/C++ BUILD &amp;gt; SETTINGS&lt;/STRONG&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/80688i08606C2E3B30B64E/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;&lt;STRONG&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/80689i4A62B2DF1CA0A26C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you can make sure that the &lt;STRONG&gt;Floating point is set to None&lt;/STRONG&gt; in the&lt;STRONG&gt; Architecture for the MCU C Compiler&lt;/STRONG&gt; , as well as the &lt;STRONG&gt;Architecture &amp;amp; Headers in MCU Assembler&lt;/STRONG&gt; and &lt;STRONG&gt;Architecture in the MCU Linker&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After you have modified your project build and run it again. This will automatically emulate the floating point instructions for you and you should see the correct printed value in your console.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this has positive results for you,&lt;/P&gt;&lt;P&gt;Sabina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2019 22:26:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FPU-unit-hardfault/m-p/906673#M53209</guid>
      <dc:creator>Sabina_Bruce</dc:creator>
      <dc:date>2019-04-23T22:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: FPU unit hardfault</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FPU-unit-hardfault/m-p/906674#M53210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sabina,&lt;/P&gt;&lt;P&gt;thank u very much it's work but i want to know if i turn this program on the K60 if it's will work and not only work on the console&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank u very much&lt;span class="lia-inline-image-display-wrapper" image-alt="results.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80741i7306708DAFBFD6D0/image-size/large?v=v2&amp;amp;px=999" role="button" title="results.jpg" alt="results.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2019 07:34:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FPU-unit-hardfault/m-p/906674#M53210</guid>
      <dc:creator>aminesedki_as</dc:creator>
      <dc:date>2019-04-24T07:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: FPU unit hardfault</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FPU-unit-hardfault/m-p/906675#M53211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amine,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;In order to see this work when you are not debugging, you need to change the settings to UART so you can see the same in a serial terminal even if it is not debugging.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;To do this you need to select your project and go to the quickstart panel. Here you can select &lt;STRONG&gt;Quick Settings &amp;gt; SDK Debug Console &amp;gt; UART Console.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&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/80958i362A4FF86A839C8D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Finally select your project again, right click and select &lt;STRONG&gt;Clean&lt;/STRONG&gt;. Then rebuild your project and run it. If you end the debug session and reset your board you can see the results in a serial terminal like TeraTerm.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Hope this helps,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Sabina&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2019 16:16:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FPU-unit-hardfault/m-p/906675#M53211</guid>
      <dc:creator>Sabina_Bruce</dc:creator>
      <dc:date>2019-04-25T16:16:52Z</dc:date>
    </item>
  </channel>
</rss>

