<?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 Kinetis and External Flash in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-and-External-Flash/m-p/343882#M16693</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way of seamlessly integrating an external flash chip with a Kinetis micro?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking at using a 128MBit SPI-based chip however I'm not sure how I would go about configuring the linker file (either baremetal or in MQX) to allow the extra flash to be used seamlessly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone please provide any pointers or advice?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Feb 2015 09:58:53 GMT</pubDate>
    <dc:creator>weblar</dc:creator>
    <dc:date>2015-02-27T09:58:53Z</dc:date>
    <item>
      <title>Kinetis and External Flash</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-and-External-Flash/m-p/343882#M16693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way of seamlessly integrating an external flash chip with a Kinetis micro?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking at using a 128MBit SPI-based chip however I'm not sure how I would go about configuring the linker file (either baremetal or in MQX) to allow the extra flash to be used seamlessly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone please provide any pointers or advice?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 09:58:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-and-External-Flash/m-p/343882#M16693</guid>
      <dc:creator>weblar</dc:creator>
      <dc:date>2015-02-27T09:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis and External Flash</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-and-External-Flash/m-p/343883#M16694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its depends on your definition of what is seamless and its depends on which Kinetis Micro controller your using,&lt;/P&gt;&lt;P&gt;but the short answer is no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SPI based Flash devices cannot be mapped directly to the address space of the micro controller because they use a serial interface instead of a parallel interface bus that would allow it to be connected to a micro controllers external bus interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are Flash chips that use a NAND Flash interface which is a type of &lt;SPAN style="font-size: 13.3333330154419px;"&gt;parallel interface bus but these require micro-controllers equipped with a NAND flash controller and are generally the larger devices with a large number of pins.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To use the SPI-flash "seamlessly" the other option is to allocate RAM&amp;nbsp; in your micro-controller as a buffer and then write code to periodically write the changed parts of the RAM to the relevant pages of the SPI-Flash. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are flash file system libraries available that facilitate the use of SPI-flash devices and take care of "wear leveling" to ensure the flash chip lasts longer. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 11:16:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-and-External-Flash/m-p/343883#M16694</guid>
      <dc:creator>chadwilliams</dc:creator>
      <dc:date>2015-02-27T11:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis and External Flash</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-and-External-Flash/m-p/343884#M16695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using one of the Kinetis K60 micros.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My definition of seamless would be as you described, mapping it to the address space of the microcontroller.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A parallel flash chip (via the FlexBus) could be the way forward then.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 11:36:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-and-External-Flash/m-p/343884#M16695</guid>
      <dc:creator>weblar</dc:creator>
      <dc:date>2015-02-27T11:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis and External Flash</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-and-External-Flash/m-p/343885#M16696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since the K60 has the bus interface available, I concur with going with a parallel flash.&amp;nbsp; I am using a SPI EEPROM with a KE06, and although I can map the EEPROM section into an unused memory region, I have to access it through functions.&amp;nbsp; I also have to split that section into a separate S-record to program the EEPROM.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 13:46:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-and-External-Flash/m-p/343885#M16696</guid>
      <dc:creator>davidsherman</dc:creator>
      <dc:date>2015-02-27T13:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis and External Flash</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-and-External-Flash/m-p/343886#M16697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The uTasker project allows internal Flash, SPI based Flash and EEPROM to be used "seemlessly" by allocating it to a virtual memory mapped space (usually SPI Flash follows onto the address space of the interal Flash).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg. Internal Flash from 0x00000000 .. 0x0003ffff (256k)&lt;/P&gt;&lt;P&gt;SPI based 0x00040000 .. 0x0103ffff (16 M)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write and reads can then be performed across the boundary (eg. a 1k write from 0x3ff00..0x402ff)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However the physical rules for write/erase for the individual types of components still need to be respected (some restictions on what is possible - eg. smallest erase size is usually different in the various mediums).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, if the usage is not linear but formatted (eg. FAT) or if there are high endurance requirements then whatever the medium (serially addressed or parallel) there will still be block management and wear leveling involved.&lt;/P&gt;&lt;P&gt;If your requirement is to be able to run code directly from the external Flash then serial based (including NAND) is not suitable and then only parallel NOR Flash is an option (or more exotic things like MRAM etc.).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore for some "linear" applications with no high endurancy (write/erase &amp;lt; 50k in lifetime) seemless Flash/SPI Flash is possible. For applications requiring high endurance and block management serial and parallel can be used but in this case it can't be "seemless" with internal Flash and its memory mapping.&lt;/P&gt;&lt;P&gt;Only when running code directly from external Flash does it need to be parallel, whereby no block management layer (not high endurance) is possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kinetis: &lt;A href="http://www.utasker.com/kinetis.html" title="http://www.utasker.com/kinetis.html"&gt;µTasker Kinetis support&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Flash/SPI Based file/parameter system: &lt;A href="http://www.utasker.com/docs/uTasker/uTaskerFileSystem_3.PDF" title="http://www.utasker.com/docs/uTasker/uTaskerFileSystem_3.PDF"&gt;http://www.utasker.com/docs/uTasker/uTaskerFileSystem_3.PDF&lt;/A&gt; / &lt;A href="http://www.utasker.com/docs/uTasker/uTaskerFileSystemSPI_FLASH_003.PDF" title="http://www.utasker.com/docs/uTasker/uTaskerFileSystemSPI_FLASH_003.PDF"&gt;http://www.utasker.com/docs/uTasker/uTaskerFileSystemSPI_FLASH_003.PDF&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;EM&gt;For the complete "out-of-the-box" Kinetis experience and faster time to market&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 17:13:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-and-External-Flash/m-p/343886#M16697</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2015-02-27T17:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis and External Flash</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-and-External-Flash/m-p/343887#M16698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the additional info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be advantageous if I &lt;EM&gt;could&lt;/EM&gt; run code from the additional flash however it would mostly be used for storing additional font data for languages such as Chinese, Japanese, etc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Given that the K60 devices have two FlexBus chip-selects, I guess there would also be scope to expand the amount of available SRAM. Can additional FLASH and SRAM co-exist together on the FlexBus without issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 09:58:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-and-External-Flash/m-p/343887#M16698</guid>
      <dc:creator>weblar</dc:creator>
      <dc:date>2015-03-04T09:58:44Z</dc:date>
    </item>
  </channel>
</rss>

