<?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 Software Development KitのトピックRe: Is it possible to transfer from SPI to SAI using DMA?</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Is-it-possible-to-transfer-from-SPI-to-SAI-using-DMA/m-p/603076#M6189</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By the way, I should mention that the SPI Flash device that we are using is fast enough to accept data from the codec at the rate that it produces it (8 kHz).&amp;nbsp; We are able to transfer data from SRAM to flash at 12 MHz SPI rates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Javier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jan 2017 23:07:39 GMT</pubDate>
    <dc:creator>javiercardona</dc:creator>
    <dc:date>2017-01-11T23:07:39Z</dc:date>
    <item>
      <title>Is it possible to transfer from SPI to SAI using DMA?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Is-it-possible-to-transfer-from-SPI-to-SAI-using-DMA/m-p/603073#M6186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our KL27-based design has a codec connected via SAI (I2S) and a flash memory connected via SPI.&lt;/P&gt;&lt;P&gt;We are able to transfer audio buffers from/to the codec to/from flash using DMA transfers to/from SRAM.&lt;/P&gt;&lt;P&gt;We are now attempting to configure DMA to do direct transfer from I2S to SPI so we can record audio to flash with minimal CPU intervention.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone attempted this before?&amp;nbsp; Just knowing that it is possible would be very helpful.&amp;nbsp; Example code would be grand &lt;SPAN aria-label="Happy" class="emoticon_happy emoticon-inline" style="height:16px;width:16px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Javier&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-objectid="14997" data-objecttype="3" href="https://community.nxp.com/people/manuelroin"&gt;Manuel Rodriguez&lt;/A&gt; &lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-objectid="207898" data-objecttype="3" href="https://community.nxp.com/people/adriansc"&gt;Adrian Sanchez Cano&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2017 06:12:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Is-it-possible-to-transfer-from-SPI-to-SAI-using-DMA/m-p/603073#M6186</guid>
      <dc:creator>javiercardona</dc:creator>
      <dc:date>2017-01-10T06:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to transfer from SPI to SAI using DMA?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Is-it-possible-to-transfer-from-SPI-to-SAI-using-DMA/m-p/603074#M6187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Havier,&lt;/P&gt;&lt;P&gt;As you said that you are able to transfer data from SRAM to SPI flash via DMA, if it is the case, I think it is okay to transfer from I2S received data register to SPI data register via DMA.&lt;/P&gt;&lt;P&gt;The DMA itself supports to transfer data from peripheral to peripheral, but as you know that the I2S is stream data, I have two concern that the SPI itself is fast enough to transfer data so that the SPI module can keep up with the step of I2S, secondly, I am not familiar with the writting SPI flash, do you means that writing the SPI&amp;nbsp; flash is to write the data to flash RAM, the flash itself has a state machine to write data from RAM to flash?&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2017 09:13:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Is-it-possible-to-transfer-from-SPI-to-SAI-using-DMA/m-p/603074#M6187</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2017-01-10T09:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to transfer from SPI to SAI using DMA?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Is-it-possible-to-transfer-from-SPI-to-SAI-using-DMA/m-p/603075#M6188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Xiangjun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I am capable to transfer data from/to SRAM to/from SPI as well as from/to SRAM to/from I2S using DMA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to configure the DMA channel for SPI to/from I2S (always triggered by I2S), I get a Bus Error on Source (DMA_DSR_BCR bit 29) when transferring from SPI, and a Bus Error on Destination (DMA_DSR_BCR bit 28).&amp;nbsp; Would that be what you meant by "SPI module not keeping up with step of I2S"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Javier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2017 23:04:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Is-it-possible-to-transfer-from-SPI-to-SAI-using-DMA/m-p/603075#M6188</guid>
      <dc:creator>javiercardona</dc:creator>
      <dc:date>2017-01-11T23:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to transfer from SPI to SAI using DMA?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Is-it-possible-to-transfer-from-SPI-to-SAI-using-DMA/m-p/603076#M6189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By the way, I should mention that the SPI Flash device that we are using is fast enough to accept data from the codec at the rate that it produces it (8 kHz).&amp;nbsp; We are able to transfer data from SRAM to flash at 12 MHz SPI rates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Javier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2017 23:07:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Is-it-possible-to-transfer-from-SPI-to-SAI-using-DMA/m-p/603076#M6189</guid>
      <dc:creator>javiercardona</dc:creator>
      <dc:date>2017-01-11T23:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to transfer from SPI to SAI using DMA?</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Is-it-possible-to-transfer-from-SPI-to-SAI-using-DMA/m-p/603077#M6190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I solved the bus error problem by setting the Destination Size in the DMA DCR register to 8-bits when writing to SPI.&lt;/P&gt;&lt;P&gt;This solves the dma bus error and the DMA transfer completes successfully.&lt;/P&gt;&lt;P&gt;I do not observe any data on the SPI bus, but I will create a separate question for that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 20:00:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Is-it-possible-to-transfer-from-SPI-to-SAI-using-DMA/m-p/603077#M6190</guid>
      <dc:creator>javiercardona</dc:creator>
      <dc:date>2017-01-12T20:00:47Z</dc:date>
    </item>
  </channel>
</rss>

