<?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: Cortex-M4 and Cortex-M0 code from same bank, is it possible? How much slower is it? in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Cortex-M4-and-Cortex-M0-code-from-same-bank-is-it-possible-How/m-p/555432#M14955</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by bavarian on Thu Apr 07 04:09:50 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Two cores running code from the same memory bank is in general possible, but not a good idea. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It's pretty unpredictable where you end up with the performance of the two cores. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There will be a lot of bus stalling and the flash accelerator of the internal flash gets more or less disabled with this setup.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NXP Support Team.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:39:05 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:39:05Z</dc:date>
    <item>
      <title>Cortex-M4 and Cortex-M0 code from same bank, is it possible? How much slower is it?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Cortex-M4-and-Cortex-M0-code-from-same-bank-is-it-possible-How/m-p/555430#M14953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mysepp on Fri Mar 18 04:36:03 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Would it in general be possible to place Cortex-M4 and Cortex-M0 code both in same flash bank&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;e.g. Cortex-M4 code in first half of bank A, Cortex-M0 code in second half of bank A?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Would it be extremely slower than&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;e.g. compared to Cortex-M4 code in bank A and Cortex-M0 code in bank B?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is having Cortex-M4 code in bank A and Cortex-M0 code in bank B equal or slower&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;then putting Cortex-M0 code into SRAM?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:39:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Cortex-M4-and-Cortex-M0-code-from-same-bank-is-it-possible-How/m-p/555430#M14953</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Cortex-M4 and Cortex-M0 code from same bank, is it possible? How much slower is it?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Cortex-M4-and-Cortex-M0-code-from-same-bank-is-it-possible-How/m-p/555431#M14954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by starblue on Fri Mar 18 05:40:02 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: mysepp&lt;/STRONG&gt;&lt;BR /&gt;Would it in general be possible to place Cortex-M4 and Cortex-M0 code both in same flash bank&lt;BR /&gt;e.g. Cortex-M4 code in first half of bank A, Cortex-M0 code in second half of bank A?&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;Would it be extremely slower than&lt;BR /&gt;e.g. compared to Cortex-M4 code in bank A and Cortex-M0 code in bank B?&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes. I would expect a factor of about three (see below).&lt;/SPAN&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;Is having Cortex-M4 code in bank A and Cortex-M0 code in bank B equal or slower&lt;BR /&gt;then putting Cortex-M0 code into SRAM?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my experience SRAM is the fastest as there are no wait states, an M4 running from flash is about 3 times slower at 200 MHz and 9 wait states. From the wait states alone it should be 10 times slower, but the caching in the flash accelerator compensates that somewhat. If you run two cores on the same flash I would expect that the caching / prefetching becomes ineffective, so I would expect a slowdown by the full factor of 10.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The effectiveness of caching depends on the code. If your code spends a lot of time in small loops or straight-line code it could run faster, if it does a lot of branching it could run slower.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:39:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Cortex-M4-and-Cortex-M0-code-from-same-bank-is-it-possible-How/m-p/555431#M14954</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Cortex-M4 and Cortex-M0 code from same bank, is it possible? How much slower is it?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Cortex-M4-and-Cortex-M0-code-from-same-bank-is-it-possible-How/m-p/555432#M14955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by bavarian on Thu Apr 07 04:09:50 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Two cores running code from the same memory bank is in general possible, but not a good idea. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It's pretty unpredictable where you end up with the performance of the two cores. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There will be a lot of bus stalling and the flash accelerator of the internal flash gets more or less disabled with this setup.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NXP Support Team.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:39:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Cortex-M4-and-Cortex-M0-code-from-same-bank-is-it-possible-How/m-p/555432#M14955</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Cortex-M4 and Cortex-M0 code from same bank, is it possible? How much slower is it?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Cortex-M4-and-Cortex-M0-code-from-same-bank-is-it-possible-How/m-p/555433#M14956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;bump&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jun 2016 01:05:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Cortex-M4-and-Cortex-M0-code-from-same-bank-is-it-possible-How/m-p/555433#M14956</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-19T01:05:42Z</dc:date>
    </item>
  </channel>
</rss>

