<?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: TWR-K24F120M flash memory interface  in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K24F120M-flash-memory-interface/m-p/449419#M26622</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How i can write and read data from SPI Flash connected via SPI ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jul 2015 05:43:19 GMT</pubDate>
    <dc:creator>ahmedzaidi</dc:creator>
    <dc:date>2015-07-29T05:43:19Z</dc:date>
    <item>
      <title>TWR-K24F120M flash memory interface</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K24F120M-flash-memory-interface/m-p/449417#M26620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; As twr-k24f120m has 16Mbit memory. my project need more space i decided to interface external flash memory with it and i couldn't find any thing on internet search to connect with it. Now my questions are : &lt;/P&gt;&lt;P&gt;1) Can i interface external memory with this K24?&lt;/P&gt;&lt;P&gt;2) what brand and type i can interface?&lt;/P&gt;&lt;P&gt;3) what range of memory available to interface?&lt;/P&gt;&lt;P&gt;4)How i interface through processor expert KDS? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2015 02:13:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K24F120M-flash-memory-interface/m-p/449417#M26620</guid>
      <dc:creator>ahmedzaidi</dc:creator>
      <dc:date>2015-07-27T02:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K24F120M flash memory interface</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K24F120M-flash-memory-interface/m-p/449418#M26621</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;The K24 on the TWR-K24F120M has no FlexBus so there is no parallel memory that can be added (without bit-banging the interface). Other K24 types do have FlexBus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The TWR-K24F120M does have 2MByte Atmel SPI Flash connected via SPI, which can be used for data storage or file systems. It can't be used for running programs from though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not clear from your question as to which interface you are referring to but the 16mbit Atmel Flash on the TWR-K24F120M is supported in the uTasker project (for FAT and data storage) as are alternatives from Spansion, Winbond, SST and ST (ranges from a few kBytes to 32MBytes).&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;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;K24: &lt;A href="http://www.utasker.com/kinetis/TWR-K24F120M.html" title="http://www.utasker.com/kinetis/TWR-K24F120M.html"&gt;µTasker Kinetis TWR-K24F120M support&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>Mon, 27 Jul 2015 19:18:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K24F120M-flash-memory-interface/m-p/449418#M26621</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2015-07-27T19:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K24F120M flash memory interface</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K24F120M-flash-memory-interface/m-p/449419#M26622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How i can write and read data from SPI Flash connected via SPI ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 05:43:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K24F120M-flash-memory-interface/m-p/449419#M26622</guid>
      <dc:creator>ahmedzaidi</dc:creator>
      <dc:date>2015-07-29T05:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K24F120M flash memory interface</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K24F120M-flash-memory-interface/m-p/449420#M26623</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;If using the uTasker framework for the K24 the SPI Flash can be read and written (or deleted) using the low-level routines described on page 13 of &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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When starting from scratch you will need to study the data sheet to the SPI Flash in question (they are not all the same since they use differnet command sets and have different memory organisation) and write a driver that uses the SPi Flash's command set to allow the user to pass data to be written and retrieve data form the device from specified SPI Flash addresses.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;More advanced features may include the ability to suspend SPI Flash operations that are in progress (deletes can take quite a long time) so that they can be temporarily interrupted in order to continue reading/writing when needed. There is a discussion of this at &lt;A href="http://www.utasker.com/kinetis/s25FL1-K_suspend.html" title="http://www.utasker.com/kinetis/s25FL1-K_suspend.html"&gt;µTasker Spansion S25FL1xK Driver with Suspend/Resume&lt;/A&gt; &lt;/EM&gt;&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 class="jive-link-external-small" data-content-finding="Community" href="http://www.utasker.com/kinetis.html" rel="nofollow"&gt;µTasker Kinetis support&lt;/A&gt;&lt;/P&gt;&lt;P&gt;K24: &lt;A class="jive-link-external-small" data-content-finding="Community" href="http://www.utasker.com/kinetis/TWR-K24F120M.html" rel="nofollow"&gt;µTasker Kinetis TWR-K24F120M support&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>Wed, 29 Jul 2015 11:56:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K24F120M-flash-memory-interface/m-p/449420#M26623</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2015-07-29T11:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K24F120M flash memory interface</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K24F120M-flash-memory-interface/m-p/449421#M26624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using KDS processor expert. How i can write and read using KDS? i have configure SPI but i need code for read and write from SPI flash ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 12:27:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K24F120M-flash-memory-interface/m-p/449421#M26624</guid>
      <dc:creator>ahmedzaidi</dc:creator>
      <dc:date>2015-07-29T12:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K24F120M flash memory interface</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K24F120M-flash-memory-interface/m-p/449422#M26625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ahmed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't help with PE - it will presumable have configured an SPI interface, which is however only about 1% of the code needed to actually use SPI Flash.&lt;/P&gt;&lt;P&gt;You will need to see whether PE includes any addition support for the SPI Flash itself and add it if it does. If it doesn't, you will need to study the interface the PE has given you and then either write the rest yourself or search the Internet for examples and port these accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As starting point I have attached the low level interface used by the uTasker project and the ATMEL SPI Flash on the TWR-K24F120M. In order to actually use the Flash a higher level driver interface is required to coordinate the use of the commands and the mapping of address area. On top of that you may need also a file system unless you are doing simple data writes to fixed addresses.&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;Kinetis: &lt;A class="jive-link-external-small" data-content-finding="Community" href="http://www.utasker.com/kinetis.html" rel="nofollow"&gt;µTasker Kinetis support&lt;/A&gt;&lt;/P&gt;&lt;P&gt;K24: &lt;A class="jive-link-external-small" data-content-finding="Community" href="http://www.utasker.com/kinetis/TWR-K24F120M.html" rel="nofollow"&gt;µTasker Kinetis TWR-K24F120M support&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>Wed, 29 Jul 2015 13:14:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K24F120M-flash-memory-interface/m-p/449422#M26625</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2015-07-29T13:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K24F120M flash memory interface</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K24F120M-flash-memory-interface/m-p/449423#M26626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using this to write on Buffer it is not working, what shout i used to write ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;uint8_t buffer_write[] = "\x84\xFF\xFC\x01\x01\x02\x03\x04\x05\x06\x07\x08\x09\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x20\x01\x02\x03\x04\x05\x06\x07\x08\x09\x10\x11\x12";&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;I can read 528bytes from this command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; uint8_t buffer_read[] = "\x54\xFF\xFC\x01\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now what is my mistake ? i am writing but getting garbage. I am not getting write numbers. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2015 01:09:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K24F120M-flash-memory-interface/m-p/449423#M26626</guid>
      <dc:creator>ahmedzaidi</dc:creator>
      <dc:date>2015-08-03T01:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K24F120M flash memory interface</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K24F120M-flash-memory-interface/m-p/449424#M26627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;H&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The command 0x84 is a command to copy data to the buffer 1.&lt;/P&gt;&lt;P&gt;You need to follow this with the command "program from buffer 1 - 0x88" to actually write it to the flash - &lt;EM&gt;then you need to poll the status until the write has completed, before reading it back.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The ATMEL Flash chips has quite a lot of options so it it is worth first investing some time to get to understand its command set.&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;Kinetis: &lt;A class="jive-link-external-small" data-content-finding="Community" href="http://www.utasker.com/kinetis.html" rel="nofollow"&gt;µTasker Kinetis support&lt;/A&gt;&lt;/P&gt;&lt;P&gt;K24: &lt;A class="jive-link-external-small" data-content-finding="Community" href="http://www.utasker.com/kinetis/TWR-K24F120M.html" rel="nofollow"&gt;µTasker Kinetis TWR-K24F120M support&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;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2015 12:06:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K24F120M-flash-memory-interface/m-p/449424#M26627</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2015-08-03T12:06:25Z</dc:date>
    </item>
  </channel>
</rss>

