<?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>nRF51-DK OpenOCD GDB</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11742/nrf51-dk-openocd-gdb</link><description>Setup:
Ubuntu14.04
ARM gcc version 4.8.4 20140725
OpenOCD 0.9 
 OpenOCD:
openocd -f openocd/share/openocd/scripts/interface/jlink.cfg -c &amp;quot;transport select swd&amp;quot; -f openocd/share/openocd/scripts/target/nrf51.cfg 
 GDB:
arm-none-eabi-gdb -tui _build</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 05 Feb 2016 23:33:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11742/nrf51-dk-openocd-gdb" /><item><title>RE: nRF51-DK OpenOCD GDB</title><link>https://devzone.nordicsemi.com/thread/44413?ContentTypeID=1</link><pubDate>Fri, 05 Feb 2016 23:33:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b961e134-1a26-4df3-b9ec-528d9727a20b</guid><dc:creator>ypearson</dc:creator><description>&lt;p&gt;GDB appears to screw up softdevice calls.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51-DK OpenOCD GDB</title><link>https://devzone.nordicsemi.com/thread/44412?ContentTypeID=1</link><pubDate>Fri, 05 Feb 2016 01:06:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c34ad81b-cac8-4aca-977a-052892443ffd</guid><dc:creator>ypearson</dc:creator><description>&lt;p&gt;I found the fix, apparently doing multiple resets via GDB fixes it:&lt;/p&gt;
&lt;p&gt;target extended-remote :3333
monitor reset init
shell sleep 1
monitor reset init&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t do a &amp;#39;load&amp;#39; in GDB, I use the nrfjprog to program the softdevice + code&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>