<?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: Does UART in RS485 mode support only 9 Bit mode for i.MX6 ?</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Does-UART-in-RS485-mode-support-only-9-Bit-mode-for-i-MX6/m-p/699709#M108657</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Fabio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the quick replay. We looked again on the schematics of the eval board and realized that the CTS pin is not connected and a 0 OHM resistor needs to placed on the board. Now it seems to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For completes here is the pincrtl you asked for. This is from 4.16 kernel and not altered by us.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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_UART3_RX_DATA__UART2_DCE_RTS 0x1b0b1&lt;BR /&gt; MX6UL_PAD_UART3_TX_DATA__UART2_DCE_CTS 0x1b0b1&lt;BR /&gt; &amp;gt;;&lt;BR /&gt; };&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Apr 2018 13:50:53 GMT</pubDate>
    <dc:creator>peterhasse</dc:creator>
    <dc:date>2018-04-05T13:50:53Z</dc:date>
    <item>
      <title>Does UART in RS485 mode support only 9 Bit mode for i.MX6 ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Does-UART-in-RS485-mode-support-only-9-Bit-mode-for-i-MX6/m-p/699703#M108651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;We would like to use UART interface in conjunction with CTS# (for automatic direction control) of i.MX6 processor for a half duplex RS485 bus implementation.&lt;BR /&gt;Our RS485 transceiver has active high driver enable (DE) and active low receive enable (RE). My questions are:&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Does the default functioning of CTS# be applicable here as well (with UART in RS485 mode) and matches with the above provided direction control requirements (CTS# normally low-&amp;nbsp;transceiver receives data and CTS# becomes high&amp;nbsp;when data is written into the appropriate UART register and transceiver transmits it)?&lt;/LI&gt;&lt;LI&gt;Our project is a design improvement over the earlier Atmel MPU based design and it used 8 bit RS-485 mode with built in direction control. We want to maintain the compatibility with the existing subsystems. Is there an option to use 8 bit RS-485 mode in i.MX6ULL processor, still using built in transceiver direction control&amp;nbsp;(CTS#)?&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Abin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2017 14:02:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Does-UART-in-RS485-mode-support-only-9-Bit-mode-for-i-MX6/m-p/699703#M108651</guid>
      <dc:creator>abin444</dc:creator>
      <dc:date>2017-09-11T14:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Does UART in RS485 mode support only 9 Bit mode for i.MX6 ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Does-UART-in-RS485-mode-support-only-9-Bit-mode-for-i-MX6/m-p/699704#M108652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abin,&lt;/P&gt;&lt;P&gt;You should take a look at the following Community thread:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/312742"&gt;https://community.nxp.com/thread/312742&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope this will be useful for you.&lt;BR /&gt;Best regards!&lt;BR /&gt;/Carlos&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>Mon, 18 Sep 2017 16:45:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Does-UART-in-RS485-mode-support-only-9-Bit-mode-for-i-MX6/m-p/699704#M108652</guid>
      <dc:creator>CarlosCasillas</dc:creator>
      <dc:date>2017-09-18T16:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: Does UART in RS485 mode support only 9 Bit mode for i.MX6 ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Does-UART-in-RS485-mode-support-only-9-Bit-mode-for-i-MX6/m-p/699705#M108653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tested rs485 on a custom board recently. I have made some fixes for the imx UART operation that are not present in NXP 4.1 kernel, so I would suggest you to use a recent kernel such as 4.13.2 for rs485 evaluation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There have been some recent fixes on rs485/DMA operation on mx6q.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2017 21:30:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Does-UART-in-RS485-mode-support-only-9-Bit-mode-for-i-MX6/m-p/699705#M108653</guid>
      <dc:creator>fabio_estevam</dc:creator>
      <dc:date>2017-09-18T21:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Does UART in RS485 mode support only 9 Bit mode for i.MX6 ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Does-UART-in-RS485-mode-support-only-9-Bit-mode-for-i-MX6/m-p/699706#M108654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/FabioEstevam"&gt;FabioEstevam&lt;/A&gt;‌ , I'm running an 4.16 kernel on the imx 6 UUL eval board with im6ul SOM.&lt;/P&gt;&lt;P&gt;I altered the DTS file to make UART2 an RS485 interface&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;uart2 {&lt;BR /&gt; pinctrl-names = "default";&lt;BR /&gt; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_uart2&amp;gt;;&lt;BR /&gt; uart-has-rtscts;&lt;BR /&gt; status = "okay";&lt;BR /&gt; linux,rs485-enabled-at-boot-time;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which seems to have the desired&amp;nbsp;result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cat /proc/tty/driver/IMX-uart &lt;BR /&gt;serinfo:1.0 driver revision:&lt;BR /&gt;0: uart:IMX mmio:0x02020000 irq:19 tx:5119 rx:0 RTS|DTR|DSR|CD&lt;BR /&gt;1: uart:IMX mmio:0x021E8000 irq:58 tx:95 rx:0 DTR|DSR|CD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i can send data from the IMX board but cant receive anything as you can see by the rx counter.&lt;/P&gt;&lt;P&gt;Also looking with an logic analyzer at the RTS / CTS pins show that they don't change and are always low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are these patches you a mentioned in the mainline kernel ? Any hint what else needs to be done?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 12:27:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Does-UART-in-RS485-mode-support-only-9-Bit-mode-for-i-MX6/m-p/699706#M108654</guid>
      <dc:creator>peterhasse</dc:creator>
      <dc:date>2018-04-05T12:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Does UART in RS485 mode support only 9 Bit mode for i.MX6 ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Does-UART-in-RS485-mode-support-only-9-Bit-mode-for-i-MX6/m-p/699707#M108655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you have defined in&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;pinctrl_uart2?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Also, does your UART2 CTS pin connect to the RS485 transceiver enable pin?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Kernel 4.16 should have RS485 well supported on i.MX6. Unfortunately I don't have access to a custom i.MX6 board with RS485 support anymore to try it myself.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Fabio Estevam&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 13:18:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Does-UART-in-RS485-mode-support-only-9-Bit-mode-for-i-MX6/m-p/699707#M108655</guid>
      <dc:creator>fabio_estevam</dc:creator>
      <dc:date>2018-04-05T13:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: Does UART in RS485 mode support only 9 Bit mode for i.MX6 ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Does-UART-in-RS485-mode-support-only-9-Bit-mode-for-i-MX6/m-p/699708#M108656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, make sure in userspace you set the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE style="color: #000000;"&gt;/* enable RS485 mode: */
rs485conf.flags |= SER_RS485_ENABLED;

/* set logical level for RTS pin equal to 1 when sending: */
rs485conf.flags |= SER_RS485_RTS_ON_SEND;

/* set logical level for RTS pin equal to 0 after sending: */
rs485conf.flags &amp;amp;= ~(SER_RS485_RTS_AFTER_SEND);&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;The first one is probably not needed as you pass linux,rs485-enabled-at-boot-time.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 13:20:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Does-UART-in-RS485-mode-support-only-9-Bit-mode-for-i-MX6/m-p/699708#M108656</guid>
      <dc:creator>fabio_estevam</dc:creator>
      <dc:date>2018-04-05T13:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: Does UART in RS485 mode support only 9 Bit mode for i.MX6 ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Does-UART-in-RS485-mode-support-only-9-Bit-mode-for-i-MX6/m-p/699709#M108657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Fabio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the quick replay. We looked again on the schematics of the eval board and realized that the CTS pin is not connected and a 0 OHM resistor needs to placed on the board. Now it seems to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For completes here is the pincrtl you asked for. This is from 4.16 kernel and not altered by us.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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_UART3_RX_DATA__UART2_DCE_RTS 0x1b0b1&lt;BR /&gt; MX6UL_PAD_UART3_TX_DATA__UART2_DCE_CTS 0x1b0b1&lt;BR /&gt; &amp;gt;;&lt;BR /&gt; };&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 13:50:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Does-UART-in-RS485-mode-support-only-9-Bit-mode-for-i-MX6/m-p/699709#M108657</guid>
      <dc:creator>peterhasse</dc:creator>
      <dc:date>2018-04-05T13:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Does UART in RS485 mode support only 9 Bit mode for i.MX6 ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Does-UART-in-RS485-mode-support-only-9-Bit-mode-for-i-MX6/m-p/699710#M108658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Glad to know it is working fine :-)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 17:18:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Does-UART-in-RS485-mode-support-only-9-Bit-mode-for-i-MX6/m-p/699710#M108658</guid>
      <dc:creator>fabio_estevam</dc:creator>
      <dc:date>2018-04-05T17:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: Does UART in RS485 mode support only 9 Bit mode for i.MX6 ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Does-UART-in-RS485-mode-support-only-9-Bit-mode-for-i-MX6/m-p/699711#M108659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Our local service told us: ALL imx6 reference boards not support RS485. so, it's not tested, not validated in the standard BSP. And, imx8 too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So now, it's clear that,&amp;nbsp;they don't want to &lt;A href="https://en.wikipedia.org/wiki/Eating_your_own_dog_food"&gt;eat their own dog food&lt;/A&gt;. we should do our own jobs&amp;nbsp;individually. And,&amp;nbsp;get along with old kernel, because gpu driver maybe not built for new kernel like 4.13.2 or 4.16 and so on.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2018 07:03:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Does-UART-in-RS485-mode-support-only-9-Bit-mode-for-i-MX6/m-p/699711#M108659</guid>
      <dc:creator>csoapy</dc:creator>
      <dc:date>2018-07-24T07:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Does UART in RS485 mode support only 9 Bit mode for i.MX6 ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Does-UART-in-RS485-mode-support-only-9-Bit-mode-for-i-MX6/m-p/1266115#M172998</link>
      <description>&lt;P&gt;Looking at the manual (page 5029 i.MX 6Dual/6Quad Applications Processor Reference Manual, Rev. 6, 05/2020) I am not sure if the CTS_B pin is active high or active low. Is a low on the CTS_B supposed to enable the buffer?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 20:28:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Does-UART-in-RS485-mode-support-only-9-Bit-mode-for-i-MX6/m-p/1266115#M172998</guid>
      <dc:creator>kghamilton</dc:creator>
      <dc:date>2021-04-21T20:28:28Z</dc:date>
    </item>
  </channel>
</rss>

