<?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: How to use DSP instructions on Kinetis K66 MCU?</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-use-DSP-instructions-on-Kinetis-K66-MCU/m-p/657209#M40249</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you compiler for HW&amp;nbsp; FPU use?&lt;/P&gt;&lt;P&gt;These flags are needed by GCC:&lt;/P&gt;&lt;P&gt;-mfloat-abi=hard -mfpu=fpv4-sp-d16&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Feb 2017 18:20:43 GMT</pubDate>
    <dc:creator>mjbcswitzerland</dc:creator>
    <dc:date>2017-02-21T18:20:43Z</dc:date>
    <item>
      <title>How to use DSP instructions on Kinetis K66 MCU?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-use-DSP-instructions-on-Kinetis-K66-MCU/m-p/657208#M40248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;I have written a program on the K65 MCU which performs some controls and a few calculations. Looking at execution times I found out that the&amp;nbsp;calculations performed were the instructions that took the most time.&lt;/P&gt;&lt;P&gt;These calculations are simple multiplications between float variables and I think that some micro-seconds for each multiplication is really too high, considering I have a 120 MHz clock! probably there is something missing in my code or there are some compiler&amp;nbsp;options which I have not set properly so I am asking you:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;is there any compiling options I can enable in order to use the math co-processro provided with the ARM -M4?&lt;/LI&gt;&lt;LI&gt;is there any libraryI can laod to use the "DSP Instructions" described in the ARM -M4 reference guide?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Giulio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 18:02:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-use-DSP-instructions-on-Kinetis-K66-MCU/m-p/657208#M40248</guid>
      <dc:creator>giova841</dc:creator>
      <dc:date>2017-02-21T18:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to use DSP instructions on Kinetis K66 MCU?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-use-DSP-instructions-on-Kinetis-K66-MCU/m-p/657209#M40249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you compiler for HW&amp;nbsp; FPU use?&lt;/P&gt;&lt;P&gt;These flags are needed by GCC:&lt;/P&gt;&lt;P&gt;-mfloat-abi=hard -mfpu=fpv4-sp-d16&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 18:20:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-use-DSP-instructions-on-Kinetis-K66-MCU/m-p/657209#M40249</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2017-02-21T18:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to use DSP instructions on Kinetis K66 MCU?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-use-DSP-instructions-on-Kinetis-K66-MCU/m-p/657210#M40250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, these are my compiler settings:&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/13614i5DCF1356607F8B71/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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 21:36:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-use-DSP-instructions-on-Kinetis-K66-MCU/m-p/657210#M40250</guid>
      <dc:creator>giova841</dc:creator>
      <dc:date>2017-02-21T21:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to use DSP instructions on Kinetis K66 MCU?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-use-DSP-instructions-on-Kinetis-K66-MCU/m-p/657211#M40251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Besides to set the compiler, it also need to enable FPU with below code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;; Enable the floating point coprocessor&lt;/DIV&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;#if defined (_VFPv4_)&lt;/DIV&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN class="" style="white-space: pre; background-color: inherit;"&gt;&lt;/SPAN&gt;MOVW r1,#60808 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;; load CPACR &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/DIV&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN class="" style="white-space: pre; background-color: inherit;"&gt;&lt;/SPAN&gt;MOVT r1,#57344 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;; (0xE000ED88)&amp;nbsp;&lt;/DIV&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN class="" style="white-space: pre; background-color: inherit;"&gt;&lt;/SPAN&gt;LDR r0,[r1]&lt;/DIV&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN class="" style="white-space: pre; background-color: inherit;"&gt;&lt;/SPAN&gt;ORR.W r0,r0,#VFPEnable &amp;nbsp; &amp;nbsp; &amp;nbsp;; Enable FPU&lt;/DIV&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN class="" style="white-space: pre; background-color: inherit;"&gt;&lt;/SPAN&gt;STR r0, [r1] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;; on CP10, CP11&lt;/DIV&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN class="" style="white-space: pre; background-color: inherit;"&gt;&lt;/SPAN&gt;MOV.W r0,#R2N_Enable&lt;/DIV&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN class="" style="white-space: pre; background-color: inherit;"&gt;&lt;/SPAN&gt;VMSR FPSCR, r0&lt;/DIV&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;#endif&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Ma Hui&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2017 08:22:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-use-DSP-instructions-on-Kinetis-K66-MCU/m-p/657211#M40251</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2017-02-27T08:22:20Z</dc:date>
    </item>
  </channel>
</rss>

