<?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: SAI losts the first frame date (=16ch)? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/SAI-losts-the-first-frame-date-16ch/m-p/1868545#M223921</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/203308"&gt;@JorgeCas&lt;/a&gt;&amp;nbsp;san&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt; Are you seeing this issue on playback?&lt;/P&gt;&lt;P&gt;No, but the playback side is still untested.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt; Which CODEC/DSP/etc are you using?&lt;/P&gt;&lt;P&gt;I'm using custom CODEC(FPGA). The custom CODEC provides TXC/RXC and TXFS/RXFS.&lt;/P&gt;&lt;P&gt;At this time, data for the first 16 channels cannot be imported. Other than that, it's working mostly as intended.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt; Did you measure the signals when you receive the data?&lt;/P&gt;&lt;P&gt;I used snd_pcm_readi with alsalib.&lt;/P&gt;&lt;P&gt;And I compared the data first captured with snd_pcm_readi and the waveform output by the custom CODEC (captured by an oscilloscope).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should I check the waveform timing of RXC/RXFS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;KASHIWAGI Takashi&lt;/P&gt;</description>
    <pubDate>Mon, 20 May 2024 04:28:10 GMT</pubDate>
    <dc:creator>Takashi_Kashiwagi</dc:creator>
    <dc:date>2024-05-20T04:28:10Z</dc:date>
    <item>
      <title>SAI losts the first frame date (=16ch)?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SAI-losts-the-first-frame-date-16ch/m-p/1866778#M223796</link>
      <description>&lt;P&gt;Hi community and Tech Support.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have using I.MX8MP with yocto(kernel 5.15.71).&lt;/P&gt;&lt;DIV&gt;When receiving data using SAI, the first frame is lost.&lt;/DIV&gt;&lt;DIV&gt;The SAI settings are as follows.&lt;/DIV&gt;&lt;DIV&gt;* slave mode(TXFS, TXC, RXFS and RXC are provided by external custom codec)&lt;/DIV&gt;&lt;DIV&gt;* WORD LENGTH = 32bit&lt;/DIV&gt;&lt;DIV&gt;* Frequency = 48~768KHz&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;* format = left_j&lt;/DIV&gt;* Channel = 16ch&lt;/DIV&gt;&lt;DIV&gt;* Lane = 8 (TXD0~7/RXD0~8)&lt;/DIV&gt;&lt;DIV&gt;* Slots per lane = 2&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Is there any workaround?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;--&lt;/DIV&gt;&lt;DIV&gt;The following is the data dumped from the first received data with snd_pcm_readi.&lt;/DIV&gt;&lt;DIV&gt;I'm expecting 64 bytes of data 00 00 00 00...10 00 00 00 to be included, but that part is missing.&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="terminal,monaco"&gt;---------------------------------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;11 00 00 00 12 00 00 00 13 00 00 00 14 00 00 00 : ................&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;15 00 00 00 16 00 00 00 17 00 00 00 18 00 00 00 : ................&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;19 00 00 00 1A 00 00 00 1B 00 00 00 1C 00 00 00 : ................&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;1D 00 00 00 1E 00 00 00 1F 00 00 00 20 00 00 00 : ............ ...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;21 00 00 00 22 00 00 00 23 00 00 00 24 00 00 00 : !..."...#...$...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;25 00 00 00 26 00 00 00 27 00 00 00 28 00 00 00 : %...&amp;amp;...'...(...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;29 00 00 00 2A 00 00 00 2B 00 00 00 2C 00 00 00 : )...*...+...,...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;2D 00 00 00 2E 00 00 00 2F 00 00 00 30 00 00 00 : -......./...0...&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="terminal,monaco"&gt;-------------------------------------------------------------------&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Best Regards&lt;/DIV&gt;&lt;DIV&gt;KASHIWAGI Takashi&lt;/DIV&gt;</description>
      <pubDate>Thu, 16 May 2024 05:03:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SAI-losts-the-first-frame-date-16ch/m-p/1866778#M223796</guid>
      <dc:creator>Takashi_Kashiwagi</dc:creator>
      <dc:date>2024-05-16T05:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: SAI losts the first frame date (=16ch)?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SAI-losts-the-first-frame-date-16ch/m-p/1868251#M223901</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Please share me the next details about your setup:&lt;/P&gt;
&lt;P&gt;Are you seeing this issue on playback?&lt;/P&gt;
&lt;P&gt;Which CODEC/DSP/etc are you using?&lt;/P&gt;
&lt;P&gt;Did you measure the signals when you receive the data?&lt;/P&gt;
&lt;P&gt;Best regards.&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2024 20:05:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SAI-losts-the-first-frame-date-16ch/m-p/1868251#M223901</guid>
      <dc:creator>JorgeCas</dc:creator>
      <dc:date>2024-05-17T20:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: SAI losts the first frame date (=16ch)?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SAI-losts-the-first-frame-date-16ch/m-p/1868545#M223921</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/203308"&gt;@JorgeCas&lt;/a&gt;&amp;nbsp;san&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt; Are you seeing this issue on playback?&lt;/P&gt;&lt;P&gt;No, but the playback side is still untested.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt; Which CODEC/DSP/etc are you using?&lt;/P&gt;&lt;P&gt;I'm using custom CODEC(FPGA). The custom CODEC provides TXC/RXC and TXFS/RXFS.&lt;/P&gt;&lt;P&gt;At this time, data for the first 16 channels cannot be imported. Other than that, it's working mostly as intended.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt; Did you measure the signals when you receive the data?&lt;/P&gt;&lt;P&gt;I used snd_pcm_readi with alsalib.&lt;/P&gt;&lt;P&gt;And I compared the data first captured with snd_pcm_readi and the waveform output by the custom CODEC (captured by an oscilloscope).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should I check the waveform timing of RXC/RXFS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;KASHIWAGI Takashi&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 04:28:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SAI-losts-the-first-frame-date-16ch/m-p/1868545#M223921</guid>
      <dc:creator>Takashi_Kashiwagi</dc:creator>
      <dc:date>2024-05-20T04:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: SAI losts the first frame date (=16ch)?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SAI-losts-the-first-frame-date-16ch/m-p/1868929#M223945</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;No, but the playback side is still untested.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Please try to check if the issue on playback is also present.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Should I check the waveform timing of RXC/RXFS?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Sure, please confirm that the data is correctly sent by FPGA and check timing for RXC/RXFS.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards.&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 13:49:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SAI-losts-the-first-frame-date-16ch/m-p/1868929#M223945</guid>
      <dc:creator>JorgeCas</dc:creator>
      <dc:date>2024-05-20T13:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: SAI losts the first frame date (=16ch)?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SAI-losts-the-first-frame-date-16ch/m-p/1871572#M224078</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/203308"&gt;@JorgeCas&lt;/a&gt;&amp;nbsp;san&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thankb you for reply.&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;Please try to check if the issue on playback is also present.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I confirmed. The first frame was also missing on the playback side.&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;Sure, please confirm that the data is correctly sent by FPGA and check timing for RXC/RXFS.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I understand. I'm going to check it out now, but I think it will take some time due to equipment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;KASHIWAGI Takashi&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 04:43:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SAI-losts-the-first-frame-date-16ch/m-p/1871572#M224078</guid>
      <dc:creator>Takashi_Kashiwagi</dc:creator>
      <dc:date>2024-05-23T04:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: SAI losts the first frame date (=16ch)?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SAI-losts-the-first-frame-date-16ch/m-p/1874163#M224121</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/203308"&gt;@JorgeCas&lt;/a&gt;&amp;nbsp;san&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I captured waveform of RXC/RXFS/RXD with oscilloscope. I send the file.&lt;/P&gt;&lt;P&gt;*&amp;nbsp;SAI1_RXFS_RXC_RXD0_最初周期_20240524.png&lt;/P&gt;&lt;P&gt;*&amp;nbsp;SAI1_RXFS_RXC_RXD0_最初半周期_20240524.png&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I noticed that the duty ratio of the RXC is strange. We will fix this issue later.&lt;BR /&gt;Is there anything else suspicious?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;KASHIWAGI Takashi&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 02:31:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SAI-losts-the-first-frame-date-16ch/m-p/1874163#M224121</guid>
      <dc:creator>Takashi_Kashiwagi</dc:creator>
      <dc:date>2024-05-24T02:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: SAI losts the first frame date (=16ch)?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SAI-losts-the-first-frame-date-16ch/m-p/1874691#M224142</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/75012"&gt;@Takashi_Kashiwagi&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thank you for the update.&lt;/P&gt;
&lt;P&gt;I do not have additional&amp;nbsp;&lt;SPAN&gt;suspicious for this issue, please let me know if solving duty ratio of the RXC helps with your issue.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 13:42:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SAI-losts-the-first-frame-date-16ch/m-p/1874691#M224142</guid>
      <dc:creator>JorgeCas</dc:creator>
      <dc:date>2024-05-24T13:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: SAI losts the first frame date (=16ch)?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SAI-losts-the-first-frame-date-16ch/m-p/1875832#M224224</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/203308"&gt;@JorgeCas&lt;/a&gt;&amp;nbsp;san&lt;/P&gt;&lt;P&gt;Thank you for reply&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;please let me know if solving duty ratio of the RXC helps with your issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It's hard to tell from the image, but the RXC duty ratio was over 40-60%. It's working so far, but it's out of spec, so I'll fix it.&lt;BR /&gt;However, I don't think this fix will solve the problem of missing the first frame.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are there any stricter timing requirements for RXFS and RXC when SAI starts operating?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;KASHIWAGI Takashi&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 02:33:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SAI-losts-the-first-frame-date-16ch/m-p/1875832#M224224</guid>
      <dc:creator>Takashi_Kashiwagi</dc:creator>
      <dc:date>2024-05-28T02:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: SAI losts the first frame date (=16ch)?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SAI-losts-the-first-frame-date-16ch/m-p/1876384#M224262</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;To check timing requirements, I suggest you take a look in datasheet chapter 3.8.13 "SAI/I2S switching specifications".&lt;/P&gt;
&lt;P&gt;Best regards.&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 14:24:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SAI-losts-the-first-frame-date-16ch/m-p/1876384#M224262</guid>
      <dc:creator>JorgeCas</dc:creator>
      <dc:date>2024-05-28T14:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAI losts the first frame date (=16ch)?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SAI-losts-the-first-frame-date-16ch/m-p/1878511#M224388</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/203308"&gt;@JorgeCas&lt;/a&gt;&amp;nbsp;san&lt;BR /&gt;&lt;BR /&gt;Thank you for reply!&lt;/P&gt;&lt;P&gt;I checked the RXC/RXFS timing in "Table 68. Slave mode SAI timing" and there seem to be no problems with the timing other than "S12 SAI_BCLK pulse width high/low (input)".&lt;/P&gt;&lt;P&gt;Have you seen any other cases where the first frame of SAI is dropped?&lt;/P&gt;&lt;P&gt;Or is this the way the IMX8MP SAI is supposed to behave?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;KASHIWAGI Takashi&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 02:07:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SAI-losts-the-first-frame-date-16ch/m-p/1878511#M224388</guid>
      <dc:creator>Takashi_Kashiwagi</dc:creator>
      <dc:date>2024-05-31T02:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: SAI losts the first frame date (=16ch)?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SAI-losts-the-first-frame-date-16ch/m-p/1887419#M224963</link>
      <description>&lt;P&gt;Hi community!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This phenomenon was due to the SoC specifications.&lt;/P&gt;&lt;P&gt;According to I.MX8MP Reference Manual,&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;14.4.2.3 Frame sync configuration&lt;BR /&gt;When enabled, the SAI continuously transmits and/or receives frames of data. Each&lt;BR /&gt;frame consists of a fixed number of words and each word consists of a fixed number of&lt;BR /&gt;bits. Within each frame, any given word can be masked causing the receiver to ignore&lt;BR /&gt;that word and the transmitter to tri-state for the duration of that word.&lt;BR /&gt;The frame sync signal indicates the start of each frame. A valid frame sync requires a&lt;BR /&gt;rising edge (if active high) or falling edge (if active low) to be detected and the&lt;BR /&gt;transmitter or receiver cannot be busy with a previous frame.&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt; A valid frame sync is also&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;ignored (slave mode) or not generated (master mode) for the first four bit clock cycles&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;after enabling the transmitter or receiver.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;KASHIWAGI Takashi&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 01:51:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SAI-losts-the-first-frame-date-16ch/m-p/1887419#M224963</guid>
      <dc:creator>Takashi_Kashiwagi</dc:creator>
      <dc:date>2024-06-14T01:51:06Z</dc:date>
    </item>
  </channel>
</rss>

