<?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>GDB fails when developing without soft device.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46204/gdb-fails-when-developing-without-soft-device</link><description>I&amp;#39;ve been developing firmware for the nrf52840 for a few months using armgcc+openocd+arm-none-eabi-gcc working successfully. I recently upgraded my ubuntu version (18.04) and now find that I cannot debug my code using gdb anymore. I use the following</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 30 Apr 2019 12:10:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46204/gdb-fails-when-developing-without-soft-device" /><item><title>RE: GDB fails when developing without soft device.</title><link>https://devzone.nordicsemi.com/thread/184558?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2019 12:10:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd063cdc-e499-4566-ad68-909a260922c4</guid><dc:creator>TLloydUom</dc:creator><description>&lt;p&gt;I forgot to reply to this as the project I&amp;#39;m working on is time consuming, but I found that the JLink debugger was satisfactory in continuing my development of software for the NRF52840.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GDB fails when developing without soft device.</title><link>https://devzone.nordicsemi.com/thread/182473?ContentTypeID=1</link><pubDate>Tue, 16 Apr 2019 21:38:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5fc3404d-c4f7-4818-baed-e63c85a188cf</guid><dc:creator>wpaul</dc:creator><description>&lt;p&gt;When you first run OpenOCD and it connects to the target, it prints a bunch of information. Can you please show us that? NOTE: this means that you show us everything from the point where you run the &amp;quot;openocd&amp;quot; command. I&amp;#39;m particularly interested in known what version you have.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been using the latest version of OpenOCD from the official git repo along with GCC 8.3 and GDB 8.2 on a FreeBSD host system and it works fine for me.&lt;/p&gt;
&lt;p&gt;-Bill&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GDB fails when developing without soft device.</title><link>https://devzone.nordicsemi.com/thread/182466?ContentTypeID=1</link><pubDate>Tue, 16 Apr 2019 19:04:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd5d573d-8750-4d74-9e3d-653df4c89553</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Try this openocd target nrf52.cfg from&amp;nbsp;&lt;a href="https://github.com/I-SYST/EHAL/tree/master/ARM/Nordic/nRF52/src"&gt;https://github.com/I-SYST/EHAL/tree/master/ARM/Nordic/nRF52/src&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It is known to work on with all version of GCC from 4.9 to 8 under Windows/Linux/OSX&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GDB fails when developing without soft device.</title><link>https://devzone.nordicsemi.com/thread/182370?ContentTypeID=1</link><pubDate>Tue, 16 Apr 2019 11:57:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f83318c-847f-4636-821c-29c48b4beb64</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,maybe there is something with the &amp;quot;Softdevice&amp;quot; examples that trigger a bug in GDB. We recommend using the toolchain version listed in the SDK release notes. Did you download the toolchain from&amp;nbsp;&lt;a href="https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm"&gt;https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm&lt;/a&gt;?&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GDB fails when developing without soft device.</title><link>https://devzone.nordicsemi.com/thread/182366?ContentTypeID=1</link><pubDate>Tue, 16 Apr 2019 11:49:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64e19126-641e-44a9-8d26-fb6218ab1aa6</guid><dc:creator>TLloydUom</dc:creator><description>&lt;p&gt;HI Vidar.&amp;nbsp; I started using the latest GCC toolchain and then back dated to the one suggested in the nrfconnect desktop app.&amp;nbsp; Further experimentation found that I could debug devices that had a softdevices successfully using openocd, but not those that didn&amp;#39;t use the softdevice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GDB fails when developing without soft device.</title><link>https://devzone.nordicsemi.com/thread/182363?ContentTypeID=1</link><pubDate>Tue, 16 Apr 2019 11:46:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d04ae09-57da-4243-8a7f-df1cb365748e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Glad you found a workaround. I&amp;#39;m don&amp;#39;t have much experience with openOCD unfortunately. But it&amp;#39;s a bit strange that is stopped working after&amp;nbsp;updating your Linux distribution. Are you using the same version of the GCC toolchain?&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GDB fails when developing without soft device.</title><link>https://devzone.nordicsemi.com/thread/182069?ContentTypeID=1</link><pubDate>Mon, 15 Apr 2019 10:50:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6439f42-fe54-4be7-8189-7a2d6f088b0a</guid><dc:creator>TLloydUom</dc:creator><description>&lt;p&gt;I tried using the JlinkGdb server instead using:&lt;/p&gt;
&lt;p&gt;JLinkGDBServer -if swd -device nrf52&lt;/p&gt;
&lt;p&gt;And it seems to work, but would welcome any suggestions as to why trying to debug with openocd gives the error?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>