<?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>A *working* demo of Monitor Mode Debug (MMD) on SDK 15, please?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38438/a-working-demo-of-monitor-mode-debug-mmd-on-sdk-15-please</link><description>The zipped project attached to this blog doesn&amp;#39;t say what SDK version it should work with - but it certainly doesn&amp;#39;t work with v15. 
 https://devzone.nordicsemi.com/b/blog/posts/segger-embedded-studio-part-2-monitor-mode-debuggi 
 
 Having fixed the Include</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Oct 2018 12:00:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38438/a-working-demo-of-monitor-mode-debug-mmd-on-sdk-15-please" /><item><title>RE: A *working* demo of Monitor Mode Debug (MMD) on SDK 15, please?</title><link>https://devzone.nordicsemi.com/thread/152041?ContentTypeID=1</link><pubDate>Mon, 08 Oct 2018 12:00:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70571290-e448-4e0a-82d1-fca0fa0dc3b6</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;OK - thanks for the insight.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A *working* demo of Monitor Mode Debug (MMD) on SDK 15, please?</title><link>https://devzone.nordicsemi.com/thread/152035?ContentTypeID=1</link><pubDate>Mon, 08 Oct 2018 11:49:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39047172-07e9-403c-9639-16bccbc49ede</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;I agree that there is a issue where blogs/tutorials on devzone are not properly maintained. So far we&amp;#39;ve relied on an &amp;quot;If you publish you maintain it&amp;quot; principle, and although there are cases where this fails, it usually works out fine as long as whoever published the works &lt;span style="text-decoration:underline;"&gt;are still present.&lt;/span&gt;&amp;nbsp;Recommendations for improvements&amp;nbsp;on our method of maintainership is more than welcome :)&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;As to incorporating blogs/tutorials into our official set of supported works, i.e. Datasheets, SDKs, and&amp;nbsp;&lt;a href="https://github.com/NordicSemiconductor"&gt;https://github.com/NordicSemiconductor&lt;/a&gt;, this will likely not happen as the bureaucracy/quality required to do so will add so much to the workload of creating a blog/tutorial that there will simply be less of them.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;The demand for new supported features is ridiculously high, and we do not have the resources to support everything as well as we&amp;#39;d like. The devzone blog/tutorials and &lt;a href="https://github.com/nordicplayground"&gt;https://github.com/nordicplayground&lt;/a&gt;&amp;nbsp;are our way of generating support for features that often do not have a large enough user base to warrant the extra resources required to incorporate them into our &amp;quot;officially supported&amp;quot; domain.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A *working* demo of Monitor Mode Debug (MMD) on SDK 15, please?</title><link>https://devzone.nordicsemi.com/thread/152024?ContentTypeID=1</link><pubDate>Mon, 08 Oct 2018 11:27:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39be41d6-f42d-4869-8232-667086f9b8b6</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;That does seem to be the trouble with relying on blog posts as documentation!&lt;/p&gt;
&lt;p&gt;I think there needs to be some way for these things to get embodied into the official documentation - with associated maintenance ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A *working* demo of Monitor Mode Debug (MMD) on SDK 15, please?</title><link>https://devzone.nordicsemi.com/thread/152017?ContentTypeID=1</link><pubDate>Mon, 08 Oct 2018 11:14:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a326fe73-0d94-4176-ba9e-18784a80bb3a</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;It&amp;#39;s an &amp;quot;old&amp;quot; article written by an intern from before we had any real support for SES. I guess we should mark it as deprecated and link to the new repo.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A *working* demo of Monitor Mode Debug (MMD) on SDK 15, please?</title><link>https://devzone.nordicsemi.com/thread/151999?ContentTypeID=1</link><pubDate>Mon, 08 Oct 2018 09:56:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:655e6442-5a52-433e-a837-c3e94e1679c9</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Yes, that would be my guess.&lt;/p&gt;
&lt;p&gt;But that should be explained in the article - as most Nordic projects &lt;em&gt;are&lt;/em&gt; going to use a SoftDevice, so that option &lt;em&gt;&lt;strong&gt;will&lt;/strong&gt; &lt;/em&gt;be necessary!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A *working* demo of Monitor Mode Debug (MMD) on SDK 15, please?</title><link>https://devzone.nordicsemi.com/thread/151974?ContentTypeID=1</link><pubDate>Mon, 08 Oct 2018 08:00:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:466af6b8-5274-4fe6-b577-543278e98bdb</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;I&amp;#39;ve found the bug, forgot to include the DEBUG_NRF flag that the hardfault_implementation.c needs in order to override the __WEAK hardfault handler :/&lt;br /&gt;&lt;br /&gt;Check out the SDK15.0 branch&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A *working* demo of Monitor Mode Debug (MMD) on SDK 15, please?</title><link>https://devzone.nordicsemi.com/thread/151972?ContentTypeID=1</link><pubDate>Mon, 08 Oct 2018 07:58:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5dee600-d8e2-41d7-b2f0-705683d102c5</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;I believe that example does not use the SoftDevice and the application&amp;#39;s vector table will then start at address 0x00000000. If the J-link driver&amp;#39;s vector table entry is 0x00000000 by default then it should work as intended.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A *working* demo of Monitor Mode Debug (MMD) on SDK 15, please?</title><link>https://devzone.nordicsemi.com/thread/151889?ContentTypeID=1</link><pubDate>Sat, 06 Oct 2018 09:00:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9142786-0fa2-4982-9db4-de5171a96611</guid><dc:creator>awneil</dc:creator><description>[quote userid="13562" url="~/f/nordic-q-a/38438/a-working-demo-of-monitor-mode-debug-mmd-on-sdk-15-please/149072"]In order to execute the Monitor Mode ISR the J-link driver needs to know the vector table.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes, that makes sense.&lt;/p&gt;
&lt;p&gt;So the question is: why was this command &lt;em&gt;&lt;strong&gt;not&lt;/strong&gt;&lt;/em&gt; in the original article?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/b/blog/posts/segger-embedded-studio-part-2-monitor-mode-debuggi"&gt;https://devzone.nordicsemi.com/b/blog/posts/segger-embedded-studio-part-2-monitor-mode-debuggi&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;ie, how does that one get away &lt;em&gt;&lt;strong&gt;without&lt;/strong&gt; &lt;/em&gt;it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A *working* demo of Monitor Mode Debug (MMD) on SDK 15, please?</title><link>https://devzone.nordicsemi.com/thread/149075?ContentTypeID=1</link><pubDate>Mon, 17 Sep 2018 14:09:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4450deb5-8c29-4d20-8c61-580a498c8b70</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;I appreciate the input, I&amp;#39;ve raised a couple of &amp;#39;Issues&amp;#39; in the new repo and will get to it eventually.&amp;nbsp;&lt;br /&gt;Don&amp;#39;t hesitate to ask more :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A *working* demo of Monitor Mode Debug (MMD) on SDK 15, please?</title><link>https://devzone.nordicsemi.com/thread/149074?ContentTypeID=1</link><pubDate>Mon, 17 Sep 2018 14:03:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56965411-078b-4d65-9f3f-fb43ab2cb9eb</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;It would be helpful if Your tutorial explained this!&lt;/p&gt;
&lt;p&gt;As noted, the original missed it:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/b/blog/posts/segger-embedded-studio-part-2-monitor-mode-debuggi"&gt;https://devzone.nordicsemi.com/b/blog/posts/segger-embedded-studio-part-2-monitor-mode-debuggi&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And the other tutorial included it, but with no clear explanation:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/b/blog/posts/monitor-mode-debugging-with-j-link-and-gdbeclipse"&gt;https://devzone.nordicsemi.com/b/blog/posts/monitor-mode-debugging-with-j-link-and-gdbeclipse&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Hence me banging on trying to get you to clarify it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A *working* demo of Monitor Mode Debug (MMD) on SDK 15, please?</title><link>https://devzone.nordicsemi.com/thread/149072?ContentTypeID=1</link><pubDate>Mon, 17 Sep 2018 13:54:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7de1363b-49cf-4ef2-b98f-3e159118d04f</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Yes.&amp;nbsp;&lt;br /&gt;When the J-link driver is configured for MMD mode it will convert a regular &amp;#39;Halt CPU&amp;#39; command into an &amp;#39;execute MMD ISR&amp;#39;. In order to execute the Monitor Mode ISR the J-link driver needs to know the vector table.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;This is described in the&amp;nbsp;&lt;a href="https://www.segger.com/downloads/jlink/UM08001"&gt;Segger J-Link/J-Trace User Guide&lt;/a&gt;&amp;nbsp;chapter 9.&amp;nbsp;Monitor Mode Debugging.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A *working* demo of Monitor Mode Debug (MMD) on SDK 15, please?</title><link>https://devzone.nordicsemi.com/thread/149063?ContentTypeID=1</link><pubDate>Mon, 17 Sep 2018 13:42:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e82039e5-ac1e-4c05-bb1b-ecfb0b78f68c</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;and is the&amp;nbsp;&lt;span&gt;SetMonModeVTableAddr&lt;/span&gt;&lt;span&gt;&amp;nbsp;option actually &lt;em&gt;&lt;strong&gt;necessary&lt;/strong&gt; &lt;/em&gt;?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A *working* demo of Monitor Mode Debug (MMD) on SDK 15, please?</title><link>https://devzone.nordicsemi.com/thread/149060?ContentTypeID=1</link><pubDate>Mon, 17 Sep 2018 13:22:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5335486c-38cd-44b8-bdb4-8be3122a8b76</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;The application&amp;#39;s vector table is at the start of the application&amp;#39;s starting address in flash. In a SES project you&amp;#39;ll find it in:&lt;br /&gt;Option for project -&amp;gt; Common -&amp;gt; Linker -&amp;gt; Section Placement Macros -&amp;gt;&amp;nbsp;FLASH_START.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A *working* demo of Monitor Mode Debug (MMD) on SDK 15, please?</title><link>https://devzone.nordicsemi.com/thread/149021?ContentTypeID=1</link><pubDate>Mon, 17 Sep 2018 12:13:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de39e6f9-4095-4fdc-8a19-0b44ae156056</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;You&amp;#39;re missing the point!&lt;/p&gt;
&lt;p&gt;The question was whether the option(s) are &lt;em&gt;necessary&lt;/em&gt; - not how to specify them!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And, in the case of the&amp;nbsp;&lt;span&gt;SetMonModeVTableAddr&lt;/span&gt; option, what value, exactly, has to be specified?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A *working* demo of Monitor Mode Debug (MMD) on SDK 15, please?</title><link>https://devzone.nordicsemi.com/thread/149007?ContentTypeID=1</link><pubDate>Mon, 17 Sep 2018 11:40:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec1e0910-6470-4ce0-8b8f-bc975195c7dc</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Aah, I forgot to document it.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open up the example project from the SDK14.2 branch.&lt;/li&gt;
&lt;li&gt;Right-click &amp;#39;Project ble_app_blinky...&amp;#39; and choose &amp;#39;Edit Options&amp;#39;.&lt;/li&gt;
&lt;li&gt;Select &amp;#39;Debug&amp;#39; from the drop-down menu. (Common, Debug, Release).&lt;/li&gt;
&lt;li&gt;Go to Debug -&amp;gt; J-Link -&amp;gt; Additional J-Link Options.&amp;nbsp;Double click to view or edit.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A *working* demo of Monitor Mode Debug (MMD) on SDK 15, please?</title><link>https://devzone.nordicsemi.com/thread/148984?ContentTypeID=1</link><pubDate>Mon, 17 Sep 2018 09:53:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba5538df-bd05-4a64-88cc-11c4d2680673</guid><dc:creator>awneil</dc:creator><description>[quote userid="13562" url="~/f/nordic-q-a/38438/a-working-demo-of-monitor-mode-debug-mmd-on-sdk-15-please/148977"]I&amp;#39;m not familiar with GDB[/quote]
&lt;p&gt;Neither am I!&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not asking about GDB - just SES.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A *working* demo of Monitor Mode Debug (MMD) on SDK 15, please?</title><link>https://devzone.nordicsemi.com/thread/148977?ContentTypeID=1</link><pubDate>Mon, 17 Sep 2018 09:39:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5bb00202-c6b3-4d49-a137-20daeef99062</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;I&amp;#39;m not familiar with GDB, but&amp;nbsp;&lt;span&gt;SetMonModeDebug=1 should be place in the projects j-link setting file. The j-link will read this file at the beginning of each j-link dll session and use those settings. I&amp;#39;m assuming that &amp;quot;mon exec&amp;quot; is some sort of keyword to include the following keywords to the j-link settings file.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A *working* demo of Monitor Mode Debug (MMD) on SDK 15, please?</title><link>https://devzone.nordicsemi.com/thread/148954?ContentTypeID=1</link><pubDate>Mon, 17 Sep 2018 08:32:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d59b285-4b22-43ca-9f13-8c766fab3644</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Could you clarify the question (above) about&amp;nbsp;&lt;code&gt;SetMonModeVTableAddr ?&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;(to be pedantic, note that it&amp;#39;s usually called &amp;quot;monitor mode&amp;quot; - rather than &amp;quot;monitoring mode&amp;quot;)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;EDIT&lt;/p&gt;
&lt;p&gt;The SES tutorial also doesn&amp;#39;t mention the&amp;nbsp;&amp;nbsp;&lt;code&gt;mon exec SetMonModeDebug=1 &lt;/code&gt;command&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A *working* demo of Monitor Mode Debug (MMD) on SDK 15, please?</title><link>https://devzone.nordicsemi.com/thread/148944?ContentTypeID=1</link><pubDate>Mon, 17 Sep 2018 08:17:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd3a03d9-6b6c-4f47-9d74-7f97985057fa</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;I&amp;#39;ve made a new tutorial for SDK14.2, and working on SDK15.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;See&amp;nbsp;&lt;a href="https://github.com/NordicPlayground/j-link-monitoring-mode-debugging"&gt;https://github.com/NordicPlayground/j-link-monitoring-mode-debugging&lt;/a&gt;&amp;nbsp;and the SDK14.2 branch.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A *working* demo of Monitor Mode Debug (MMD) on SDK 15, please?</title><link>https://devzone.nordicsemi.com/thread/148594?ContentTypeID=1</link><pubDate>Thu, 13 Sep 2018 11:22:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18d7320a-fb08-4b98-a8b5-68dd1b4bcd73</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;So I junked the example project, and just put the source files into a known-working SDK 15 Project.&lt;/p&gt;
&lt;p&gt;That seems to be working, but&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/b/blog/posts/monitor-mode-debugging-with-j-link-and-gdbeclipse" rel="noopener noreferrer" target="_blank"&gt;This blog &lt;/a&gt;has an additional J-Link command, not&amp;nbsp;featured in the above-mentioned blog:&lt;/p&gt;
&lt;pre style="padding-left:30px;"&gt;&lt;code&gt;mon exec SetMonModeVTableAddr=0x1f000&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;
&lt;p&gt;Is that also necessary?&lt;/p&gt;
&lt;p&gt;I guess it would be needed in an application with a SoftDevice? I guess one would&amp;nbsp;change the 0x1f000 to match the FLASH_START value?&lt;/p&gt;
&lt;p&gt;But that&amp;#39;s a lot of guessing ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>