<?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>Debugging issue in IAR . Not hitting main()</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47861/debugging-issue-in-iar-not-hitting-main</link><description>Hey! . I am new to embedded developing and was trying to familiarize with nrf52 DK . 
 Issue : When i try to run the BLE examples in sdk after clicking &amp;quot; download and debug &amp;quot; button, instead of compiler to hit the main function and wait for us to hit</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 29 May 2019 15:56:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47861/debugging-issue-in-iar-not-hitting-main" /><item><title>RE: Debugging issue in IAR . Not hitting main()</title><link>https://devzone.nordicsemi.com/thread/189968?ContentTypeID=1</link><pubDate>Wed, 29 May 2019 15:56:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4322c25d-2c3a-47af-a1c5-0efd01176bf0</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Actually, I don&amp;#39;t find that IAR is so common - certainly not here.&lt;/p&gt;
&lt;p&gt;If you have the cash to burn, I&amp;#39;d have thought that Keil was a better bet.&lt;/p&gt;
&lt;p&gt;But the IDE is just a tool - my point about learning embedded development stands.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging issue in IAR . Not hitting main()</title><link>https://devzone.nordicsemi.com/thread/189966?ContentTypeID=1</link><pubDate>Wed, 29 May 2019 15:50:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc5ad5e1-689b-4e33-982d-780e80a37d68</guid><dc:creator>ANANTHAKRISHNAN</dc:creator><description>&lt;p&gt;Thank you so much for the reply. The problem got solved using this method. I used nrf connect to erase and install the softdevice and run the program in IAR as u said. Now its perfectly working as i need .&amp;nbsp; :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging issue in IAR . Not hitting main()</title><link>https://devzone.nordicsemi.com/thread/189965?ContentTypeID=1</link><pubDate>Wed, 29 May 2019 15:50:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d3f933a-6254-47f2-82dd-42b5612b4cd4</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Agreed; I haven&amp;#39;t tried Monitor Mode in IAR, that&amp;#39;s a good suggestion. Maybe if I get time .. I have the shiny new v8.4.0 but haven&amp;#39;t tried it yet, will be interesting to see if it&amp;#39;s any better.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging issue in IAR . Not hitting main()</title><link>https://devzone.nordicsemi.com/thread/189963?ContentTypeID=1</link><pubDate>Wed, 29 May 2019 15:47:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:255fdda8-9bba-438b-8491-8287b12f1c12</guid><dc:creator>ANANTHAKRISHNAN</dc:creator><description>&lt;p&gt;Currently am working in a startup and doing self training. Since IAR is common in industrial use i was directed to learn this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging issue in IAR . Not hitting main()</title><link>https://devzone.nordicsemi.com/thread/189962?ContentTypeID=1</link><pubDate>Wed, 29 May 2019 15:45:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91b1ed55-c93d-4d26-b7f4-0040e5c639f6</guid><dc:creator>awneil</dc:creator><description>[quote userid="80096" url="~/f/nordic-q-a/47861/debugging-issue-in-iar-not-hitting-main"]I am new to embedded developing[/quote]
&lt;p&gt;To be honest, I don&amp;#39;t think nRF52 - or any other BLE SoC - is a great place for a &lt;em&gt;beginner&lt;/em&gt; to start.&lt;/p&gt;
&lt;p&gt;As you can see from the other replies, the BLE part requires some experience.&lt;/p&gt;
&lt;p&gt;Do you have a particular reason for choosing IAR?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging issue in IAR . Not hitting main()</title><link>https://devzone.nordicsemi.com/thread/189961?ContentTypeID=1</link><pubDate>Wed, 29 May 2019 15:41:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:360671a7-ab11-40e5-9754-b40d1f8a6985</guid><dc:creator>awneil</dc:creator><description>[quote userid="65515" url="~/f/nordic-q-a/47861/debugging-issue-in-iar-not-hitting-main/189959"]Note that debugging can crash after a breakpoint[/quote]
&lt;p&gt;That is inherent in the way the SoftDevice works; it is the same in SES, Keil, IAR,or any other IDE&lt;/p&gt;
&lt;p&gt;I think the only way around it is to use the Monitor Mode Debugging:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicPlayground/j-link-monitoring-mode-debugging/#monitor-mode-debugging-in-keil-%C2%B5vision5-and-segger-embedded-studio"&gt;https://github.com/NordicPlayground/j-link-monitoring-mode-debugging/#monitor-mode-debugging-in-keil-%C2%B5vision5-and-segger-embedded-studio&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It should work in IAR, but I don&amp;#39;t think that&amp;#39;s covered in an Nordic materials?.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging issue in IAR . Not hitting main()</title><link>https://devzone.nordicsemi.com/thread/189959?ContentTypeID=1</link><pubDate>Wed, 29 May 2019 15:29:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce83523f-f530-4faa-a753-55e6106f43f0</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;I can&amp;#39;t provide support (I&amp;#39;m not Nordic) but I think I can get you started. Using IAR with a SoftDevice has always proved problematic for us. One way to get a debugging session running correctly in IAR is to first &amp;quot;erase all&amp;quot; flash and then load the Softdevice using either nRFGo Studio or nRFConnect. Then hit the Download and Debug button on IAR and the project will allow you to run, single-step and hit breakpoints. Note that debugging can crash after a breakpoint and then the whole sequence of Erase-Program SoftDevice-IAR Debug has to be repeated.&lt;/p&gt;
&lt;p&gt;SES works fine when the SoftDevice is specified as an additional load file. Specifying SoftDevice as an additional load file in IAR doesn&amp;#39;t work for us (all versions of IAR, not tried v8.4.0 yet). We pay a lot for IAR; SES is free. IAR do not support Nordic parts correctly, in my view, and no longer supply any Nordic examples.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging issue in IAR . Not hitting main()</title><link>https://devzone.nordicsemi.com/thread/189849?ContentTypeID=1</link><pubDate>Wed, 29 May 2019 11:27:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21eccf89-177a-4ba1-9d5c-779eb65a5fd8</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;A good start may be:&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/nrf51_getting_started.html?cp=5_1_1"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/nrf51_getting_started.html?cp=5_1_1&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In general I recommend to check out SEGGER Embedded Studio for development, there is tutorial here:&lt;br /&gt;&lt;a href="https://www.youtube.com/watch?v=YZouRE_Ol8g&amp;amp;list=PLx_tBuQ_KSqGHmzdEL2GWEOeix-S5rgTV"&gt;https://www.youtube.com/watch?v=YZouRE_Ol8g&amp;amp;list=PLx_tBuQ_KSqGHmzdEL2GWEOeix-S5rgTV&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>