<?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/"><channel><title>Monitor Mode Debugging with J-Link and GDB/Eclipse</title><link>/nordic/nordic-blog/b/blog/posts/monitor-mode-debugging-with-j-link-and-gdbeclipse</link><description>The biggest pain point when debugging an application on the nRF51 series is the inability to set breakpoints while the SoftDevice is active without triggering an assert . Although a workaround exists that allows the debugging process to limp along for</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><item><title>RE: Monitor Mode Debugging with J-Link and GDB/Eclipse</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/monitor-mode-debugging-with-j-link-and-gdbeclipse</link><pubDate>Fri, 14 Dec 2018 09:56:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f5e09d2-4ba0-44d5-afca-dfa1d7a4c191</guid><dc:creator>Srinivas</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;i was all the setting give in the tutorial, still i am getting new problem like after break point now the code is moving Hardfault handler in startup file . Can any one help on this&lt;/p&gt;&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=1006&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Monitor Mode Debugging with J-Link and GDB/Eclipse</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/monitor-mode-debugging-with-j-link-and-gdbeclipse</link><pubDate>Wed, 12 Sep 2018 17:07:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f5e09d2-4ba0-44d5-afca-dfa1d7a4c191</guid><dc:creator>awneil</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;&lt;em&gt;&amp;quot;&lt;strong&gt;NOTE:&lt;/strong&gt;&amp;nbsp;The J-Link OB that is included on Nordic development kits does not include a license for monitor mode debugging. On Windows machines, the J-Link driver will allow evaluation of the monitor mode debugging feature if the user accepts a license pop-up.&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Like this:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="/resized-image/__size/320x240/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-1f5e09d2-4ba0-44d5-afca-dfa1d7a4c191/pastedimage1536772020846v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=1006&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Monitor Mode Debugging with J-Link and GDB/Eclipse</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/monitor-mode-debugging-with-j-link-and-gdbeclipse</link><pubDate>Tue, 10 Apr 2018 14:03:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f5e09d2-4ba0-44d5-afca-dfa1d7a4c191</guid><dc:creator>Alaa</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I got errors in &lt;strong&gt;JLINK_MONITOR_ISR_SES.s&lt;/strong&gt; file:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;make: *** [_build/nrf52832_xxaa_JLINK_MONITOR_ISR_SES.s.o.o] Error 1&lt;br /&gt;recipe for target &amp;#39;_build/nrf52832_xxaa_JLINK_MONITOR_ISR_SES.s.o.o&amp;#39; failed&lt;br /&gt;symbol `_HandleReadRegDone_Veneer&amp;#39; is already defined&lt;br /&gt;undefined symbol _APP_SP_OFF_S0 used as an immediate value&lt;br /&gt;undefined symbol _APP_SP_OFF_S0 used as an immediate value&lt;br /&gt;undefined symbol _MON_VERSION used as an immediate value&lt;br /&gt;undefined symbol _NUM_BYTES_BASIC_STACKFRAME used as an immediate value&lt;br /&gt;undefined symbol _NUM_BYTES_EXTENDED_STACKFRAME used as an immediate value&lt;/p&gt;&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=1006&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Monitor Mode Debugging with J-Link and GDB/Eclipse</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/monitor-mode-debugging-with-j-link-and-gdbeclipse</link><pubDate>Thu, 12 Oct 2017 13:43:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f5e09d2-4ba0-44d5-afca-dfa1d7a4c191</guid><dc:creator>Tis</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hi Daniel,&lt;/p&gt;
&lt;p&gt;I figured out that reading your Blog “Getting More Out of Make” is helpful since it mentions the otherwise empty GDB_PORT and DBG_BUILD_DIR. (Please, add a link to it)
Nevertheless I don’t succeed in MMD working. Therefore, I asked for the exact things to do.
Now in my Debug Configuration the 2 commands are:
mon exec SetMonModeDebug=1
mon exec SetMonModeVTableAddr=0x22000&lt;/p&gt;
&lt;p&gt;It is unclear why in your screenshot there is the 3rd command
mon reset 0
So, I thought the others from the created file of 8 commands  are also needed in Eclipse.&lt;/p&gt;
&lt;p&gt;A debug session of ble_app_blinky can be started and keeps running in the busy/wait loop as long as no breakpoints are hit. However, when e.g. the breakpoint at the source code  bsp_board_led_on(LEDBUTTON_LED) should be hit, then the smartphone app says after 20 seonds that the BLE connection is disconnected. And the intended breakpoint is not hit at all. (No connection is possible anymore: so, reset)&lt;/p&gt;
&lt;p&gt;Although I follow all the instructions, I do not manage to have MMD working.
Please, any help is welcome!&lt;/p&gt;
&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=1006&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Monitor Mode Debugging with J-Link and GDB/Eclipse</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/monitor-mode-debugging-with-j-link-and-gdbeclipse</link><pubDate>Wed, 11 Oct 2017 20:53:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f5e09d2-4ba0-44d5-afca-dfa1d7a4c191</guid><dc:creator>Daniel Veilleux</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hello Tis,&lt;/p&gt;
&lt;p&gt;Those two commands (SetMonMode...) are &lt;strong&gt;either&lt;/strong&gt; appended to your existing JLink settings inside eclipse or need to be executed when starting GDB from the command line. If you look at the Makefile that I reference you can see that the &amp;quot;PHONY: gdb_cmd_file&amp;quot; section is the part of the Makefile that creates a text file for use when invoking GDB from the command line.&lt;/p&gt;
&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=1006&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Monitor Mode Debugging with J-Link and GDB/Eclipse</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/monitor-mode-debugging-with-j-link-and-gdbeclipse</link><pubDate>Wed, 11 Oct 2017 18:45:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f5e09d2-4ba0-44d5-afca-dfa1d7a4c191</guid><dc:creator>Tis</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;It is not fully clear to me what commands to add to enable monitor mode debugging.
Firstly, 2 commands are mentioned.
Then, in the box of “PHONY: gdb_cmd_file” 8 commands are echoed.
Finally, in the Debug Configuration 3 commands are shown, although other commands (of 8?) might not be visible.
Please, could you clarify what commands are exactly needed?&lt;/p&gt;
&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=1006&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Monitor Mode Debugging with J-Link and GDB/Eclipse</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/monitor-mode-debugging-with-j-link-and-gdbeclipse</link><pubDate>Wed, 10 May 2017 15:20:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f5e09d2-4ba0-44d5-afca-dfa1d7a4c191</guid><dc:creator>Daniel Veilleux</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hello Garret,&lt;/p&gt;
&lt;p&gt;I wasted an entire evening trying to get it to work with my Linux machine as well before I sent an email to Segger support. It works fine on Linux if you purchase a professional J-Link.&lt;/p&gt;
&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=1006&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Monitor Mode Debugging with J-Link and GDB/Eclipse</title><link>https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/monitor-mode-debugging-with-j-link-and-gdbeclipse</link><pubDate>Wed, 10 May 2017 11:55:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f5e09d2-4ba0-44d5-afca-dfa1d7a4c191</guid><dc:creator>Garret</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Under prerequisites you have this sentence.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;On Linux and OSX machines, the J-Link driver will accept the commands to enable monitor mode debugging but will silently fail to enable it.&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I have spent literally hours trying to get the Monitor mode running on Segger IDE on a Linux machine. I was starting to lose my mind and gave up.&lt;/p&gt;
&lt;p&gt;Is there anyway to get it working??&lt;/p&gt;
&lt;p&gt;Garret&lt;/p&gt;
&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=1006&amp;AppID=4&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>