<?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>debug session doesn&amp;#39;t stop at main</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/6825/debug-session-doesn-t-stop-at-main</link><description>Hi 
 I am trying to debug the &amp;quot;ble_app_hrs&amp;quot; example from SDK 6.1.0 (using keil IDE), on 51822 chip.
The IROM1 is defined to start at 0x16000 (meant to be used with softdevice).
when I start the debug session, the debugger doesn&amp;#39;t stop at &amp;quot;main&amp;quot; (even</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 04 May 2015 11:26:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/6825/debug-session-doesn-t-stop-at-main" /><item><title>RE: debug session doesn't stop at main</title><link>https://devzone.nordicsemi.com/thread/24040?ContentTypeID=1</link><pubDate>Mon, 04 May 2015 11:26:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c41de41-4d90-4e54-9187-a726180f7afe</guid><dc:creator>yaron</dc:creator><description>&lt;p&gt;O.K
Thanks for your help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: debug session doesn't stop at main</title><link>https://devzone.nordicsemi.com/thread/24039?ContentTypeID=1</link><pubDate>Mon, 04 May 2015 11:02:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f620873-e2bc-4ab8-bc99-d21a40947c6a</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi
If you don&amp;#39;t want to change the IROM settings you will need to have the SoftDevice installed. But you can comment out all ble related stuff in main() and then you should be able to step through the code in debug mode. You can also, as you have already tried, remove the SoftDevice and set the IROM address to 0x0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: debug session doesn't stop at main</title><link>https://devzone.nordicsemi.com/thread/24042?ContentTypeID=1</link><pubDate>Thu, 30 Apr 2015 14:10:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1c082de-f88f-4725-a852-7efc42df5fa4</guid><dc:creator>yaron</dc:creator><description>&lt;p&gt;Hi Martin&lt;/p&gt;
&lt;p&gt;&amp;quot;You want to debug the code in the ble_app_hrs example, but you want to do it without running the bluetooth stuff?&amp;quot; - correct&lt;/p&gt;
&lt;p&gt;&amp;quot;You can set breakpoints in your code, but the debugger runs past them? Or is the problem that the debugger never reach them?&amp;quot; - I can set breakpoints, but it seems that the debugger never reaches tham&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: debug session doesn't stop at main</title><link>https://devzone.nordicsemi.com/thread/24041?ContentTypeID=1</link><pubDate>Thu, 30 Apr 2015 13:10:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e16fcf6b-775f-4f39-800f-e6af89115240</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;I&amp;#39;m sorry for the confusion. So if I understand you correctly:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;You want to debug the code in the ble_app_hrs example, but you want to do it without running the bluetooth stuff?&lt;/li&gt;
&lt;li&gt;Are there any functions in particular that you want to understand?&lt;/li&gt;
&lt;li&gt;You can set breakpoints in your code, but the debugger runs past them? Or is the problem that the debugger never reach them?&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: debug session doesn't stop at main</title><link>https://devzone.nordicsemi.com/thread/24038?ContentTypeID=1</link><pubDate>Thu, 30 Apr 2015 11:54:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f523722c-b415-4ec2-a65b-dc3b03dbfadb</guid><dc:creator>yaron</dc:creator><description>&lt;p&gt;Hi Martin.&lt;/p&gt;
&lt;p&gt;First, thanks for the quick response.
I am aware that  I cannot change the IROM1 settings in order to run a ble example , but that is not the issue. I want to be able to single step inside the debugger in order to better understand certain functions. I do not need the actual ble service (and that&amp;#39;s why I don&amp;#39;t need to load the softdevice).&lt;/p&gt;
&lt;p&gt;I just wondered if there is a way to do this without changing IROM1 settings.
Thanks again
Yaron&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: debug session doesn't stop at main</title><link>https://devzone.nordicsemi.com/thread/24037?ContentTypeID=1</link><pubDate>Thu, 30 Apr 2015 11:41:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6a1f3b4-579e-425c-815c-56509d29d516</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Did you remember to program the actual SoftDevice onto your board?&lt;/p&gt;
&lt;p&gt;If yes, what softdevice did you use? When using SDK 6.1.0 you can chose to use softdevice 7.0.0 or 7.1.0 as described in the &lt;a href="https://www.nordicsemi.com/eng/nordic/download_resource/41917/6/78189326"&gt;Compatibility matrix&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you didn&amp;#39;t and you have never done it before you can have a look at this tutorial to learn how: &lt;a href="https://devzone.nordicsemi.com/tutorials/2/setting-up-an-example-project-on-the-nrf51-dk/"&gt;Setting up an example project on the nRF51 DK&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;EDIT:&lt;/p&gt;
&lt;p&gt;If you are going to run a ble example you cannot change the IROM1 settings. If you set it to 0x0 Keil will try to overwrite the softdevice when programming your application to your board. You can easily see what IROM1 value you should use using nRFgo Studio as seen in this image:
&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3404.Untitled.png" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;If there is a mismatch between these values you will either get an error when Keil tries to overwrite you SoftDevice or your ble example won&amp;#39;t work at all. So I assume you have double checked these values?&lt;/p&gt;
&lt;p&gt;If you run your ble_app_hrs example as usual (i.e. without stopping it in debugging mode) does it work as expected?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>