<?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: How to run M7 code from both TCM and DDR? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-run-M7-code-from-both-TCM-and-DDR/m-p/1515462#M194605</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/199125"&gt;@jpsk&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;[Q] Is there a way to speed up the code running from the DDR?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;[A]&lt;/P&gt;
&lt;P&gt;The biggest factor is cache! You must enable the M4 cache&amp;nbsp;when running from DDR.&lt;/P&gt;
&lt;P&gt;That will help you speed up the code running.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Dhruvit.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Sep 2022 09:36:17 GMT</pubDate>
    <dc:creator>Dhruvit</dc:creator>
    <dc:date>2022-09-01T09:36:17Z</dc:date>
    <item>
      <title>How to run M7 code from both TCM and DDR?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-run-M7-code-from-both-TCM-and-DDR/m-p/1507630#M193962</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a simple program running on the M7 (i.MX8 Nano) which triggers a GPIO interrupt to unblock the SPI read when a "data ready" signal is received from the ADC&amp;nbsp; ~every 43us.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run this code in TCM, timing looks great and everything works beautifully.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: "ADC CS" is a&amp;nbsp;separate GPIO pin that complements the native SPI Chip Select to select one of multiple SPI slaves in the SPI bus.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jpsk_0-1660757165769.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/190519i697679120C6D5D78/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jpsk_0-1660757165769.png" alt="jpsk_0-1660757165769.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I run the code from DDR, the ISR was not serviced timely and the entire routine to retrieve the SPI data takes about 10 times longer!&amp;nbsp;&amp;nbsp;Is there a way to speed up the code running from the DDR?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jpsk_1-1660757457420.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/190520i1A52057052A271A7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jpsk_1-1660757457420.png" alt="jpsk_1-1660757457420.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How to setup the code to run from both TCM and DDR?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Due to the size of the TCM (128K each for Instructions and Data), running our entire program on the TCM is not a viable solution, I read that it is possible to run the most time critical routines (ISR, real time tasks) from the TCM and the rest from the DDR.&amp;nbsp; Is there an example somewhere that I can refer to see how this is done?&lt;/P&gt;&lt;P&gt;Any pointers on how to address the execution speed limitation is greatly appreciated. Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 17:48:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-run-M7-code-from-both-TCM-and-DDR/m-p/1507630#M193962</guid>
      <dc:creator>jpsk</dc:creator>
      <dc:date>2022-08-17T17:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to run M7 code from both TCM and DDR?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-run-M7-code-from-both-TCM-and-DDR/m-p/1515462#M194605</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/199125"&gt;@jpsk&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;[Q] Is there a way to speed up the code running from the DDR?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;[A]&lt;/P&gt;
&lt;P&gt;The biggest factor is cache! You must enable the M4 cache&amp;nbsp;when running from DDR.&lt;/P&gt;
&lt;P&gt;That will help you speed up the code running.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Dhruvit.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 09:36:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-run-M7-code-from-both-TCM-and-DDR/m-p/1515462#M194605</guid>
      <dc:creator>Dhruvit</dc:creator>
      <dc:date>2022-09-01T09:36:17Z</dc:date>
    </item>
  </channel>
</rss>

