<?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: S32k148 - SAI FIFOs in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32k148-SAI-FIFOs/m-p/856360#M3633</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me add that on my board SAI0_D0 output is wired to SAI0_D2 input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Feb 2019 13:19:04 GMT</pubDate>
    <dc:creator>jakub_mielczare</dc:creator>
    <dc:date>2019-02-01T13:19:04Z</dc:date>
    <item>
      <title>S32k148 - SAI FIFOs</title>
      <link>https://community.nxp.com/t5/S32K/S32k148-SAI-FIFOs/m-p/856355#M3628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using s32k148 chip. When reading the SAI Rx FIFOs, I am getting pointer values greater than 7.&lt;/P&gt;&lt;P&gt;The S32K Reference Manual specifies, that each receive channel has a FIFO of 8 units (each unit 32-bit size). The manual also specifies, that in SAI RFRn register WFP and RFP have 4-bit size, which is more than required to store 0-7 write/read pointer.&lt;/P&gt;&lt;P&gt;Are the FIFOs bigger than 8 units? Is it normal to observe Rx WFP values larger than 7?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Jakub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2019 13:09:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k148-SAI-FIFOs/m-p/856355#M3628</guid>
      <dc:creator>jakub_mielczare</dc:creator>
      <dc:date>2019-01-23T13:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: S32k148 - SAI FIFOs</title>
      <link>https://community.nxp.com/t5/S32K/S32k148-SAI-FIFOs/m-p/856356#M3629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You write that you are getting pointer value &amp;gt; 7.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What exact values do you get?&lt;/P&gt;&lt;P&gt;You should get 0b1000 for sure since the FIFO size is 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2019 16:32:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k148-SAI-FIFOs/m-p/856356#M3629</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2019-01-24T16:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: S32k148 - SAI FIFOs</title>
      <link>https://community.nxp.com/t5/S32K/S32k148-SAI-FIFOs/m-p/856357#M3630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting values from 0 to 10 (did not check if higher as well).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jakub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2019 08:54:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k148-SAI-FIFOs/m-p/856357#M3630</guid>
      <dc:creator>jakub_mielczare</dc:creator>
      <dc:date>2019-01-25T08:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: S32k148 - SAI FIFOs</title>
      <link>https://community.nxp.com/t5/S32K/S32k148-SAI-FIFOs/m-p/856358#M3631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jakub,&lt;/P&gt;&lt;P&gt;Sorry for the delay.&lt;/P&gt;&lt;P&gt;We have been trying to reproduce that without any success.&lt;/P&gt;&lt;P&gt;The FIFO pointers show values in the range 0-8 as expected.&lt;/P&gt;&lt;P&gt;Could you share a screenshot of the registers with the FIFO pointers?&lt;/P&gt;&lt;P&gt;Also, what SAI configuration do you use?&lt;/P&gt;&lt;P&gt;The more information, the better.&lt;/P&gt;&lt;P&gt;The SAI initialization code or a test project&amp;nbsp;would be great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2019 09:37:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k148-SAI-FIFOs/m-p/856358#M3631</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2019-02-01T09:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: S32k148 - SAI FIFOs</title>
      <link>https://community.nxp.com/t5/S32K/S32k148-SAI-FIFOs/m-p/856359#M3632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is the screenshot with FIFO pointer registers.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="sai0_rx_fifo_pointers-ch2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/64195iE5660A9B8A1DE3D6/image-size/large?v=v2&amp;amp;px=999" role="button" title="sai0_rx_fifo_pointers-ch2.png" alt="sai0_rx_fifo_pointers-ch2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I also attached my SAI0 initialization code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jakub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2019 13:06:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k148-SAI-FIFOs/m-p/856359#M3632</guid>
      <dc:creator>jakub_mielczare</dc:creator>
      <dc:date>2019-02-01T13:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: S32k148 - SAI FIFOs</title>
      <link>https://community.nxp.com/t5/S32K/S32k148-SAI-FIFOs/m-p/856360#M3633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me add that on my board SAI0_D0 output is wired to SAI0_D2 input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2019 13:19:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k148-SAI-FIFOs/m-p/856360#M3633</guid>
      <dc:creator>jakub_mielczare</dc:creator>
      <dc:date>2019-02-01T13:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: S32k148 - SAI FIFOs</title>
      <link>https://community.nxp.com/t5/S32K/S32k148-SAI-FIFOs/m-p/856361#M3634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai jakub,&amp;nbsp;&lt;/P&gt;&lt;P&gt;could you please tell me which microphone have you used for SM32K148 ??&amp;nbsp;&lt;/P&gt;&lt;P&gt;if possible could you share the details, how to configuration microphone ??&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;saichand&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/message/1104576"&gt;S32k148 - SAI FIFOs&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2019 12:00:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k148-SAI-FIFOs/m-p/856361#M3634</guid>
      <dc:creator>chintusai6</dc:creator>
      <dc:date>2019-02-05T12:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: S32k148 - SAI FIFOs</title>
      <link>https://community.nxp.com/t5/S32K/S32k148-SAI-FIFOs/m-p/856362#M3635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saichand,&lt;/P&gt;&lt;P&gt;I did not use a microphone. I soldered a wire to loopback SAI0_D0 (tx) to SAI0_D2 (rx).&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jakub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2019 16:00:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k148-SAI-FIFOs/m-p/856362#M3635</guid>
      <dc:creator>jakub_mielczare</dc:creator>
      <dc:date>2019-02-05T16:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: S32k148 - SAI FIFOs</title>
      <link>https://community.nxp.com/t5/S32K/S32k148-SAI-FIFOs/m-p/856363#M3636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jakub,&lt;/P&gt;&lt;P&gt;Thanks for the additional information and sorry for the delay.&lt;/P&gt;&lt;P&gt;Unfortunately, the issue is still under discussion with design.&lt;/P&gt;&lt;P&gt;Also, we have still difficulties to reproduce the bahaviour for some reason.&lt;/P&gt;&lt;P&gt;If possible, could you share a working test code, the whole project?&lt;/P&gt;&lt;P&gt;You could send it via a &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-329745"&gt;ticket&lt;/A&gt; if you don't want to post it here.&lt;/P&gt;&lt;P&gt;Anyway, I will update this thread once we have confirmation from the IP designer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2019 15:06:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k148-SAI-FIFOs/m-p/856363#M3636</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2019-02-11T15:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: S32k148 - SAI FIFOs</title>
      <link>https://community.nxp.com/t5/S32K/S32k148-SAI-FIFOs/m-p/856364#M3637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't have a sample project which I could share. I only have my full application.&lt;/P&gt;&lt;P&gt;Would register dump from S32 Design Studio help? If yes, then I can post one, just let me know which registers you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jakub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2019 13:10:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k148-SAI-FIFOs/m-p/856364#M3637</guid>
      <dc:creator>jakub_mielczare</dc:creator>
      <dc:date>2019-02-12T13:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: S32k148 - SAI FIFOs</title>
      <link>https://community.nxp.com/t5/S32K/S32k148-SAI-FIFOs/m-p/856365#M3638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jakub,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sorry for the delayed response and confusing information.&lt;/P&gt;&lt;P&gt;The FIFO pointers are circular. Although the FIFO size is 8 words, the pointers increment up to 0xF.&lt;BR /&gt;The number of words in the FIFO is then the relative difference between the WFP, RFP pointers.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/74660iAE99B803A762C375/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Let say 5 words is written to the Receive FIFO by the HW, then, the RFRn_WFP pointer shows 0x5 while the RFRn_RFP pointer shows 0x0 until all the data are read (by DMA, for example) from the FIFO, then the RFRn_RFP is also 0x5.&lt;BR /&gt;And because at this point the pointers are identical, the FIFO is empty.&lt;BR /&gt;If other 5 words are received, the RFRn_WFP pointer increments to 0xA while the RFRn_RFP pointer stays at 0x5 until the data (5 words) are read from the FIFO, then the RFRn_RFP also increments to 0xA.&lt;BR /&gt;And because at this point the pointers are identical, the FIFO is empty again and a new transfer can be initialized.&lt;BR /&gt;This is a correction of my previous answer - the FIFO does not need to be reset. I’m sorry for that.&lt;/P&gt;&lt;P&gt;You can refer to the sai_transfer_s32k148 SDK example, this example utilizes DMA.&lt;BR /&gt;The FIFOs are reset during initialization in the SAI_DRV_RxInit(), SAI_DRV_TxInit() funtions only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2019 16:46:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k148-SAI-FIFOs/m-p/856365#M3638</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2019-02-27T16:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: S32k148 - SAI FIFOs</title>
      <link>https://community.nxp.com/t5/S32K/S32k148-SAI-FIFOs/m-p/856366#M3639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the answer.&lt;/P&gt;&lt;P&gt;One question: if DMA is used to read data from SAI (in RX mode), do the FIFO pointers still need to be reset, if yes, when?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jakub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2019 08:53:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k148-SAI-FIFOs/m-p/856366#M3639</guid>
      <dc:creator>jakub_mielczare</dc:creator>
      <dc:date>2019-02-28T08:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: S32k148 - SAI FIFOs</title>
      <link>https://community.nxp.com/t5/S32K/S32k148-SAI-FIFOs/m-p/856367#M3640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your update and explanations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think we can close this thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jakub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2019 13:52:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k148-SAI-FIFOs/m-p/856367#M3640</guid>
      <dc:creator>jakub_mielczare</dc:creator>
      <dc:date>2019-03-04T13:52:49Z</dc:date>
    </item>
  </channel>
</rss>

