<?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: UART4 transmission issue in imx8m mini in Processor Expert Software</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/UART4-transmission-issue-in-imx8m-mini/m-p/1803651#M5780</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/212225"&gt;@Sushmamp&lt;/a&gt;!&lt;/P&gt;
&lt;P&gt;How are you running your loopback test? &lt;BR /&gt;&lt;BR /&gt;I am assuming an echo is being sent to the serial device with a similar command:&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-c"&gt;&lt;CODE&gt;echo "hello" &amp;gt; /dev/ttySx&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Where ttySx would be the serial device you are testing in loopback.&lt;BR /&gt;&lt;BR /&gt;I would try disabling the &lt;STRONG&gt;echo &lt;/STRONG&gt;and &lt;STRONG&gt;onlcr &lt;/STRONG&gt;options from your serial device.&lt;BR /&gt;&lt;BR /&gt;Use the following command to check if the previous options are enabled in your serial device:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-c"&gt;&lt;CODE&gt;stty -a -F /dev/ttySx&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;If said options are present, disable them with the following line:&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-c"&gt;&lt;CODE&gt;stty -F /dev/ttySx -echo -onlcr&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this does the trick.&lt;/P&gt;</description>
    <pubDate>Wed, 07 Feb 2024 20:08:45 GMT</pubDate>
    <dc:creator>Chavira</dc:creator>
    <dc:date>2024-02-07T20:08:45Z</dc:date>
    <item>
      <title>UART4 transmission issue in imx8m mini</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/UART4-transmission-issue-in-imx8m-mini/m-p/1800525#M5764</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I'm currently working on utilizing UART4 on our custom i.MX8M Mini board running Android 11 and Linux Kernel 5.10.72.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've incorporated the necessary Device Tree Source (DTS) changes for UART4 and attempted a loopback test. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DTS changes:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;pinctrl_uart4: uart4grp {&lt;BR /&gt;fsl,pins = &amp;lt;&lt;BR /&gt;MX8MMN(IOMUXC_UART4_RXD_UART4_DCE_RX, 0x140)&lt;BR /&gt;MX8MMN(IOMUXC_UART4_TXD_UART4_DCE_TX, 0x140)&lt;BR /&gt;&amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&amp;amp;uart4 {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;pinctrl-names = "default";&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_uart4&amp;gt;;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;assigned-clocks = &amp;lt;&amp;amp;clk IMX8MMN(CLK_UART4)&amp;gt;;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;assigned-clock-parents = &amp;lt;&amp;amp;clk IMX8MMN(SYS_PLL1_80M)&amp;gt;;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;status = "okay";&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;};&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm encountering an issue where the output of the loop back test results in receiving the same sent data continuously. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;LI-PRODUCT title="iMX8MMINI" id="iMX8MMINI"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 06:20:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/UART4-transmission-issue-in-imx8m-mini/m-p/1800525#M5764</guid>
      <dc:creator>Sushmamp</dc:creator>
      <dc:date>2024-02-02T06:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: UART4 transmission issue in imx8m mini</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/UART4-transmission-issue-in-imx8m-mini/m-p/1801002#M5768</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/212225"&gt;@Sushmamp&lt;/a&gt;!&lt;BR /&gt;Thank you for contacting NXP Support!&lt;BR /&gt;&lt;BR /&gt;To use the UART4 on iMX8MM you have to modify the bl31_setup.c too.&lt;BR /&gt;&lt;BR /&gt;Please check the guide below:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/How-to-use-UART4-on-iMX8M-from-Linux-User-Space/ta-p/1762038" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/How-to-use-UART4-on-iMX8M-from-Linux-User-Space/ta-p/1762038&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best Regards!&lt;BR /&gt;Chavira&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 16:52:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/UART4-transmission-issue-in-imx8m-mini/m-p/1801002#M5768</guid>
      <dc:creator>Chavira</dc:creator>
      <dc:date>2024-02-02T16:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: UART4 transmission issue in imx8m mini</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/UART4-transmission-issue-in-imx8m-mini/m-p/1801898#M5773</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/206761"&gt;@Chavira&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We already modified the imx8mn_bl31_setup.c file to support for UART4.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;imx8mn_bl31_setup.c&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* peripherals domain permission */&lt;BR /&gt;&amp;nbsp;#if 0&lt;BR /&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; RDC_PDAPn(RDC_PDAP_UART4, D1R | D1W),&lt;BR /&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; RDC_PDAPn(RDC_PDAP_UART4, D0R | D0W),&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RDC_PDAPn(RDC_PDAP_UART2, D0R | D0W),&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RDC_PDAPn(RDC_PDAP_UART1, D0R | D0W),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;1) Loopback test:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; We have attempted a loopback test of UART4, encountering an issue where the output of the loop back test results in receiving the same sent data continuously.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Can you please suggest any other modification are needed to make UART4 to work&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp;Output of loop back:&lt;BR /&gt;&amp;nbsp; &amp;nbsp;hello&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;lt;2 line space&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;hello&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;lt;4 line space&amp;gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;hello&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;lt;8 line space&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;hello&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;lt;16 line space&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;and so on&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2024 13:01:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/UART4-transmission-issue-in-imx8m-mini/m-p/1801898#M5773</guid>
      <dc:creator>Sushmamp</dc:creator>
      <dc:date>2024-02-05T13:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: UART4 transmission issue in imx8m mini</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/UART4-transmission-issue-in-imx8m-mini/m-p/1802068#M5774</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/212225"&gt;@Sushmamp&lt;/a&gt;!&lt;BR /&gt;&lt;BR /&gt;Do you modify Line 64 or line 111?&lt;BR /&gt;&lt;BR /&gt;For your purpose, you have to change line 64 because is the Android Build, and line 111 is for the Linux Build.&lt;BR /&gt;&lt;BR /&gt;Best Regards!&lt;/P&gt;
&lt;P&gt;Chavira&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2024 17:47:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/UART4-transmission-issue-in-imx8m-mini/m-p/1802068#M5774</guid>
      <dc:creator>Chavira</dc:creator>
      <dc:date>2024-02-05T17:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: UART4 transmission issue in imx8m mini</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/UART4-transmission-issue-in-imx8m-mini/m-p/1802735#M5778</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/206761" target="_self"&gt;&lt;SPAN class=""&gt;Chavira&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In our android build we have that line in only 1 place at line 62.&lt;/P&gt;&lt;P&gt;And one more thing to add on is we are trying to connect to barcode scanner to that UART4 interface.&lt;/P&gt;&lt;P&gt;we are not abel to read the data received on UART4(/dev/ttymxc3) from an UART barcode scanner and baudrate of the UART4 and barcode scanner is set to 115200.&lt;/P&gt;&lt;P&gt;We verified same barcode scanner with UART3 we are able to read the data from barcode scanner.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 14:24:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/UART4-transmission-issue-in-imx8m-mini/m-p/1802735#M5778</guid>
      <dc:creator>Sushmamp</dc:creator>
      <dc:date>2024-02-06T14:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: UART4 transmission issue in imx8m mini</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/UART4-transmission-issue-in-imx8m-mini/m-p/1803651#M5780</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/212225"&gt;@Sushmamp&lt;/a&gt;!&lt;/P&gt;
&lt;P&gt;How are you running your loopback test? &lt;BR /&gt;&lt;BR /&gt;I am assuming an echo is being sent to the serial device with a similar command:&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-c"&gt;&lt;CODE&gt;echo "hello" &amp;gt; /dev/ttySx&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Where ttySx would be the serial device you are testing in loopback.&lt;BR /&gt;&lt;BR /&gt;I would try disabling the &lt;STRONG&gt;echo &lt;/STRONG&gt;and &lt;STRONG&gt;onlcr &lt;/STRONG&gt;options from your serial device.&lt;BR /&gt;&lt;BR /&gt;Use the following command to check if the previous options are enabled in your serial device:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-c"&gt;&lt;CODE&gt;stty -a -F /dev/ttySx&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;If said options are present, disable them with the following line:&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-c"&gt;&lt;CODE&gt;stty -F /dev/ttySx -echo -onlcr&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this does the trick.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 20:08:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/UART4-transmission-issue-in-imx8m-mini/m-p/1803651#M5780</guid>
      <dc:creator>Chavira</dc:creator>
      <dc:date>2024-02-07T20:08:45Z</dc:date>
    </item>
  </channel>
</rss>

