<?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: Garbage on the MX51 uart</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Garbage-on-the-MX51-uart/m-p/263286#M26888</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Allen, please click Correct Answer if your question has been answered.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yixing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Apr 2013 07:21:20 GMT</pubDate>
    <dc:creator>YixingKong</dc:creator>
    <dc:date>2013-04-23T07:21:20Z</dc:date>
    <item>
      <title>Garbage on the MX51 uart</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Garbage-on-the-MX51-uart/m-p/263282#M26884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I have search and seen this topic brought up before, but have seen no solutions.&lt;/P&gt;&lt;P&gt;I am having trouble with the mxc_uart.c driver for linux.&amp;nbsp; u-Boot initializes the &lt;/P&gt;&lt;P&gt;uart properly, and the kernel's mxc_uart_early.c driver works fine, but when the console&lt;/P&gt;&lt;P&gt;is switched from the early driver to the "main" driver, the serial port just starts spitting out garbage.&amp;nbsp; Usually in the form of FF, but sometimes FE, ans sometimes just other junk. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I hold down the 'a' key, I will see 0x61 come back some of the time, but usually it's some garbage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried the "change the kernel to use pll3 instead of pll2" trick to no avail.&amp;nbsp; I have tried putting printK's to see what's going on, but as soon as the peripheral is reset in the driver code, I lose print ability, understandably.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have checked the output on a oscilliscope.&amp;nbsp; The timing seems to be correct for the garbage data that is coming out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where do I go from here?&amp;nbsp; I don't have JTAG, so I can't debug in that way.&amp;nbsp; I'm sort of at a loss.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;-Allen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2013 22:04:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Garbage-on-the-MX51-uart/m-p/263282#M26884</guid>
      <dc:creator>allenkll</dc:creator>
      <dc:date>2013-04-11T22:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Garbage on the MX51 uart</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Garbage-on-the-MX51-uart/m-p/263283#M26885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What BSP and board are you using?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Apr 2013 07:37:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Garbage-on-the-MX51-uart/m-p/263283#M26885</guid>
      <dc:creator>jimmychan</dc:creator>
      <dc:date>2013-04-19T07:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Garbage on the MX51 uart</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Garbage-on-the-MX51-uart/m-p/263284#M26886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jimmy,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thanks for replying.&amp;nbsp; I'm using linux-2.6.35.3-imx_10.11.01, and a custom board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-allen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Apr 2013 12:29:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Garbage-on-the-MX51-uart/m-p/263284#M26886</guid>
      <dc:creator>allenkll</dc:creator>
      <dc:date>2013-04-19T12:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: Garbage on the MX51 uart</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Garbage-on-the-MX51-uart/m-p/263285#M26887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,Allen,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Please don't use&amp;nbsp; BSP for i.mx51_bbg board directly, you can create one for your board accroding to schematic, just as you develope a new evk board based i.mx51, then recompile it .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Actually, Those &lt;A _jive_internal="true" href="https://community.nxp.com/message/323920#323920"&gt;Garbage&lt;/A&gt; you mentioned above is disorder characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Weidong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Apr 2013 05:45:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Garbage-on-the-MX51-uart/m-p/263285#M26887</guid>
      <dc:creator>weidong_sun</dc:creator>
      <dc:date>2013-04-20T05:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Garbage on the MX51 uart</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Garbage-on-the-MX51-uart/m-p/263286#M26888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Allen, please click Correct Answer if your question has been answered.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yixing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 07:21:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Garbage-on-the-MX51-uart/m-p/263286#M26888</guid>
      <dc:creator>YixingKong</dc:creator>
      <dc:date>2013-04-23T07:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: Garbage on the MX51 uart</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Garbage-on-the-MX51-uart/m-p/263287#M26889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Weidog,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I did not use the i.mx51_bbg board directly.&amp;nbsp; I did create a custom board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is meant by "disorder characters"&amp;nbsp; Can you please explain, or point me to a reference on what disorder characters are?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 15:14:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Garbage-on-the-MX51-uart/m-p/263287#M26889</guid>
      <dc:creator>allenkll</dc:creator>
      <dc:date>2013-04-23T15:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Garbage on the MX51 uart</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Garbage-on-the-MX51-uart/m-p/263288#M26890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yixing,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I will be happy to click correct answer when one is provided.&amp;nbsp; Thanks for the reminder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Allen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 15:15:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Garbage-on-the-MX51-uart/m-p/263288#M26890</guid>
      <dc:creator>allenkll</dc:creator>
      <dc:date>2013-04-23T15:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Garbage on the MX51 uart</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Garbage-on-the-MX51-uart/m-p/263289#M26891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Allen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you using the bootloader version provided by the BSP version you are using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I saw cases for mx51/mx53 that using a bootloader version that is different then the one provided in the BSP resulted in the garbage serial output as you mentioned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest you to try 2013.04 U-boot. I tested it here and I managed to boot mx51evk using 2.6.35 11.09 kernel and also a 3.9-rc7 kernel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are interested, meta-fsl-arm can generate a sdcard image for you with bootloader/kernel/rootfs so that you can quickly try to adapt it for your board. I also tested it and it is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which serial port do you use on your custom board? On mx51evk we use UART1 for the console.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabio Estevam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Apr 2013 16:31:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Garbage-on-the-MX51-uart/m-p/263289#M26891</guid>
      <dc:creator>fabio_estevam</dc:creator>
      <dc:date>2013-04-23T16:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Garbage on the MX51 uart</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Garbage-on-the-MX51-uart/m-p/263290#M26892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fabio,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Yes I am using the same version of bootloader and linux, although I cannot see what difference that would make.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not see the 2013.04 U-boot anywhere on the mx51 website.&amp;nbsp; The only thing it has is the 10_11 version, which appears to be the latest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I am using UART 1.&amp;nbsp; I will look into the meta-fsl-arm tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I think I had a bit of a breakthrough.&amp;nbsp; I was able to scrounge up a mx51 evk kit, and ran my bootloader and kernel on it and the serial worked!&amp;nbsp; Since the schematic for the custom board was lifted mainly from the dev board, with a few small changes, I think this is probably a driver issue.&amp;nbsp; Not a serial driver mind you, but some other driver stepping on the serial port.&amp;nbsp; Or perhaps a DMA issue, I'm not sure at this point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I think I'll close this discussion, as I do have something sort of working on the dev kit, so it's a matter of due diligence to disable and re-enable different features of the kernel until I see what breaks or fixes it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thanks all for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 12:52:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Garbage-on-the-MX51-uart/m-p/263290#M26892</guid>
      <dc:creator>allenkll</dc:creator>
      <dc:date>2013-04-24T12:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Garbage on the MX51 uart</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Garbage-on-the-MX51-uart/m-p/263291#M26893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found the answer.&amp;nbsp; It was the cable I was using to connect between the RS232 cable and the Boards 5 pin connector. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have never seen a hardware failure manifest itself in this way.&amp;nbsp; I believe the cts/rts pins may have been shorting together or to ground which was causing issues in the uart hardware/driver to go a little crazy.. Which I wouldn't have expected when I was not using hardware flow control.&amp;nbsp; I would have expected this to be ignored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either way.&amp;nbsp; I appreciate everyone's help and feel relieved that I can move on to the rest of the problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;-Allen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 16:08:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Garbage-on-the-MX51-uart/m-p/263291#M26893</guid>
      <dc:creator>allenkll</dc:creator>
      <dc:date>2013-04-26T16:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: Garbage on the MX51 uart</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Garbage-on-the-MX51-uart/m-p/1741254#M214184</link>
      <description>&lt;P&gt;Hi Allen,&lt;/P&gt;&lt;P&gt;I am also facing similar kind of issue with Advantech SOM 5722 which is using imx8mp.&lt;/P&gt;&lt;P&gt;I am trying to connect a ttl to usb , but getting the garbage data.&lt;/P&gt;&lt;P&gt;When i looked into data sheet of SOM 5722, i found that it is RS232 at UART.&lt;/P&gt;&lt;P&gt;I just want to know if you used any RS232 to USB convertor cable or anything else.&lt;/P&gt;&lt;P&gt;Please let me know ASAP.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 10:58:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Garbage-on-the-MX51-uart/m-p/1741254#M214184</guid>
      <dc:creator>Lucky2</dc:creator>
      <dc:date>2023-10-17T10:58:54Z</dc:date>
    </item>
  </channel>
</rss>

