<?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 + softdevice ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11757/gdb-softdevice</link><description>Can you use GDB for your app code if soft device was merged in the final hex?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Feb 2016 14:10:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11757/gdb-softdevice" /><item><title>RE: GDB + softdevice ?</title><link>https://devzone.nordicsemi.com/thread/44466?ContentTypeID=1</link><pubDate>Mon, 08 Feb 2016 14:10:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56030529-5d22-4823-ba92-2de97dc2e7a5</guid><dc:creator>&amp;#216;yvind Karlsen</dc:creator><description>&lt;p&gt;You can refer to &lt;a href="https://devzone.nordicsemi.com/question/1489/can-i-debug-ble-program/#reply-1504"&gt;this answer&lt;/a&gt; for more info.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GDB + softdevice ?</title><link>https://devzone.nordicsemi.com/thread/44465?ContentTypeID=1</link><pubDate>Mon, 08 Feb 2016 13:35:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:138ce83b-3ca9-455c-9c81-2cf8879057a0</guid><dc:creator>ypearson</dc:creator><description>&lt;p&gt;This is exactly the type of answer I was looking for. Thank you!
There any documentation discussing this ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GDB + softdevice ?</title><link>https://devzone.nordicsemi.com/thread/44464?ContentTypeID=1</link><pubDate>Mon, 08 Feb 2016 08:00:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a32460d5-5b50-4c38-9b4c-827240768039</guid><dc:creator>&amp;#216;yvind Karlsen</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Because of how the SoftDevice works you are not able to debug it by stepping the code. This is because it will report a fault upon failing timing checks. These timing checks are critical in order to be able to operate a BLE connection.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GDB + softdevice ?</title><link>https://devzone.nordicsemi.com/thread/44458?ContentTypeID=1</link><pubDate>Sun, 07 Feb 2016 23:57:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0d56c97-452f-4361-8fe5-91bfe02adf4b</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;In general you can&amp;#39;t single-step through softdevice calls, or break while the softdevice is running, with any debugger because the softdevice has timing requirements which single stepping breaks.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s a recent blog about monitor mode debugging which attempts to work around this&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/blogs/829/segger-embedded-studio-part-2-monitor-mode-debuggi/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;but it&amp;#39;s an advanced technique. This all has nothing to do with GDB.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GDB + softdevice ?</title><link>https://devzone.nordicsemi.com/thread/44460?ContentTypeID=1</link><pubDate>Sun, 07 Feb 2016 19:10:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67749d48-0c4e-4304-a53b-bbeff9ef5517</guid><dc:creator>ypearson</dc:creator><description>&lt;p&gt;GDB seems to reset the chip on a SVCALL. I step through code, but resets up calling a SVCALL.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GDB + softdevice ?</title><link>https://devzone.nordicsemi.com/thread/44463?ContentTypeID=1</link><pubDate>Sun, 07 Feb 2016 19:08:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e466360c-6bb4-4499-b875-8fad7a022977</guid><dc:creator>ypearson</dc:creator><description>&lt;p&gt;Sorry, I wasn&amp;#39;t clear.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using GCC+GDB+OpenOCD to step through code, and it appears if GDB steps through a SVCALL the microcontroller resets but if I run the example code without using GDB the code works fine.&lt;/p&gt;
&lt;p&gt;Were you successful in using GDB with softdevice ? If so how did you mange that?&lt;/p&gt;
&lt;p&gt;To program the micro I would use nrfjprog.&lt;/p&gt;
&lt;p&gt;thanks!&lt;/p&gt;
&lt;p&gt;Hi,
Because of how the SoftDevice works you are not able to debug it by stepping the code. This is because it will report a fault upon failing timing checks. These timing checks are critical in order to be able to operate a BLE connection.
Best regards,
Øyvind
Øyvind Karlsen (5 hours ago)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GDB + softdevice ?</title><link>https://devzone.nordicsemi.com/thread/44459?ContentTypeID=1</link><pubDate>Sun, 07 Feb 2016 12:52:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:220a2cdb-f79b-40d3-bdb8-04b930e6ed6b</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;GDB doesn&amp;#39;t read the hex file, it&amp;#39;s only used for uploading the code to the chip, so if you have GDB issues, it has nothing to do with merged hex files.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GDB + softdevice ?</title><link>https://devzone.nordicsemi.com/thread/44462?ContentTypeID=1</link><pubDate>Sun, 07 Feb 2016 12:27:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70184d09-be71-404b-9296-a6517fa2922d</guid><dc:creator>Wojtek</dc:creator><description>&lt;p&gt;If by GDB you mean compiling on GCC, it does not interfere with softdevice. You just separately flash app compiled in GCC and funcions calling to softdevice communicate with it by SVCALLs. Just keep memory layout as specified in softdevice specification.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GDB + softdevice ?</title><link>https://devzone.nordicsemi.com/thread/44461?ContentTypeID=1</link><pubDate>Fri, 05 Feb 2016 22:05:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7001f184-eba5-4265-8274-02784e2649fc</guid><dc:creator>ypearson</dc:creator><description>&lt;p&gt;It appears GDB could interfere with the programmed softdevice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>