<?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>ColdFire/68K Microcontrollers and ProcessorsのトピックRe: Place code in internal flash and SPI flash</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Place-code-in-internal-flash-and-SPI-flash/m-p/474190#M12697</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; the processor cannot fetch instructions from the &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;SPI&lt;/STRONG&gt;&lt;/SPAN&gt; bus.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;That is NOT what the OP asked. He asked how to copy the code from external SPI Flash to RAM and then execute it from there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That has nothing to do with this CPU. It is a general question that applies equally to all types of CPU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the OP is using CodeWarrior, then the question is "how do I configure CodeWarrior so it will generate code I can then copy to RAM"? This question should be moved to the CodeWarrior forum. The question might/should be answered in the Codewarrior documentation. There should be examples on how to do this. Has the OP looked there?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If using a different toolchain, then it should be in the documentation for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Mar 2016 22:17:08 GMT</pubDate>
    <dc:creator>TomE</dc:creator>
    <dc:date>2016-03-17T22:17:08Z</dc:date>
    <item>
      <title>Place code in internal flash and SPI flash</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Place-code-in-internal-flash-and-SPI-flash/m-p/474188#M12695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Our project is based on the old using MCF52258, 512KB flash, 64 K sram + 128K external SDRAM. Now the code is increasing, I am considering that place partial code in SPI flash, then load and run in SDRAM. Here is what I am thinking, &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;file1.c&lt;/P&gt;&lt;PRE class="c++" name="code"&gt;function1() { }&amp;nbsp; function2() { }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;file2.c&lt;/P&gt;&lt;PRE class="c++" name="code"&gt;function3() { }&amp;nbsp; function4() { }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Objective: placing file1.c in to internal flash, file2.c in to spi flash, when calling function3 and function4, read the code from SPI flash to external ram, then run in ram&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this feasible? How to? &lt;/P&gt;&lt;P&gt;Does Anyone have any advice?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 16.8px;"&gt; external ram&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 07:16:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Place-code-in-internal-flash-and-SPI-flash/m-p/474188#M12695</guid>
      <dc:creator>leocheng</dc:creator>
      <dc:date>2016-01-07T07:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Place code in internal flash and SPI flash</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Place-code-in-internal-flash-and-SPI-flash/m-p/474189#M12696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Unfortunately, due to the CORE architecture the processor cannot fetch instructions from the &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;SPI&lt;/STRONG&gt;&lt;/SPAN&gt; bus. So an external &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;spi&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;flash&lt;/STRONG&gt;&lt;/SPAN&gt; cannot be used same as an internal flash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 06:26:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Place-code-in-internal-flash-and-SPI-flash/m-p/474189#M12696</guid>
      <dc:creator>miduo</dc:creator>
      <dc:date>2016-03-16T06:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Place code in internal flash and SPI flash</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Place-code-in-internal-flash-and-SPI-flash/m-p/474190#M12697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; the processor cannot fetch instructions from the &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;SPI&lt;/STRONG&gt;&lt;/SPAN&gt; bus.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;That is NOT what the OP asked. He asked how to copy the code from external SPI Flash to RAM and then execute it from there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That has nothing to do with this CPU. It is a general question that applies equally to all types of CPU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the OP is using CodeWarrior, then the question is "how do I configure CodeWarrior so it will generate code I can then copy to RAM"? This question should be moved to the CodeWarrior forum. The question might/should be answered in the Codewarrior documentation. There should be examples on how to do this. Has the OP looked there?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If using a different toolchain, then it should be in the documentation for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 22:17:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Place-code-in-internal-flash-and-SPI-flash/m-p/474190#M12697</guid>
      <dc:creator>TomE</dc:creator>
      <dc:date>2016-03-17T22:17:08Z</dc:date>
    </item>
  </channel>
</rss>

