<?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: How to debug a program via serial port?</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-debug-a-program-via-serial-port/m-p/559605#M86875</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I will check the links.&lt;/P&gt;&lt;P&gt;And I have a newer version of gdb (7.7) &amp;nbsp;the serial is not broken in it.&lt;/P&gt;&lt;P&gt;However, I don't have ttyS0 in dev. Actually, I don't have any ttyS* in dev. I only have tty[num] (for example tty0). Does that say anything?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Aug 2016 05:01:03 GMT</pubDate>
    <dc:creator>alaam</dc:creator>
    <dc:date>2016-08-29T05:01:03Z</dc:date>
    <item>
      <title>How to debug a program via serial port?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-debug-a-program-via-serial-port/m-p/559603#M86873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to debug an app sitting on my IMX6 board which is connected to PC&amp;nbsp;by serial port, using gdb and gdbserver like described &lt;A href="http://www.nxp.com/files/32bit/doc/app_note/AN4553.pdf"&gt;here &lt;/A&gt;and &lt;A href="http://stackoverflow.com/a/13275882/900394"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I connect to the board by putty and run the following:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;gdbserver --multi :2345&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;And I get:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Listening on port 2345&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Then I run the following in Windows cmd (on the PC that the board is connected to via serial port):&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;arm-linux-gnueabihf-gdb&lt;/P&gt;&lt;P&gt;(gdb) target extended :2345&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;And after a few seconds, I get:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;:2345: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I also tried&amp;nbsp;&lt;STRONG&gt;COM17:2345&lt;/STRONG&gt; instead of just&amp;nbsp;&lt;STRONG&gt;:2345&lt;/STRONG&gt; and I got:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;COM17:2345: No such file or directory.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;(&lt;STRONG&gt;COM17&lt;/STRONG&gt; is the serial port I'm connected to as it appears in Device Manager)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2016 10:55:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-debug-a-program-via-serial-port/m-p/559603#M86873</guid>
      <dc:creator>alaam</dc:creator>
      <dc:date>2016-08-25T10:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a program via serial port?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-debug-a-program-via-serial-port/m-p/559604#M86874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alaa&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;seems it could be : gdbserver /dev/ttyS0 as described on&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fftp.gnu.org%2Fold-gnu%2FManuals%2Fgdb-5.1.1%2Fhtml_node%2Fgdb_130.html" rel="nofollow" target="_blank"&gt;https://ftp.gnu.org/old-gnu/Manuals/gdb-5.1.1/html_node/gdb_130.html&lt;/A&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Finfocenter.arm.com%2Fhelp%2Findex.jsp%3Ftopic%3D%2Fcom.arm.doc.dai0201a%2Findex.html" rel="nofollow" target="_blank"&gt;http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dai0201a/index.html&lt;/A&gt;&lt;BR /&gt;however may be recommended to post it on GDB mailing list &lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fsourceware.org%2Fgdb%2F" rel="nofollow" target="_blank"&gt;https://sourceware.org/gdb/&lt;/A&gt;&lt;BR /&gt;as on some gdb versions serial was broken as for example reported on&lt;BR /&gt;&lt;A href="https://sourceware.org/ml/gdb/2007-11/msg00006.html"&gt;https://sourceware.org/ml/gdb/2007-11/msg00006.html&lt;/A&gt;&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>Sun, 28 Aug 2016 23:25:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-debug-a-program-via-serial-port/m-p/559604#M86874</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2016-08-28T23:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a program via serial port?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-debug-a-program-via-serial-port/m-p/559605#M86875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I will check the links.&lt;/P&gt;&lt;P&gt;And I have a newer version of gdb (7.7) &amp;nbsp;the serial is not broken in it.&lt;/P&gt;&lt;P&gt;However, I don't have ttyS0 in dev. Actually, I don't have any ttyS* in dev. I only have tty[num] (for example tty0). Does that say anything?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 05:01:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-debug-a-program-via-serial-port/m-p/559605#M86875</guid>
      <dc:creator>alaam</dc:creator>
      <dc:date>2016-08-29T05:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a program via serial port?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-debug-a-program-via-serial-port/m-p/559606#M86876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was doing it wrong.&lt;BR /&gt;Now I'm doing the following on the target system:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;gdbserver /dev/ttymxc0 ./test/main&lt;BR /&gt;Process ./test/main created; pid = 253&lt;BR /&gt;Remote debugging using /dev/ttymxc0&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the following on the host system:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;gdb path/on/host/main --baud 115200&lt;BR /&gt;(gdb) target remote&amp;nbsp;COM15&lt;BR /&gt;COM15: No such file or directory.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;(COM15 is the serial port name on the host system)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why am I getting "No such file or directory"?&lt;BR /&gt;Could it be that something's wrong in the board?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 11:23:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-debug-a-program-via-serial-port/m-p/559606#M86876</guid>
      <dc:creator>alaam</dc:creator>
      <dc:date>2016-08-29T11:23:31Z</dc:date>
    </item>
  </channel>
</rss>

