<?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>Kinetis MicrocontrollersのトピックRead from 0th index in SPI+DMA configuration</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Read-from-0th-index-in-SPI-DMA-configuration/m-p/1574231#M64504</link>
    <description>Hi All, We are using the MKE15Z256xxx7 controller for transfer and receive the data through SPI with DMA. The slave device we are using for SPI+DMA is PMOD-SF3 and trying to read and write data and it is working fine. Below is the read and write operations for slave device PMOD-SF3 WriteBuff[10u] = {0x02, 0x00, 0xff, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06}; ReadBuff[10u] = {0x03, 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; First 4 bytes are command plus address in the read and write buffer. The write operation is fine and working using SPI+DMA, but after read operation ReadBuff is containing using it. ReadBuff = {0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06} The first 4 bytes are empty or contains some garbase values. So the issue is to remove those first 4 bytes from the read buffer and data is read from 0th location of buffer using SPI+DMA. So is there any way to read it from 0th index after writing command + address or is there any another solution regarding this issue. - Is there anything like we can write the command and address first and we can read or write data. - Or is it possible to write the command and address from separate buffer and data from another buffer and both buffers will work at same time using DMA+SPI. - Is there any way to solve this issue using different method in SPI+DMA. Please if anyone is having any idea, please let us know how to read manipulate data in read buffer.</description>
    <pubDate>Fri, 23 Dec 2022 15:24:47 GMT</pubDate>
    <dc:creator>madhavaishriram</dc:creator>
    <dc:date>2022-12-23T15:24:47Z</dc:date>
    <item>
      <title>Read from 0th index in SPI+DMA configuration</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Read-from-0th-index-in-SPI-DMA-configuration/m-p/1574231#M64504</link>
      <description>Hi All, We are using the MKE15Z256xxx7 controller for transfer and receive the data through SPI with DMA. The slave device we are using for SPI+DMA is PMOD-SF3 and trying to read and write data and it is working fine. Below is the read and write operations for slave device PMOD-SF3 WriteBuff[10u] = {0x02, 0x00, 0xff, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06}; ReadBuff[10u] = {0x03, 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; First 4 bytes are command plus address in the read and write buffer. The write operation is fine and working using SPI+DMA, but after read operation ReadBuff is containing using it. ReadBuff = {0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06} The first 4 bytes are empty or contains some garbase values. So the issue is to remove those first 4 bytes from the read buffer and data is read from 0th location of buffer using SPI+DMA. So is there any way to read it from 0th index after writing command + address or is there any another solution regarding this issue. - Is there anything like we can write the command and address first and we can read or write data. - Or is it possible to write the command and address from separate buffer and data from another buffer and both buffers will work at same time using DMA+SPI. - Is there any way to solve this issue using different method in SPI+DMA. Please if anyone is having any idea, please let us know how to read manipulate data in read buffer.</description>
      <pubDate>Fri, 23 Dec 2022 15:24:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Read-from-0th-index-in-SPI-DMA-configuration/m-p/1574231#M64504</guid>
      <dc:creator>madhavaishriram</dc:creator>
      <dc:date>2022-12-23T15:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Read from 0th index in SPI+DMA configuration</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Read-from-0th-index-in-SPI-DMA-configuration/m-p/1575631#M64524</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;There is a similar question on this post: &lt;A href="https://community.nxp.com/t5/Kinetis-Microcontrollers/LPSPI-DMA-Buffer-start-from-4th-index-for-slave-device/m-p/1574427/highlight/false" target="_blank"&gt;LPSPI + DMA Buffer start from 4th index - NXP Community&lt;/A&gt;, could you please check it?&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Regards, Raul.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 17:57:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Read-from-0th-index-in-SPI-DMA-configuration/m-p/1575631#M64524</guid>
      <dc:creator>RaRo</dc:creator>
      <dc:date>2022-12-29T17:57:53Z</dc:date>
    </item>
  </channel>
</rss>

