<?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>i.MX ProcessorsのトピックRe: Question about detecting UART break condition</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Question-about-detecting-UART-break-condition/m-p/2035868#M233477</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188489"&gt;@RoyKang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Digging a little in this topic, I found the&amp;nbsp;&lt;A href="https://github.com/nxp-imx/linux-imx/blob/lf-6.6.y/drivers/tty/serial/imx.c#L389" target="_self"&gt;imx_uart_start_rx(struct uart_port *port)&amp;nbsp;&lt;/A&gt;, and I saw in that function is configured the UART to works like DMA or without DMA.&lt;/P&gt;
&lt;P&gt;If DMA is not enabled:&lt;/P&gt;
&lt;P&gt;ucr1 |= UCR1_RRDYEN;&lt;BR /&gt;ucr2 |= UCR2_ATEN;&lt;/P&gt;
&lt;DIV id="tinyMceEditorAlejandro_Salas_3" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;STRONG&gt;RRDYEN&lt;/STRONG&gt;:&amp;nbsp;Receiver Ready Interrupt Enable. Enables/Disables the RRDY interrupt when the RxFIFO contains data. The fill level in the RxFIFO at which an interrupt is generated is controlled by the RXTL bits. When RRDYEN is negated, the receiver ready interrupt is disabled.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;0 Disables the RRDY interrupt.&lt;/LI&gt;
&lt;LI&gt;1 Enables the RRDY interrupt.&lt;/LI&gt;
&lt;/UL&gt;
&lt;DIV id="tinyMceEditorAlejandro_Salas_4" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="tinyMceEditorAlejandro_Salas_5" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;STRONG&gt;ATEN&lt;/STRONG&gt;:&amp;nbsp;Aging Timer Enable. This bit is used to enable the aging timer interrupt (triggered with AGTIM).&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;0 AGTIM interrupt disabled&lt;/LI&gt;
&lt;LI&gt;1 AGTIM interrupt enabled&lt;/LI&gt;
&lt;/UL&gt;
&lt;DIV id="tinyMceEditorAlejandro_Salas_2" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;One can try to enable BKEN in UCR4.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;BKEN&lt;/STRONG&gt;:&amp;nbsp;BREAK Condition Detected Interrupt Enable. Enables/Disables the BRCD bit to generate an interrupt.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;0 Disable the BRCD interrupt&lt;/LI&gt;
&lt;LI&gt;1 Enable the BRCD interrupt&lt;/LI&gt;
&lt;/UL&gt;
&lt;DIV id="tinyMceEditorAlejandro_Salas_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Salas.&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jan 2025 21:18:01 GMT</pubDate>
    <dc:creator>Manuel_Salas</dc:creator>
    <dc:date>2025-01-29T21:18:01Z</dc:date>
    <item>
      <title>Question about detecting UART break condition</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Question-about-detecting-UART-break-condition/m-p/2032638#M233260</link>
      <description>&lt;P&gt;Hi, I am using i.MX8MP and have a question about detecting UART break conditon.&lt;/P&gt;&lt;P&gt;In my testbed, i.MX8MP only recieve packet from packet sender. The packet sender make break condition like below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RoyKang_0-1737585669867.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/320933iEE6011449EE0FC29/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RoyKang_0-1737585669867.png" alt="RoyKang_0-1737585669867.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When using UART with DMA, the break condition is detected, but without DMA, it is not detected.&lt;/P&gt;&lt;P&gt;Can you let me know why can't detect break condition without DMA?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Roy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2025 22:46:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Question-about-detecting-UART-break-condition/m-p/2032638#M233260</guid>
      <dc:creator>RoyKang</dc:creator>
      <dc:date>2025-01-22T22:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Question about detecting UART break condition</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Question-about-detecting-UART-break-condition/m-p/2033327#M233311</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188489"&gt;@RoyKang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope you are doing very well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please share more details? Also, how can I replicate your issue?&lt;/P&gt;
&lt;P&gt;Are you using Cortex A (Linux OS)? Cortex M (SDK)?&lt;/P&gt;
&lt;P&gt;If using Linux, please share your BSP version.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Salas.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 16:56:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Question-about-detecting-UART-break-condition/m-p/2033327#M233311</guid>
      <dc:creator>Manuel_Salas</dc:creator>
      <dc:date>2025-01-23T16:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Question about detecting UART break condition</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Question-about-detecting-UART-break-condition/m-p/2033469#M233321</link>
      <description>Hi, &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/203368"&gt;@Manuel_Salas&lt;/a&gt;&lt;BR /&gt;I hope you’re doing great too.&lt;BR /&gt;&lt;BR /&gt;I'm using Cortex A (Linux OS, BSP 5.10.72).&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Roy.</description>
      <pubDate>Thu, 23 Jan 2025 22:25:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Question-about-detecting-UART-break-condition/m-p/2033469#M233321</guid>
      <dc:creator>RoyKang</dc:creator>
      <dc:date>2025-01-23T22:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Question about detecting UART break condition</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Question-about-detecting-UART-break-condition/m-p/2035868#M233477</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188489"&gt;@RoyKang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Digging a little in this topic, I found the&amp;nbsp;&lt;A href="https://github.com/nxp-imx/linux-imx/blob/lf-6.6.y/drivers/tty/serial/imx.c#L389" target="_self"&gt;imx_uart_start_rx(struct uart_port *port)&amp;nbsp;&lt;/A&gt;, and I saw in that function is configured the UART to works like DMA or without DMA.&lt;/P&gt;
&lt;P&gt;If DMA is not enabled:&lt;/P&gt;
&lt;P&gt;ucr1 |= UCR1_RRDYEN;&lt;BR /&gt;ucr2 |= UCR2_ATEN;&lt;/P&gt;
&lt;DIV id="tinyMceEditorAlejandro_Salas_3" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;STRONG&gt;RRDYEN&lt;/STRONG&gt;:&amp;nbsp;Receiver Ready Interrupt Enable. Enables/Disables the RRDY interrupt when the RxFIFO contains data. The fill level in the RxFIFO at which an interrupt is generated is controlled by the RXTL bits. When RRDYEN is negated, the receiver ready interrupt is disabled.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;0 Disables the RRDY interrupt.&lt;/LI&gt;
&lt;LI&gt;1 Enables the RRDY interrupt.&lt;/LI&gt;
&lt;/UL&gt;
&lt;DIV id="tinyMceEditorAlejandro_Salas_4" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="tinyMceEditorAlejandro_Salas_5" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;STRONG&gt;ATEN&lt;/STRONG&gt;:&amp;nbsp;Aging Timer Enable. This bit is used to enable the aging timer interrupt (triggered with AGTIM).&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;0 AGTIM interrupt disabled&lt;/LI&gt;
&lt;LI&gt;1 AGTIM interrupt enabled&lt;/LI&gt;
&lt;/UL&gt;
&lt;DIV id="tinyMceEditorAlejandro_Salas_2" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;One can try to enable BKEN in UCR4.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;BKEN&lt;/STRONG&gt;:&amp;nbsp;BREAK Condition Detected Interrupt Enable. Enables/Disables the BRCD bit to generate an interrupt.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;0 Disable the BRCD interrupt&lt;/LI&gt;
&lt;LI&gt;1 Enable the BRCD interrupt&lt;/LI&gt;
&lt;/UL&gt;
&lt;DIV id="tinyMceEditorAlejandro_Salas_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Salas.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 21:18:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Question-about-detecting-UART-break-condition/m-p/2035868#M233477</guid>
      <dc:creator>Manuel_Salas</dc:creator>
      <dc:date>2025-01-29T21:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Question about detecting UART break condition</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Question-about-detecting-UART-break-condition/m-p/2037041#M233548</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/203368"&gt;@Manuel_Salas&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;The source code has been changed as follows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2025-02-03 15 36 55.jpg" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/322170i350EB286A22B69BE/image-size/large?v=v2&amp;amp;px=999" role="button" title="2025-02-03 15 36 55.jpg" alt="2025-02-03 15 36 55.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Control registers value is:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;With DMA&lt;UL&gt;&lt;LI&gt;UCR1 : 0x0000 0125&lt;/LI&gt;&lt;LI&gt;UCR2 : 0x0000 5027&lt;/LI&gt;&lt;LI&gt;UCR3 : 0x0000 038C&lt;/LI&gt;&lt;LI&gt;UCR4 : 0x0000 4006&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Without DMA&lt;UL&gt;&lt;LI&gt;UCR1 : 0x0000 0221&lt;/LI&gt;&lt;LI&gt;UCR2 : 0x0000 502F&lt;/LI&gt;&lt;LI&gt;UCR3 : 0x0000 038C&lt;/LI&gt;&lt;LI&gt;UCR4 : 0x0000 4006&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I think BKEN was enabled but break condition is not occurred without DMA. (occurred with DMA).&lt;/P&gt;&lt;P&gt;Test environment:&lt;/P&gt;&lt;P&gt;PC &amp;lt;--- USB to 485/422 converter ---&amp;gt; HBU-208B NMEA splitter (please refer attached file) &amp;lt;--- RS232 cable ---&amp;gt; iMX8MP B/D&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 06:49:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Question-about-detecting-UART-break-condition/m-p/2037041#M233548</guid>
      <dc:creator>RoyKang</dc:creator>
      <dc:date>2025-02-03T06:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Question about detecting UART break condition</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Question-about-detecting-UART-break-condition/m-p/2037044#M233549</link>
      <description>&lt;P&gt;I forgot to attach a file.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 06:52:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Question-about-detecting-UART-break-condition/m-p/2037044#M233549</guid>
      <dc:creator>RoyKang</dc:creator>
      <dc:date>2025-02-03T06:52:57Z</dc:date>
    </item>
  </channel>
</rss>

