<?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 IMX6ULL uart2 comunicate in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX6ULL-uart2-comunicate/m-p/793510#M122918</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;I meet some problem about Imx6ull uart2 comunicating problem. I connect "UART2_TX_DATA", &amp;nbsp;"UART2_RX_DATA", "UART2_RTS_B", "UART2_CTS_B" to a BlueTooth module.&lt;/P&gt;&lt;P&gt;Firstly, the schematic is as bellow:&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/69612i8F8488EE65CFBC0E/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;Secondly, the DTS configure is as bellow:&lt;/P&gt;&lt;P&gt;#if 1&lt;BR /&gt; /*For AP6236 BT*/&lt;BR /&gt; pinctrl_uart2: uart2grp {&lt;BR /&gt; fsl,pins = &amp;lt;&lt;BR /&gt; MX6UL_PAD_UART2_TX_DATA__UART2_DCE_TX 0x1b0b1&lt;BR /&gt; MX6UL_PAD_UART2_RX_DATA__UART2_DCE_RX 0x1b0b1&lt;BR /&gt; MX6UL_PAD_UART2_RTS_B__UART2_DCE_RTS 0x1b0b1&lt;BR /&gt; MX6UL_PAD_UART2_CTS_B__UART2_DCE_CTS 0x110b1&lt;/P&gt;&lt;P&gt;MX6ULL_PAD_SNVS_TAMPER2__GPIO5_IO02 0x1b0b0 /* BT_wake */&lt;BR /&gt; MX6ULL_PAD_SNVS_TAMPER3__GPIO5_IO03 0x1b0b0 /* BT_rst */&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &amp;gt;;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;#else&lt;BR /&gt; pinctrl_uart2dte: uart2dtegrp {&lt;BR /&gt; fsl,pins = &amp;lt;&lt;BR /&gt; MX6UL_PAD_UART2_TX_DATA__UART2_DTE_RX 0x1b0b1&lt;BR /&gt; MX6UL_PAD_UART2_RX_DATA__UART2_DTE_TX 0x1b0b1&lt;BR /&gt;MX6UL_PAD_UART2_CTS_B__UART2_DTE_RTS 0x1b0b1&lt;BR /&gt;MX6UL_PAD_UART2_RTS_B__UART2_DTE_CTS 0x1b0b1&lt;/P&gt;&lt;P&gt;&amp;gt;;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;&amp;nbsp;......&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;#if 1&lt;BR /&gt;&amp;amp;uart2 {&lt;BR /&gt; pinctrl-names = "default";&lt;BR /&gt; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_uart2&amp;gt;;//DCE&lt;BR /&gt;// pinctrl-0 = &amp;lt;&amp;amp;pinctrl_uart2dte&amp;gt;;//DTE&lt;BR /&gt; fsl,uart-has-rtscts;&lt;BR /&gt;// fsl,dce-mode;&lt;BR /&gt;// fsl,dte-mode;&lt;BR /&gt; /* for DTE mode, add below change */&lt;BR /&gt; /* fsl,dte-mode; */&lt;BR /&gt; /* pinctrl-0 = &amp;lt;&amp;amp;pinctrl_uart2dte&amp;gt;; */&lt;BR /&gt; status = "okay";&lt;BR /&gt;};&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. &amp;nbsp;I had configured the 4 pins to GPIO and test their&amp;nbsp;&lt;A class="" data-md="{&amp;quot;p&amp;quot;:&amp;quot;tran&amp;quot;}" href="https://fanyi.so.com/?src=onebox#electrical%20level" style="color: #333333; background-color: #ffffff;" target="_blank"&gt;electrical level&lt;/A&gt;, I confirm that the 4 pins is OK connect to CPU.&lt;/P&gt;&lt;P&gt;2. when I &amp;nbsp;use DCE mode and run a application about uart , the "UART2_CTS" is HIGN, "UART2_RTS" is LOW, "UART2_TX"&amp;amp; "UART2_RX" have no signal out in tthe oscilloscope.&lt;/P&gt;&lt;P&gt;3. But when I use DTE mode(the hardware is not change in the DCE mode),&amp;nbsp;&lt;SPAN&gt; the "UART2_CTS" is HIGN, "UART2_RTS" is LOW, &amp;nbsp;"UART2_RX" have signal out in the osccilloscope.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4. So I confusion when I use UART2 to communicaton to my BlueTooth module, Should I use the DTE mode and change the Hardware to the DTE mode??? Or what the exactly problem is?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Sep 2018 04:09:12 GMT</pubDate>
    <dc:creator>wuxiuxinxiuxin</dc:creator>
    <dc:date>2018-09-25T04:09:12Z</dc:date>
    <item>
      <title>IMX6ULL uart2 comunicate</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6ULL-uart2-comunicate/m-p/793510#M122918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;I meet some problem about Imx6ull uart2 comunicating problem. I connect "UART2_TX_DATA", &amp;nbsp;"UART2_RX_DATA", "UART2_RTS_B", "UART2_CTS_B" to a BlueTooth module.&lt;/P&gt;&lt;P&gt;Firstly, the schematic is as bellow:&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/69612i8F8488EE65CFBC0E/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;Secondly, the DTS configure is as bellow:&lt;/P&gt;&lt;P&gt;#if 1&lt;BR /&gt; /*For AP6236 BT*/&lt;BR /&gt; pinctrl_uart2: uart2grp {&lt;BR /&gt; fsl,pins = &amp;lt;&lt;BR /&gt; MX6UL_PAD_UART2_TX_DATA__UART2_DCE_TX 0x1b0b1&lt;BR /&gt; MX6UL_PAD_UART2_RX_DATA__UART2_DCE_RX 0x1b0b1&lt;BR /&gt; MX6UL_PAD_UART2_RTS_B__UART2_DCE_RTS 0x1b0b1&lt;BR /&gt; MX6UL_PAD_UART2_CTS_B__UART2_DCE_CTS 0x110b1&lt;/P&gt;&lt;P&gt;MX6ULL_PAD_SNVS_TAMPER2__GPIO5_IO02 0x1b0b0 /* BT_wake */&lt;BR /&gt; MX6ULL_PAD_SNVS_TAMPER3__GPIO5_IO03 0x1b0b0 /* BT_rst */&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &amp;gt;;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;#else&lt;BR /&gt; pinctrl_uart2dte: uart2dtegrp {&lt;BR /&gt; fsl,pins = &amp;lt;&lt;BR /&gt; MX6UL_PAD_UART2_TX_DATA__UART2_DTE_RX 0x1b0b1&lt;BR /&gt; MX6UL_PAD_UART2_RX_DATA__UART2_DTE_TX 0x1b0b1&lt;BR /&gt;MX6UL_PAD_UART2_CTS_B__UART2_DTE_RTS 0x1b0b1&lt;BR /&gt;MX6UL_PAD_UART2_RTS_B__UART2_DTE_CTS 0x1b0b1&lt;/P&gt;&lt;P&gt;&amp;gt;;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;&amp;nbsp;......&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;#if 1&lt;BR /&gt;&amp;amp;uart2 {&lt;BR /&gt; pinctrl-names = "default";&lt;BR /&gt; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_uart2&amp;gt;;//DCE&lt;BR /&gt;// pinctrl-0 = &amp;lt;&amp;amp;pinctrl_uart2dte&amp;gt;;//DTE&lt;BR /&gt; fsl,uart-has-rtscts;&lt;BR /&gt;// fsl,dce-mode;&lt;BR /&gt;// fsl,dte-mode;&lt;BR /&gt; /* for DTE mode, add below change */&lt;BR /&gt; /* fsl,dte-mode; */&lt;BR /&gt; /* pinctrl-0 = &amp;lt;&amp;amp;pinctrl_uart2dte&amp;gt;; */&lt;BR /&gt; status = "okay";&lt;BR /&gt;};&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. &amp;nbsp;I had configured the 4 pins to GPIO and test their&amp;nbsp;&lt;A class="" data-md="{&amp;quot;p&amp;quot;:&amp;quot;tran&amp;quot;}" href="https://fanyi.so.com/?src=onebox#electrical%20level" style="color: #333333; background-color: #ffffff;" target="_blank"&gt;electrical level&lt;/A&gt;, I confirm that the 4 pins is OK connect to CPU.&lt;/P&gt;&lt;P&gt;2. when I &amp;nbsp;use DCE mode and run a application about uart , the "UART2_CTS" is HIGN, "UART2_RTS" is LOW, "UART2_TX"&amp;amp; "UART2_RX" have no signal out in tthe oscilloscope.&lt;/P&gt;&lt;P&gt;3. But when I use DTE mode(the hardware is not change in the DCE mode),&amp;nbsp;&lt;SPAN&gt; the "UART2_CTS" is HIGN, "UART2_RTS" is LOW, &amp;nbsp;"UART2_RX" have signal out in the osccilloscope.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4. So I confusion when I use UART2 to communicaton to my BlueTooth module, Should I use the DTE mode and change the Hardware to the DTE mode??? Or what the exactly problem is?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2018 04:09:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6ULL-uart2-comunicate/m-p/793510#M122918</guid>
      <dc:creator>wuxiuxinxiuxin</dc:creator>
      <dc:date>2018-09-25T04:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6ULL uart2 comunicate</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6ULL-uart2-comunicate/m-p/793511#M122919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wuxiuxin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DTE&lt;/SPAN&gt; differs from DCE mode by direction of some signals, it is better&lt;/P&gt;&lt;P&gt;described in sect.Table 86. UART I/O Configuration vs. Mode i.MX6DQ Datasheet &lt;/P&gt;&lt;P&gt;&lt;A href="http://www.nxp.com/docs/en/data-sheet/IMX6DQCEC.pdf"&gt;http://www.nxp.com/docs/en/data-sheet/IMX6DQCEC.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can use mode which is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2018 23:35:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6ULL-uart2-comunicate/m-p/793511#M122919</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-09-25T23:35:15Z</dc:date>
    </item>
  </channel>
</rss>

