<?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: Write external flash SPI in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Write-external-flash-SPI/m-p/268297#M8860</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Earl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have solved the read problem and apparently also the bulk erase problem.&lt;/P&gt;&lt;P&gt;What i have done is to &lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;uncomment the line &lt;EM style="font-size: 8pt;"&gt;"&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;EM style="font-size: 8pt;"&gt;SPI2_MCR |= SPI_MCR_CLR_RXF_MASK;&amp;nbsp; //Make sure each command starts out with empty Rx FIFO" &lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;into the function&lt;/SPAN&gt;&lt;EM style="font-size: 8pt;"&gt; "fnSPI_command"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Now the only problem is that i still can't erase a sector.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be apreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Nov 2013 10:53:42 GMT</pubDate>
    <dc:creator>albertolubeiro</dc:creator>
    <dc:date>2013-11-08T10:53:42Z</dc:date>
    <item>
      <title>Write external flash SPI</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Write-external-flash-SPI/m-p/268295#M8858</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;I've got a module with the Kinetis PK60X256 and I need to write to an external Flash. This external flash is a &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Micron M25P80 Serial Flash. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;To do this, I'm using an example of SPI communication for the K40x256 DMA. But I'm not sure if this is totally compatible with my MCU.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Is this example's code compatible with what I need? I ask this, because I don't get what I suppose that I should get.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;And, if it is, I would need to know how to write a READ IDENTIFICATION&amp;nbsp; function to start checking things to know what could be wrong, but in the example, almost all the functions are WRITE&amp;nbsp; functions, so I don't know how to build a Read function. These are the functions that I'm using from the example commented:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;//INIT&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;SPI_Init&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;//WRITE&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Mem_WriteEnable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Mem_WriteSR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Mem_Set4TXDMA&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;DMA_Init_Tx&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;SPI_DMA&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;//READ&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;DMA_Init_Rx&lt;/P&gt;&lt;P&gt;SPI_DMA_Rx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mem_EraseSector&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 10:10:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Write-external-flash-SPI/m-p/268295#M8858</guid>
      <dc:creator>ioniriondo</dc:creator>
      <dc:date>2013-10-08T10:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Write external flash SPI</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Write-external-flash-SPI/m-p/268296#M8859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;"&gt;&lt;SPAN&gt;I are working very well here with an M25P16.&amp;nbsp; I'm not ready to just 'give' our routines to the 'whole world', but if you contact me at &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:goodrich@lectronix.biz"&gt;goodrich@lectronix.biz&lt;/A&gt;&lt;SPAN&gt; I will be happy to supply our ID and read/write routines.&amp;nbsp; We don't use DMA, partially because at the times-of-access saving the CPU cycles is not useful, but just as much because doing DMA with this SPI module is 'difficult', what with the packed command bytes in every write cycle.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 18:06:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Write-external-flash-SPI/m-p/268296#M8859</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2013-10-08T18:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: Write external flash SPI</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Write-external-flash-SPI/m-p/268297#M8860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Earl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have solved the read problem and apparently also the bulk erase problem.&lt;/P&gt;&lt;P&gt;What i have done is to &lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;uncomment the line &lt;EM style="font-size: 8pt;"&gt;"&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;EM style="font-size: 8pt;"&gt;SPI2_MCR |= SPI_MCR_CLR_RXF_MASK;&amp;nbsp; //Make sure each command starts out with empty Rx FIFO" &lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;into the function&lt;/SPAN&gt;&lt;EM style="font-size: 8pt;"&gt; "fnSPI_command"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Now the only problem is that i still can't erase a sector.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be apreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 10:53:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Write-external-flash-SPI/m-p/268297#M8860</guid>
      <dc:creator>albertolubeiro</dc:creator>
      <dc:date>2013-11-08T10:53:42Z</dc:date>
    </item>
  </channel>
</rss>

