<?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 Kinetis K10 SAI/I2S + DMA RX in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K10-SAI-I2S-DMA-RX/m-p/227095#M4592</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;Trying to get the kinetis K10 to do DMA with TX and RX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using processor expert with mqxlite.&lt;/P&gt;&lt;P&gt;The chip is MK10DN64.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What works:&lt;/P&gt;&lt;P&gt;SSI_LDD TX and RX without DMA.&lt;/P&gt;&lt;P&gt;SSI_LDD TX with DMA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What doesn;t work &lt;BR /&gt;SSI_LDD RX with DMA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get buffers returned to me by the I2S driver but they are always completely filled with 0 even though GetReceivedDataNum returns the correct number of bytes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using an 8 KHz 16 bit stereo stream.&lt;/P&gt;&lt;P&gt;The kinetis is generating the MCLK and the codec is generating bit and frame clocks.&lt;/P&gt;&lt;P&gt;The frame and bit clocks are shared between RX and TX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have not touched the driver code at all, just using what processor expert generates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've noticed that processor expert gives you a lot of latitude in choosing DMA settings even though many combinations will not work.&lt;/P&gt;&lt;P&gt;Does any body have any advice on which settings I might have configured incorrectly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One other question....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should this question be in the processor expert forum instead?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Sep 2013 19:36:13 GMT</pubDate>
    <dc:creator>nlemoz</dc:creator>
    <dc:date>2013-09-11T19:36:13Z</dc:date>
    <item>
      <title>Kinetis K10 SAI/I2S + DMA RX</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K10-SAI-I2S-DMA-RX/m-p/227095#M4592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;Trying to get the kinetis K10 to do DMA with TX and RX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using processor expert with mqxlite.&lt;/P&gt;&lt;P&gt;The chip is MK10DN64.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What works:&lt;/P&gt;&lt;P&gt;SSI_LDD TX and RX without DMA.&lt;/P&gt;&lt;P&gt;SSI_LDD TX with DMA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What doesn;t work &lt;BR /&gt;SSI_LDD RX with DMA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get buffers returned to me by the I2S driver but they are always completely filled with 0 even though GetReceivedDataNum returns the correct number of bytes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using an 8 KHz 16 bit stereo stream.&lt;/P&gt;&lt;P&gt;The kinetis is generating the MCLK and the codec is generating bit and frame clocks.&lt;/P&gt;&lt;P&gt;The frame and bit clocks are shared between RX and TX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have not touched the driver code at all, just using what processor expert generates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've noticed that processor expert gives you a lot of latitude in choosing DMA settings even though many combinations will not work.&lt;/P&gt;&lt;P&gt;Does any body have any advice on which settings I might have configured incorrectly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One other question....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should this question be in the processor expert forum instead?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 19:36:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K10-SAI-I2S-DMA-RX/m-p/227095#M4592</guid>
      <dc:creator>nlemoz</dc:creator>
      <dc:date>2013-09-11T19:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis K10 SAI/I2S + DMA RX</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K10-SAI-I2S-DMA-RX/m-p/227096#M4593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've looked further into this and the issue seems to be caused by the I2S driver giving DMA the wrong source address for the receiver.&lt;/P&gt;&lt;P&gt;It should be 0x4002F0A0 but it tells the DMA that it's 0x4002F0A2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The offending line is in the I2S init stuff and looks like this:&lt;/P&gt;&lt;P&gt;DescriptorAddressPtr-&amp;gt;SourceAddress = (LDD_DMA_TAddress)(I2S_PDD_GetRxDataChannelRegAddress(I2S0_BASE_PTR, 0U) + 0x02UL);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that "+0x02UL" on the end.&lt;/P&gt;&lt;P&gt;Remove that and it seems to start working.&lt;/P&gt;&lt;P&gt;Now to find out whether it is my settings or a driver bug.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2013 12:15:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K10-SAI-I2S-DMA-RX/m-p/227096#M4593</guid>
      <dc:creator>nlemoz</dc:creator>
      <dc:date>2013-09-12T12:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis K10 SAI/I2S + DMA RX</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K10-SAI-I2S-DMA-RX/m-p/227097#M4594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nlemoz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the delay! Thanks a lot for sharing this workaround with Community, we're happy to have you as part of it!&lt;/P&gt;&lt;P&gt;Keep up the hard work :smileywink:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Monica,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 23:58:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-K10-SAI-I2S-DMA-RX/m-p/227097#M4594</guid>
      <dc:creator>Monica</dc:creator>
      <dc:date>2013-09-25T23:58:08Z</dc:date>
    </item>
  </channel>
</rss>

