<?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>topic Re: iMX7d GPIO toggle frequency - M4 slower than A7 in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX7d-GPIO-toggle-frequency-M4-slower-than-A7/m-p/656683#M100660</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Q. Is there any way to improve the GPIO access speed from the Cortex-M4 core, or is this a fundamental limitation of the architecture ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A. Unfortunately, no, there is no way to improve the access rate of the M4 core. And, yes, you are right, this is the fundamental limitation of the architecture.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Artur&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>Tue, 11 Apr 2017 09:13:17 GMT</pubDate>
    <dc:creator>art</dc:creator>
    <dc:date>2017-04-11T09:13:17Z</dc:date>
    <item>
      <title>iMX7d GPIO toggle frequency - M4 slower than A7</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX7d-GPIO-toggle-frequency-M4-slower-than-A7/m-p/656682#M100659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On an iMX7D, using Linux /dev/mem and mmap, I am able to achieve a maximum GPIO toggle rate of 10 Mhz from the (master) A7 core running at 1GHz (i.e. each GPIO transition requires ~ 50 ns).&amp;nbsp; However, when using direct (ASM) access from the Cortex-M4 (running at 238 MHz), the maximum achievable toggle rate drops to ~ 3.3 Mhz - the actual STR instruction writing the bit toggle to the GPIO4 data register requires a full 150 ns to complete (as measured by SYST_CVR reads before and after).&lt;/P&gt;&lt;P style="border: none; padding: 0in;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have enabled Cortex-M4 LMEM caching and programmed the Cortex-M4 MPU to treat the GPIO4 memory space as NON-SHAREABLE, DEVICE MEMORY without any improvement in the toggle rate.&amp;nbsp; Is there any way to improve the GPIO access speed from the Cortex-M4 core , or is this a fundamental limitation of the architecture ?&lt;/P&gt;&lt;P style="border: none; padding: 0in;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, Scott.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS - apologies for the duplicate post - couldn't find a way to move to existing post to i.MX Community threads.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Apr 2017 19:45:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX7d-GPIO-toggle-frequency-M4-slower-than-A7/m-p/656682#M100659</guid>
      <dc:creator>jsm09a</dc:creator>
      <dc:date>2017-04-06T19:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: iMX7d GPIO toggle frequency - M4 slower than A7</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX7d-GPIO-toggle-frequency-M4-slower-than-A7/m-p/656683#M100660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Q. Is there any way to improve the GPIO access speed from the Cortex-M4 core, or is this a fundamental limitation of the architecture ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A. Unfortunately, no, there is no way to improve the access rate of the M4 core. And, yes, you are right, this is the fundamental limitation of the architecture.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Artur&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>Tue, 11 Apr 2017 09:13:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX7d-GPIO-toggle-frequency-M4-slower-than-A7/m-p/656683#M100660</guid>
      <dc:creator>art</dc:creator>
      <dc:date>2017-04-11T09:13:17Z</dc:date>
    </item>
  </channel>
</rss>

