<?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: LPSPI + DMA Buffer start from 4th index for slave device in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/LPSPI-DMA-Buffer-start-from-4th-index-for-slave-device/m-p/1583432#M64584</link>
    <description>&lt;P class="lia-align-justify"&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/187233"&gt;@madhavaishriram&lt;/a&gt;,&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Unfortunately, we don't have a PMOD-SF3 flash to replicate your issue. We recommended you the example code, because the reading of data should work from the first index.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;As a suggestion, you could try reading/entering another direction of the flash.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Also, looking at &lt;A href="https://media-www.micron.com/-/media/client/global/documents/products/data-sheet/nor-flash/serial-nor/n25q/n25q_256mb_3v.pdf?rev=cd8f3bb53a294ad897ff924f360be390" target="_blank"&gt;3V, 256Mb: Multiple I/O Serial Flash Memory&lt;/A&gt; PMOD-SF3 datasheet (Command Definitions [Table 18. Command Set]), for writing/programming data in the flash you first need to enable the writing; just for double check, you could confirm if you are enabling the writing first before programming the data to the flash and disabling it before reading the data [WRITE Operations].&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Finally, you could try using only SPI first to see if everything it is working fine, before trying out with DMA.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Best regards, Raul.&lt;/P&gt;</description>
    <pubDate>Mon, 16 Jan 2023 20:02:07 GMT</pubDate>
    <dc:creator>RaRo</dc:creator>
    <dc:date>2023-01-16T20:02:07Z</dc:date>
    <item>
      <title>LPSPI + DMA Buffer start from 4th index for slave device</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/LPSPI-DMA-Buffer-start-from-4th-index-for-slave-device/m-p/1574427#M64507</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;We are using the MKE15Z256xxx7 controller for transfer and receive the data through SPI with DMA for Pmod-sf3 flash( Customized SPI driver) . The communication is fine, Read/Write too is also fine, however the data is read from index 4 instead of 0th index, ie first we need this data to be from 1st index.&amp;nbsp;&lt;/P&gt;&lt;P&gt;E.g : Current working of code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Write command :&lt;/STRONG&gt;&amp;nbsp;Buffer status&amp;nbsp;&lt;/P&gt;&lt;P&gt;WriteBuff[10u] = {&lt;STRONG&gt;0x02, 0x00, 0xff, 0x00&lt;/STRONG&gt;, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06};&lt;BR /&gt;ReadBuff[10u] = {&lt;STRONG&gt;0xff, 0xff, 0xff, 0xff,&lt;/STRONG&gt; 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Read Command:&amp;nbsp;&amp;nbsp;Buffer status&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;WriteBuff[10u] = {&lt;STRONG&gt;0x03, 0x00, 0xff, 0x00&lt;/STRONG&gt;, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff};&lt;BR /&gt;ReadBuff[10u] = {0xff, 0xff, 0xff, 0xff, &lt;STRONG&gt;0x01, 0x02, 0x03, 0x04, 0x05, 0x06&lt;/STRONG&gt;};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expected: Read command: Should read from index 0.&amp;nbsp;&lt;/P&gt;&lt;P&gt;WriteBuff[10u] = {&lt;STRONG&gt;0x03, 0x00, 0xff, 0x00&lt;/STRONG&gt;, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff};&lt;BR /&gt;ReadBuff[6u] = {&lt;STRONG&gt;0x01, 0x02, 0x03, 0x04, 0x05, 0x06&lt;/STRONG&gt;};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here we are using a single buffer which contain Command + Address + Data, We are using same buffer for writing and while reading too.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Query :&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1. We wanted the data to be read from 0th index.&lt;/P&gt;&lt;P&gt;2. Can we have a sample code SDK (SPI + DMA) which uses separate buffer for command/Address and read/write.&lt;/P&gt;&lt;P&gt;3. How can we not trigger the interrupt for first 4bytes( Command+Adress) and then trigger SPI interrupt so that it read from 0th index.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Dec 2022 05:11:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/LPSPI-DMA-Buffer-start-from-4th-index-for-slave-device/m-p/1574427#M64507</guid>
      <dc:creator>Sridharanblr</dc:creator>
      <dc:date>2022-12-26T05:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: LPSPI + DMA Buffer start from 4th index for slave device</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/LPSPI-DMA-Buffer-start-from-4th-index-for-slave-device/m-p/1575305#M64519</link>
      <description>&lt;P class="lia-align-justify"&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188033"&gt;@Sridharanblr&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Just for double check, could you please try out the &lt;A href="https://mcuxpresso.nxp.com/en/welcome" target="_blank"&gt;MKE15Z256 SDK&lt;/A&gt; examples: frdm15z_lpspi_3wire_edma_transfer_master and frdm15z_lpspi_edma_b2b_transfer_master?&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Are you seeing the same issue with the examples?&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Regards, Raul.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 20:53:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/LPSPI-DMA-Buffer-start-from-4th-index-for-slave-device/m-p/1575305#M64519</guid>
      <dc:creator>RaRo</dc:creator>
      <dc:date>2022-12-28T20:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: LPSPI + DMA Buffer start from 4th index for slave device</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/LPSPI-DMA-Buffer-start-from-4th-index-for-slave-device/m-p/1575433#M64521</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/206649"&gt;@RaRo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, we did same changes in SDK we found same behaviors, The read data is from 4th index.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below changes was reworked on SDK :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Master : NXP FRDM HW&lt;/P&gt;&lt;P&gt;Slave : PMOD SF3&amp;nbsp;&lt;/P&gt;&lt;P&gt;Write command/Address/Data(250) : 0x2, 0x00, 0xff,0x00, xx,xxx,xxx........upto 250byte&lt;/P&gt;&lt;P&gt;Read command/Address/Data(250) : 0x3, 0x00, 0xff,0x00, Data reading starts from here ie 4th index.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sridharanblr_1-1672297014584.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/205667iA872C918519E6775/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sridharanblr_1-1672297014584.png" alt="Sridharanblr_1-1672297014584.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sridharan&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 06:57:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/LPSPI-DMA-Buffer-start-from-4th-index-for-slave-device/m-p/1575433#M64521</guid>
      <dc:creator>Sridharanblr</dc:creator>
      <dc:date>2022-12-29T06:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: LPSPI + DMA Buffer start from 4th index for slave device</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/LPSPI-DMA-Buffer-start-from-4th-index-for-slave-device/m-p/1575628#M64523</link>
      <description>&lt;P class="lia-align-justify"&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188033"&gt;@Sridharanblr&lt;/a&gt;,&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Could you please try out with other examples that don't include eDMA? For example, &lt;EM&gt;lpspi_interrupt_b2b_transfer_master&lt;/EM&gt; and/or &lt;EM&gt;lpspi_polling_b2b_transfer_master&lt;/EM&gt;. This way we could see if it is something to do with the eDMA and how it handles the data and the buffer.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Also, could you please attach the signal behavior with a logic analyzer of the transfer?&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Regards, Raul.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 17:51:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/LPSPI-DMA-Buffer-start-from-4th-index-for-slave-device/m-p/1575628#M64523</guid>
      <dc:creator>RaRo</dc:creator>
      <dc:date>2022-12-29T17:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: LPSPI + DMA Buffer start from 4th index for slave device</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/LPSPI-DMA-Buffer-start-from-4th-index-for-slave-device/m-p/1575731#M64525</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/206649"&gt;@RaRo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please find the attached snap for without DMA transmission with PMOD-SF3 and the logic analyzer data.&lt;/P&gt;&lt;P&gt;We have seen same issue.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="madhavaishriram_0-1672376941662.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/205747i560D15400DBCD164/image-size/medium?v=v2&amp;amp;px=400" role="button" title="madhavaishriram_0-1672376941662.png" alt="madhavaishriram_0-1672376941662.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="madhavaishriram_1-1672377204815.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/205748i2AF081D105C45E22/image-size/medium?v=v2&amp;amp;px=400" role="button" title="madhavaishriram_1-1672377204815.png" alt="madhavaishriram_1-1672377204815.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shriram Madhavai&lt;/P&gt;</description>
      <pubDate>Fri, 30 Dec 2022 05:20:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/LPSPI-DMA-Buffer-start-from-4th-index-for-slave-device/m-p/1575731#M64525</guid>
      <dc:creator>madhavaishriram</dc:creator>
      <dc:date>2022-12-30T05:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: LPSPI + DMA Buffer start from 4th index for slave device</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/LPSPI-DMA-Buffer-start-from-4th-index-for-slave-device/m-p/1575955#M64527</link>
      <description>&lt;P&gt;Hi Raul,&lt;/P&gt;&lt;P&gt;the above screenshot and our reply is based on&amp;nbsp;&amp;nbsp;&lt;A href="https://mcuxpresso.nxp.com/en/welcome" target="_blank" rel="nofollow noopener noreferrer"&gt;MKE15Z256 SDK&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;frdm15z_lpspi_edma_b2b_transfer_master.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;jfi: Without DMA we first written&amp;nbsp;the Command and address to TDR register and then we enabled SPI interrupt, by this way the read/Write was exactly happing for 1st index&amp;nbsp;location of the buffer.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jan 2023 06:06:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/LPSPI-DMA-Buffer-start-from-4th-index-for-slave-device/m-p/1575955#M64527</guid>
      <dc:creator>Sridharanblr</dc:creator>
      <dc:date>2023-01-02T06:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: LPSPI + DMA Buffer start from 4th index for slave device</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/LPSPI-DMA-Buffer-start-from-4th-index-for-slave-device/m-p/1577451#M64536</link>
      <description>&lt;P class="lia-align-justify"&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188033"&gt;@Sridharanblr&lt;/a&gt;,&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Just for double check could you please confirm if the signal screen shot was using eDMA?&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Also, could you try writing the Command (0x03) + address (0x00 0xFF 0x00) to TDR register before enabling the EDMA_EnableChannelInterrupts, to see if you can replicate the reading/writing in 1st index in SPI with the eDMA?&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Best regards, Raul.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 20:55:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/LPSPI-DMA-Buffer-start-from-4th-index-for-slave-device/m-p/1577451#M64536</guid>
      <dc:creator>RaRo</dc:creator>
      <dc:date>2023-01-04T20:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: LPSPI + DMA Buffer start from 4th index for slave device</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/LPSPI-DMA-Buffer-start-from-4th-index-for-slave-device/m-p/1578354#M64539</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/206649"&gt;@RaRo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have tested with by writing Cmd 0x03 and Address 0x00, 0xff, 0x00 in to TDR register.&lt;/P&gt;&lt;P&gt;but getting same issue after that too.&lt;/P&gt;&lt;P&gt;Please find the code before read.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="madhavaishriram_0-1672985325882.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/206290i2C09319F2009A42C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="madhavaishriram_0-1672985325882.png" alt="madhavaishriram_0-1672985325882.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the code to writing into TDR register directly.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="madhavaishriram_1-1672985465421.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/206291iD77A8696D24CAD8C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="madhavaishriram_1-1672985465421.png" alt="madhavaishriram_1-1672985465421.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The snap after read by calling read api.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="madhavaishriram_2-1672985539203.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/206292i76088E2D5B87C862/image-size/medium?v=v2&amp;amp;px=400" role="button" title="madhavaishriram_2-1672985539203.png" alt="madhavaishriram_2-1672985539203.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see the log after read.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="madhavaishriram_3-1672985577817.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/206293i1DBE26AF3B6F6250/image-size/medium?v=v2&amp;amp;px=400" role="button" title="madhavaishriram_3-1672985577817.png" alt="madhavaishriram_3-1672985577817.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 06:19:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/LPSPI-DMA-Buffer-start-from-4th-index-for-slave-device/m-p/1578354#M64539</guid>
      <dc:creator>madhavaishriram</dc:creator>
      <dc:date>2023-01-06T06:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: LPSPI + DMA Buffer start from 4th index for slave device</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/LPSPI-DMA-Buffer-start-from-4th-index-for-slave-device/m-p/1579526#M64547</link>
      <description>&lt;P class="lia-align-justify"&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/187233"&gt;@madhavaishriram&lt;/a&gt;,&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Could you please check if this behavior still happens using the LPSPI+eDMA communication with another device?&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Regards, Raul.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 19:27:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/LPSPI-DMA-Buffer-start-from-4th-index-for-slave-device/m-p/1579526#M64547</guid>
      <dc:creator>RaRo</dc:creator>
      <dc:date>2023-01-09T19:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: LPSPI + DMA Buffer start from 4th index for slave device</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/LPSPI-DMA-Buffer-start-from-4th-index-for-slave-device/m-p/1582867#M64582</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/206649"&gt;@RaRo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have PMOD-SF3 as slave device and tested on same device and getting same behavior with and w/o dma. So please check at your end and reply with solutions,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Shriram Madhavai&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 04:34:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/LPSPI-DMA-Buffer-start-from-4th-index-for-slave-device/m-p/1582867#M64582</guid>
      <dc:creator>madhavaishriram</dc:creator>
      <dc:date>2023-01-16T04:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: LPSPI + DMA Buffer start from 4th index for slave device</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/LPSPI-DMA-Buffer-start-from-4th-index-for-slave-device/m-p/1583432#M64584</link>
      <description>&lt;P class="lia-align-justify"&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/187233"&gt;@madhavaishriram&lt;/a&gt;,&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Unfortunately, we don't have a PMOD-SF3 flash to replicate your issue. We recommended you the example code, because the reading of data should work from the first index.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;As a suggestion, you could try reading/entering another direction of the flash.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Also, looking at &lt;A href="https://media-www.micron.com/-/media/client/global/documents/products/data-sheet/nor-flash/serial-nor/n25q/n25q_256mb_3v.pdf?rev=cd8f3bb53a294ad897ff924f360be390" target="_blank"&gt;3V, 256Mb: Multiple I/O Serial Flash Memory&lt;/A&gt; PMOD-SF3 datasheet (Command Definitions [Table 18. Command Set]), for writing/programming data in the flash you first need to enable the writing; just for double check, you could confirm if you are enabling the writing first before programming the data to the flash and disabling it before reading the data [WRITE Operations].&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Finally, you could try using only SPI first to see if everything it is working fine, before trying out with DMA.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Best regards, Raul.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 20:02:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/LPSPI-DMA-Buffer-start-from-4th-index-for-slave-device/m-p/1583432#M64584</guid>
      <dc:creator>RaRo</dc:creator>
      <dc:date>2023-01-16T20:02:07Z</dc:date>
    </item>
  </channel>
</rss>

