<?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中的主题 Re: __NOP is not work?</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/NOP-is-not-work/m-p/462509#M4865</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You did not say what specific ARM part you where using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; NOP is not necessarily a time-consuming depending on the processor. The processor might remove it from the pipeline before it reaches the execution stage.&amp;nbsp; One of the barrier instructions might be more appropriate, for example:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.freescale.com/external-link.jspa?url=http%3A%2F%2Finfocenter.arm.com%2Fhelp%2Findex.jsp%3Ftopic%3D%2Fcom.arm.doc.dui0552a%2FCHDEBIEG.html" rel="nofollow" target="_blank"&gt;http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0552a/CHDEBIEG.html&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also as others noted a NOP must be marked volatile, some compilers such as GCC will remove instructions that have no side-effects.&amp;nbsp; Marking the instruction volatile will make sure that it is not removed by the optimizer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Mar 2016 17:57:29 GMT</pubDate>
    <dc:creator>bobpaddock</dc:creator>
    <dc:date>2016-03-16T17:57:29Z</dc:date>
    <item>
      <title>__NOP is not work?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/NOP-is-not-work/m-p/462504#M4860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="143635_143635.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121161i6541713CF5C3E39D/image-size/large?v=v2&amp;amp;px=999" role="button" title="143635_143635.jpg" alt="143635_143635.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="QQ截图20160309093845.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/22098i31170D76FC219471/image-size/large?v=v2&amp;amp;px=999" role="button" title="QQ截图20160309093845.jpg" alt="QQ截图20160309093845.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Just like pic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I want to delay&amp;nbsp; 1us,but it is not work.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2016 01:52:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/NOP-is-not-work/m-p/462504#M4860</guid>
      <dc:creator>jakewoo</dc:creator>
      <dc:date>2016-03-09T01:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: __NOP is not work?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/NOP-is-not-work/m-p/462505#M4861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="QQ截图20160309095558.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/22183iF795CE58401308B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="QQ截图20160309095558.jpg" alt="QQ截图20160309095558.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found __NOP, it means no use for delay?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2016 02:29:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/NOP-is-not-work/m-p/462505#M4861</guid>
      <dc:creator>jakewoo</dc:creator>
      <dc:date>2016-03-09T02:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: __NOP is not work?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/NOP-is-not-work/m-p/462506#M4862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jake,&lt;/P&gt;&lt;P&gt;from your code __NOP can be used for delay. can you please test to step over the __NOP, can it work normal?&lt;/P&gt;&lt;P&gt;if you increase the value of delay_cnt, can you see the time cost for delay_us() increased with scope?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jennie Zhang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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>Thu, 10 Mar 2016 03:05:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/NOP-is-not-work/m-p/462506#M4862</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2016-03-10T03:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: __NOP is not work?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/NOP-is-not-work/m-p/462507#M4863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi，&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I try __asm("nop"),and can work.&lt;/P&gt;&lt;P&gt;But __NOP is not work,and jump over the __NOP.It is maybe unbelivable:smileyconfused:.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2016 05:08:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/NOP-is-not-work/m-p/462507#M4863</guid>
      <dc:creator>jakewoo</dc:creator>
      <dc:date>2016-03-10T05:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: __NOP is not work?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/NOP-is-not-work/m-p/462508#M4864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jake,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;__asm("nop") is the right inline assembly syntax. &lt;/P&gt;&lt;P&gt;I would like to suggest you look this article on this related topic.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-102477"&gt;Extended Inline Assembly with Kinetis Design Studio&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can this help you?&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jennie Zhang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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>Thu, 10 Mar 2016 10:51:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/NOP-is-not-work/m-p/462508#M4864</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2016-03-10T10:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: __NOP is not work?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/NOP-is-not-work/m-p/462509#M4865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You did not say what specific ARM part you where using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; NOP is not necessarily a time-consuming depending on the processor. The processor might remove it from the pipeline before it reaches the execution stage.&amp;nbsp; One of the barrier instructions might be more appropriate, for example:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.freescale.com/external-link.jspa?url=http%3A%2F%2Finfocenter.arm.com%2Fhelp%2Findex.jsp%3Ftopic%3D%2Fcom.arm.doc.dui0552a%2FCHDEBIEG.html" rel="nofollow" target="_blank"&gt;http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0552a/CHDEBIEG.html&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also as others noted a NOP must be marked volatile, some compilers such as GCC will remove instructions that have no side-effects.&amp;nbsp; Marking the instruction volatile will make sure that it is not removed by the optimizer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 17:57:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/NOP-is-not-work/m-p/462509#M4865</guid>
      <dc:creator>bobpaddock</dc:creator>
      <dc:date>2016-03-16T17:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: __NOP is not work?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/NOP-is-not-work/m-p/1506278#M10217</link>
      <description>&lt;P&gt;__NOP is declared as a function, with the prototype void __NOP(void). You need to call it like "__NOP()", not just "__NOP".&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 17:38:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/NOP-is-not-work/m-p/1506278#M10217</guid>
      <dc:creator>cbabcock</dc:creator>
      <dc:date>2022-08-15T17:38:02Z</dc:date>
    </item>
  </channel>
</rss>

