<?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 uSDHC FIFO in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/uSDHC-FIFO/m-p/258350#M25213</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;I use a polled system without DMA. When filling the 128 worlds FIFO with a write water mark of 128 words and 8 word burst I get sporadic problem that BWEN are set to 0 and do not change. The water mark should set when BWEN should be activated. But independent BWEN should be set to 1 when the FIFO is empty and it should be empty when all the bytes are transferred. The water mark should only protect the FIFO from bursting to many bytes when the FIFO are almost full. So why could this happened and what should be considered when this problem occur.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;There is an remark that water mark is only for DMA but it seems to be working for non DMA modes anyway. Should I use another check for FIFO ready bit or it is okay to use the water mark.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;When the stuck state happens I also get the following state: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Data line 0 are low, data timeout (DTOE) and transfer complete (TC). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Full memory dump:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: courier new,courier;"&gt;________address|________0________4________8________C&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: courier new,courier;"&gt; AZSD:0219C000|&amp;gt;00000000 00FF0200 006E0100 193A0000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: courier new,courier;"&gt; AZSD:0219C010| 00000900 FFFFFFFF 320F5913 00D04F01&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: courier new,courier;"&gt; AZSD:0219C020|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FE8D8188 08800024 000A0207&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: courier new,courier;"&gt; AZSD:0219C030| 00100002 157F51FF 157F51FF 00000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: courier new,courier;"&gt; AZSD:0219C040| 07F30000 08800880 80000022 00000000&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Feb 2014 13:48:40 GMT</pubDate>
    <dc:creator>mrlantz</dc:creator>
    <dc:date>2014-02-25T13:48:40Z</dc:date>
    <item>
      <title>uSDHC FIFO</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/uSDHC-FIFO/m-p/258350#M25213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;I use a polled system without DMA. When filling the 128 worlds FIFO with a write water mark of 128 words and 8 word burst I get sporadic problem that BWEN are set to 0 and do not change. The water mark should set when BWEN should be activated. But independent BWEN should be set to 1 when the FIFO is empty and it should be empty when all the bytes are transferred. The water mark should only protect the FIFO from bursting to many bytes when the FIFO are almost full. So why could this happened and what should be considered when this problem occur.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;There is an remark that water mark is only for DMA but it seems to be working for non DMA modes anyway. Should I use another check for FIFO ready bit or it is okay to use the water mark.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;When the stuck state happens I also get the following state: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Data line 0 are low, data timeout (DTOE) and transfer complete (TC). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Full memory dump:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: courier new,courier;"&gt;________address|________0________4________8________C&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: courier new,courier;"&gt; AZSD:0219C000|&amp;gt;00000000 00FF0200 006E0100 193A0000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: courier new,courier;"&gt; AZSD:0219C010| 00000900 FFFFFFFF 320F5913 00D04F01&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: courier new,courier;"&gt; AZSD:0219C020|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FE8D8188 08800024 000A0207&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: courier new,courier;"&gt; AZSD:0219C030| 00100002 157F51FF 157F51FF 00000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: courier new,courier;"&gt; AZSD:0219C040| 07F30000 08800880 80000022 00000000&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 13:48:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/uSDHC-FIFO/m-p/258350#M25213</guid>
      <dc:creator>mrlantz</dc:creator>
      <dc:date>2014-02-25T13:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: uSDHC FIFO</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/uSDHC-FIFO/m-p/258351#M25214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;According to section 67.4.1 (Data Buffer) of the i.MX6 DQ Reference Manual :&lt;BR /&gt; “CPU polling mode:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;* For a host read operation, when the number of words received in the buffer&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;meets or exceeds the RD_WML watermark value, by polling the BRR bit, the&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;Host Driver can read the Buffer Data Port register to fetch the amount of words&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;set in the RD_WML register from the buffer. The write operation is similar.”&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;&amp;nbsp;&amp;nbsp; This means, as stated in section 67.4.1.1 (Write Operation Sequence) :&lt;BR /&gt; “When the internal DMA is not used, (the DMAEN bit in the Transfer Type register is not&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;set when the command is sent), the uSDHC asserts a DMA request when the amount of&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;buffer space exceeds the value set in the WR_WML register, and is ready for receiving&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;new data. At the same time, the uSDHC sets the BWR bit. The buffer write ready&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;interrupt will be generated if it is enabled by software.”&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;So, please use the BWR bit before FIFO filling. &lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Verdana','sans-serif';"&gt;&amp;nbsp;&amp;nbsp; Next, as for the DTOE event -”the uSDHC will not start data transmission until the number &lt;BR /&gt; of words set in the WR_WML register can be held in the buffer. If the buffer is empty and the &lt;BR /&gt; Host System does not write data in time, the uSDHC will stop the CLK to avoid the data buffer &lt;BR /&gt; underrun situation.”&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 10:32:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/uSDHC-FIFO/m-p/258351#M25214</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2014-03-13T10:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: uSDHC FIFO</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/uSDHC-FIFO/m-p/258352#M25215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When using only the BWR instead of BWEN I get the same problem but if I change the WR_WML from default 128 to 32 the problem do not trigger. But as stated in the spec the WR_WML should only be used in DMA mode that I do not use so why does this affect the behavior in polled mode? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also want to highlight that even if problem with BWR and BWEN was removed I now get error higher up in the software stack and it feels that I have the same issue but now in a different area of the software stack. I was planning to get back with a more detailed description of the new problem but&amp;nbsp; I will not be able to finish in time before my business trip. I will read mail but will not be able to run any test without may lab so it could be that I cannot respond during the coming week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more thing that are important is that I cannot see this problem when running the same code and setup on a SoloLite device. Only problem with Solo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 06:34:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/uSDHC-FIFO/m-p/258352#M25215</guid>
      <dc:creator>mrlantz</dc:creator>
      <dc:date>2014-03-25T06:34:08Z</dc:date>
    </item>
  </channel>
</rss>

