<?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 Flash AT45DB interfaing with KW41z  in Wireless MCU</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/Flash-AT45DB-interfaing-with-KW41z/m-p/888127#M6365</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hiii ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using AT45DB041E flash which are available on FRDM-KW41Z evaluation borad ,&lt;/P&gt;&lt;P&gt;Interfacing of AT45DB041E using SPI communication , using this&amp;nbsp;Read Manufacturer ID and Device ID successfully , but for read data it always read FF or 00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;unsigned char RdFlashByte(unsigned int BuffAddr)&lt;BR /&gt;{&lt;BR /&gt; unsigned char rddata = 0 ;&lt;BR /&gt; unsigned char t1[5]={0};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PRINTF("\nRdFlashByte\r\n");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while(!FlashReadBusy()); //wait if device is busy&lt;/P&gt;&lt;P&gt;t1[0] = BUFFER_1_READ; //or 0xD1&lt;BR /&gt; t1[1] = 0x00;&lt;BR /&gt; t1[2] = ((unsigned char)(BuffAddr&amp;gt;&amp;gt;8));&lt;BR /&gt; t1[3] = ((unsigned char)(BuffAddr));&lt;BR /&gt; t1[4] = 0x00;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; isTransferCompleted = false ;&lt;/P&gt;&lt;P&gt;dspi_transfer_t masterXfer;&lt;/P&gt;&lt;P&gt;masterXfer.txData = &amp;amp;t1[0] ;&lt;BR /&gt; masterXfer.rxData = NULL ;&lt;BR /&gt; masterXfer.dataSize = 5 ;&lt;BR /&gt; masterXfer.configFlags = kDSPI_MasterCtar1 | EXAMPLE_DSPI_MASTER_PCS_FOR_TRANSFER | kDSPI_MasterPcsContinuous;&lt;/P&gt;&lt;P&gt;DSPI_MasterTransferNonBlocking(EXAMPLE_DSPI_MASTER_BASEADDR, &amp;amp;g_m_handle, &amp;amp;masterXfer);&lt;/P&gt;&lt;P&gt;/* Wait transfer complete */&lt;BR /&gt; while (!isTransferCompleted)&lt;BR /&gt; {&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;/* Delay to wait slave is ready */&lt;BR /&gt; for (i = 0; i &amp;lt; EXAMPLE_DSPI_DEALY_COUNT; i++)&lt;BR /&gt; {&lt;BR /&gt; __NOP();&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; isTransferCompleted = false ;&lt;/P&gt;&lt;P&gt;masterXfer.txData = NULL ;&lt;BR /&gt; masterXfer.rxData = &amp;amp;rddata ;&lt;BR /&gt; masterXfer.dataSize = 1 ;&lt;BR /&gt; masterXfer.configFlags = kDSPI_MasterCtar1 | EXAMPLE_DSPI_MASTER_PCS_FOR_TRANSFER | kDSPI_MasterActiveAfterTransfer;&lt;/P&gt;&lt;P&gt;DSPI_MasterTransferNonBlocking(EXAMPLE_DSPI_MASTER_BASEADDR, &amp;amp;g_m_handle, &amp;amp;masterXfer);&lt;/P&gt;&lt;P&gt;/* Wait transfer complete */&lt;BR /&gt; while (!isTransferCompleted)&lt;BR /&gt; {&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;/* Delay to wait slave is ready */&lt;BR /&gt; for (i = 0; i &amp;lt; EXAMPLE_DSPI_DEALY_COUNT; i++)&lt;BR /&gt; {&lt;BR /&gt; __NOP();&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;PRINTF("\n Rx data :%d \r\n,",rddata);&lt;/P&gt;&lt;P&gt;return rddata;&lt;/P&gt;&lt;P&gt;} //End of RdFlashByte Function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;please give some idea.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Mar 2019 10:07:13 GMT</pubDate>
    <dc:creator>abhitippanna</dc:creator>
    <dc:date>2019-03-12T10:07:13Z</dc:date>
    <item>
      <title>Flash AT45DB interfaing with KW41z</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Flash-AT45DB-interfaing-with-KW41z/m-p/888127#M6365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hiii ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using AT45DB041E flash which are available on FRDM-KW41Z evaluation borad ,&lt;/P&gt;&lt;P&gt;Interfacing of AT45DB041E using SPI communication , using this&amp;nbsp;Read Manufacturer ID and Device ID successfully , but for read data it always read FF or 00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;unsigned char RdFlashByte(unsigned int BuffAddr)&lt;BR /&gt;{&lt;BR /&gt; unsigned char rddata = 0 ;&lt;BR /&gt; unsigned char t1[5]={0};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PRINTF("\nRdFlashByte\r\n");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while(!FlashReadBusy()); //wait if device is busy&lt;/P&gt;&lt;P&gt;t1[0] = BUFFER_1_READ; //or 0xD1&lt;BR /&gt; t1[1] = 0x00;&lt;BR /&gt; t1[2] = ((unsigned char)(BuffAddr&amp;gt;&amp;gt;8));&lt;BR /&gt; t1[3] = ((unsigned char)(BuffAddr));&lt;BR /&gt; t1[4] = 0x00;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; isTransferCompleted = false ;&lt;/P&gt;&lt;P&gt;dspi_transfer_t masterXfer;&lt;/P&gt;&lt;P&gt;masterXfer.txData = &amp;amp;t1[0] ;&lt;BR /&gt; masterXfer.rxData = NULL ;&lt;BR /&gt; masterXfer.dataSize = 5 ;&lt;BR /&gt; masterXfer.configFlags = kDSPI_MasterCtar1 | EXAMPLE_DSPI_MASTER_PCS_FOR_TRANSFER | kDSPI_MasterPcsContinuous;&lt;/P&gt;&lt;P&gt;DSPI_MasterTransferNonBlocking(EXAMPLE_DSPI_MASTER_BASEADDR, &amp;amp;g_m_handle, &amp;amp;masterXfer);&lt;/P&gt;&lt;P&gt;/* Wait transfer complete */&lt;BR /&gt; while (!isTransferCompleted)&lt;BR /&gt; {&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;/* Delay to wait slave is ready */&lt;BR /&gt; for (i = 0; i &amp;lt; EXAMPLE_DSPI_DEALY_COUNT; i++)&lt;BR /&gt; {&lt;BR /&gt; __NOP();&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; isTransferCompleted = false ;&lt;/P&gt;&lt;P&gt;masterXfer.txData = NULL ;&lt;BR /&gt; masterXfer.rxData = &amp;amp;rddata ;&lt;BR /&gt; masterXfer.dataSize = 1 ;&lt;BR /&gt; masterXfer.configFlags = kDSPI_MasterCtar1 | EXAMPLE_DSPI_MASTER_PCS_FOR_TRANSFER | kDSPI_MasterActiveAfterTransfer;&lt;/P&gt;&lt;P&gt;DSPI_MasterTransferNonBlocking(EXAMPLE_DSPI_MASTER_BASEADDR, &amp;amp;g_m_handle, &amp;amp;masterXfer);&lt;/P&gt;&lt;P&gt;/* Wait transfer complete */&lt;BR /&gt; while (!isTransferCompleted)&lt;BR /&gt; {&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;/* Delay to wait slave is ready */&lt;BR /&gt; for (i = 0; i &amp;lt; EXAMPLE_DSPI_DEALY_COUNT; i++)&lt;BR /&gt; {&lt;BR /&gt; __NOP();&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;PRINTF("\n Rx data :%d \r\n,",rddata);&lt;/P&gt;&lt;P&gt;return rddata;&lt;/P&gt;&lt;P&gt;} //End of RdFlashByte Function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;please give some idea.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2019 10:07:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Flash-AT45DB-interfaing-with-KW41z/m-p/888127#M6365</guid>
      <dc:creator>abhitippanna</dc:creator>
      <dc:date>2019-03-12T10:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: Flash AT45DB interfaing with KW41z</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Flash-AT45DB-interfaing-with-KW41z/m-p/888128#M6366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you basing it on an example? If you are, could you please let me know if you are, could you please give me more details about it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, are you having some kind of fault? Or is it just that it is not reading the correct value?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Estephania&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2019 18:45:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Flash-AT45DB-interfaing-with-KW41z/m-p/888128#M6366</guid>
      <dc:creator>stephanie_m</dc:creator>
      <dc:date>2019-03-12T18:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Flash AT45DB interfaing with KW41z</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Flash-AT45DB-interfaing-with-KW41z/m-p/888129#M6367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No fault or error observed in code , Writing flash page 0 and reading same page but it always read 00 or FF data ...&lt;/P&gt;&lt;P&gt;Any additional setting required to use AT45DB041E flash&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Mar 2019 05:55:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Flash-AT45DB-interfaing-with-KW41z/m-p/888129#M6367</guid>
      <dc:creator>abhitippanna</dc:creator>
      <dc:date>2019-03-13T05:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Flash AT45DB interfaing with KW41z</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Flash-AT45DB-interfaing-with-KW41z/m-p/888130#M6368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I do not have the same memory as you do, I'm limited to the capabilities of the device and my available resources which are from NXP&amp;nbsp; and our developments boards.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How are you confirming that you are reading and writing correctly form the memory? Are you checking the registers with the received data?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Estephania&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2019 17:39:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Flash-AT45DB-interfaing-with-KW41z/m-p/888130#M6368</guid>
      <dc:creator>stephanie_m</dc:creator>
      <dc:date>2019-03-14T17:39:45Z</dc:date>
    </item>
  </channel>
</rss>

