<?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: UART Sending Extra 0x00 Bytes</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/UART-Sending-Extra-0x00-Bytes/m-p/980730#M145760</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you implying I need to add the marked and space parity bits in a kernel patch to get it working which will remove the extra 0x00 bytes that are being sent out?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't use parity bit currently when sending/receiving.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Feb 2020 05:44:07 GMT</pubDate>
    <dc:creator>neuro</dc:creator>
    <dc:date>2020-02-19T05:44:07Z</dc:date>
    <item>
      <title>UART Sending Extra 0x00 Bytes</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/UART-Sending-Extra-0x00-Bytes/m-p/980728#M145758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on a IMX6 Solo X chip with Linux and using 3 UARTS (RS485) to send/receive data from the serial ports interfacing with another board. I'm simply testing these ports with a simple C program utilizing Linux libraries (termios, read, write) by sending and receiving simple messages (e.g. ABCDEFGHIJ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm reading bytes from the external board fine, however, anytime i send bytes, the external board receives a large amount of 0x00 bytes that come after the bytes i sent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can I do to prevent these extra 0x00 bytes from being sent after my initial message? I preferably do not want to modify the external boards code to band aid this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been reading some other posts and it seems like it might be the DMA, however, I also was reading the uarts have to have DMA enabled. Is this true or can i disable DMA?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An example device tree node for a uart is setup as such:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;uart3: serial@021ec000 {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;compatible = "fsl,imx6sx-uart",&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "fsl,imx6q-uart", "fsl,imx21-uart";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;reg = &amp;lt;0x021ec000 0x4000&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;interrupts = &amp;lt;GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;clocks = &amp;lt;&amp;amp;clks IMX6SX_CLK_UART_IPG&amp;gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;lt;&amp;amp;clks IMX6SX_CLK_UART_SERIAL&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;clock-names = "ipg", "per";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;dmas = &amp;lt;&amp;amp;sdma 29 4 0&amp;gt;, &amp;lt;&amp;amp;sdma 30 4 0&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;dma-names = "rx", "tx";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;status = "disabled";&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pinctrl_uart3: uart3grp {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;fsl,pins = &amp;lt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;MX6SX_PAD_NAND_DATA04__GPIO4_IO_8&amp;nbsp;&amp;nbsp; &amp;nbsp;0x1b0b1&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;MX6SX_PAD_NAND_DATA06__UART3_RX&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;0x1b0b1&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;MX6SX_PAD_NAND_DATA07__UART3_TX&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;0x1b0b1&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;gt;;&lt;BR /&gt;&amp;nbsp;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;uart3 {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;pinctrl-names = "default";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_uart3&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;dma-names = "","tx";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;status = "okay";&lt;BR /&gt;};&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2020 06:36:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/UART-Sending-Extra-0x00-Bytes/m-p/980728#M145758</guid>
      <dc:creator>neuro</dc:creator>
      <dc:date>2020-02-18T06:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: UART Sending Extra 0x00 Bytes</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/UART-Sending-Extra-0x00-Bytes/m-p/980729#M145759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nxp does not officially supports rs485 in its bsps, however one can look at below&lt;/P&gt;&lt;P&gt;link with good overview of possible issues:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/499630"&gt;https://community.nxp.com/thread/499630&lt;/A&gt;&amp;nbsp;&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>Wed, 19 Feb 2020 04:59:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/UART-Sending-Extra-0x00-Bytes/m-p/980729#M145759</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-02-19T04:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: UART Sending Extra 0x00 Bytes</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/UART-Sending-Extra-0x00-Bytes/m-p/980730#M145760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you implying I need to add the marked and space parity bits in a kernel patch to get it working which will remove the extra 0x00 bytes that are being sent out?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't use parity bit currently when sending/receiving.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2020 05:44:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/UART-Sending-Extra-0x00-Bytes/m-p/980730#M145760</guid>
      <dc:creator>neuro</dc:creator>
      <dc:date>2020-02-19T05:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: UART Sending Extra 0x00 Bytes</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/UART-Sending-Extra-0x00-Bytes/m-p/980731#M145761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can try these patches.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2020 10:52:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/UART-Sending-Extra-0x00-Bytes/m-p/980731#M145761</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-02-19T10:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: UART Sending Extra 0x00 Bytes</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/UART-Sending-Extra-0x00-Bytes/m-p/980732#M145762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This happened to be a compiler issue. I was recompiled pre-built application and caused the issue. If I left the pre-built application alone and only recompiled certain files, it worked fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This issue can be closed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2020 00:23:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/UART-Sending-Extra-0x00-Bytes/m-p/980732#M145762</guid>
      <dc:creator>neuro</dc:creator>
      <dc:date>2020-03-17T00:23:06Z</dc:date>
    </item>
  </channel>
</rss>

