<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>[&amp;quot;Error while launching command: gdb --version&amp;quot;]. Examples of nRF52.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14880/error-while-launching-command-gdb---version-examples-of-nrf52</link><description>Hi there, 
 Thanks to the great tutorial from Vidar, I can play with the blinky example in Eclipse on Mac. Now I want to try the other examples, and encountered the &amp;quot;Error while launching command: gdb --version&amp;quot;. 
 With the enlightenings from the discussion</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 15 Jul 2016 09:16:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14880/error-while-launching-command-gdb---version-examples-of-nrf52" /><item><title>RE: ["Error while launching command: gdb --version"]. Examples of nRF52.</title><link>https://devzone.nordicsemi.com/thread/56828?ContentTypeID=1</link><pubDate>Fri, 15 Jul 2016 09:16:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8760d05-8bf2-4439-bfd0-10b15fb6aa0c</guid><dc:creator>uly</dc:creator><description>&lt;p&gt;@Vidar Berg, After this example, I encountered several more times when I debug the examples in Eclipse. My &amp;#39;standard&amp;#39; workaround is, property-&amp;gt;c/c++ build-&amp;gt;Build variables, then add the PATH (the table is empty when I opened it for the first time).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ["Error while launching command: gdb --version"]. Examples of nRF52.</title><link>https://devzone.nordicsemi.com/thread/56827?ContentTypeID=1</link><pubDate>Tue, 05 Jul 2016 09:02:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e1214fa-4f27-423b-a978-8f5776528abd</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for the update. I&amp;#39;ll try to look into this to see why the variable is not always being set and update the tutorial when time permits.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ["Error while launching command: gdb --version"]. Examples of nRF52.</title><link>https://devzone.nordicsemi.com/thread/56826?ContentTypeID=1</link><pubDate>Tue, 05 Jul 2016 08:58:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:170e59a5-8122-4d86-b4e9-4056c31f5f87</guid><dc:creator>uly</dc:creator><description>&lt;p&gt;Hi Vidar,
Before reading your answer, I have made been able to debug. In the GDB client setup, Executable users ${cross_prefix}gdb${cross_suffix}. I changed it to arm-none-eabi-gdb, it also works.&lt;/p&gt;
&lt;p&gt;cheers.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ["Error while launching command: gdb --version"]. Examples of nRF52.</title><link>https://devzone.nordicsemi.com/thread/56825?ContentTypeID=1</link><pubDate>Tue, 05 Jul 2016 07:57:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7a6d5db-0f72-4248-9c11-f1a5805c06c0</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t figured out why yet, but for some reason the ${cross_prefix} is not always being set to arm-none-eabi (used in the executable field of the GDB Client setup). It&amp;#39;s probably related to the project setup. The result is that the debug launcher calls gdb --version while it should call arm-none-eabi-gdb --version.&lt;/p&gt;
&lt;p&gt;Fix:&lt;/p&gt;
&lt;p&gt;Change ${cross_prefix}gdb${cross_suffix} to arm-none-eabi-gdb&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ["Error while launching command: gdb --version"]. Examples of nRF52.</title><link>https://devzone.nordicsemi.com/thread/56822?ContentTypeID=1</link><pubDate>Tue, 05 Jul 2016 07:42:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5c2a0d6-3069-414e-9ea2-d6eadcb6e98b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Uly: Segger GDB server needed for debugging. When you install Segger software pack, GDB will be installed by default.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ["Error while launching command: gdb --version"]. Examples of nRF52.</title><link>https://devzone.nordicsemi.com/thread/56824?ContentTypeID=1</link><pubDate>Mon, 04 Jul 2016 19:47:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3cfac473-8856-45de-972b-b2436e1717d6</guid><dc:creator>uly</dc:creator><description>&lt;p&gt;I just make the debugging on the examples run, without knowing what has happened inbetween, I will update when I figure it out!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ["Error while launching command: gdb --version"]. Examples of nRF52.</title><link>https://devzone.nordicsemi.com/thread/56823?ContentTypeID=1</link><pubDate>Mon, 04 Jul 2016 19:37:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72ba9434-92bf-4d4d-a9df-c30ea0d0c5b6</guid><dc:creator>uly</dc:creator><description>&lt;p&gt;Hi Hung, after unchecking &amp;quot;start the Jlink GDB server locally&amp;quot;, I still can not debug. The error says&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;gt; &amp;quot;Error in final launch sequence Failed
&amp;gt; to execute MI command:
&amp;gt; -target-select remote localhost:2331 Error message from debugger back end:
&amp;gt; localhost:2331: Operation timed out.
&amp;gt; Failed to execute MI command:
&amp;gt; -target-select remote localhost:2331 Error message from debugger back end:
&amp;gt; localhost:2331: Operation timed out.&amp;quot;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I don&amp;#39;t install gdb on my mac, is dgb also necessary expect for the Jlink GDB? Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ["Error while launching command: gdb --version"]. Examples of nRF52.</title><link>https://devzone.nordicsemi.com/thread/56821?ContentTypeID=1</link><pubDate>Mon, 04 Jul 2016 11:12:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ecc8b6da-c7d6-4034-9fe9-4da3bfcc587f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Uly,&lt;/p&gt;
&lt;p&gt;I would suggest to test first with unchecking the &amp;quot;Start the Jlink GDB server locally &amp;quot;. Then you can try to start the GDB server manually and see if you can start debugging.&lt;/p&gt;
&lt;p&gt;If you can, then it must be something wrong with the GDB path configuration in your Eclipse.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>