<?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>Build and run - not running immediately</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58921/build-and-run---not-running-immediately</link><description>Hi, 
 I ported an nrf example from nRF5 SDK version 12.3.0 ble_proximity to segger studio (v4.50), and flashed into nRF51DK, using build and run option. The application is not running immediately but runs after pressing boot reset it works normally. The</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 11 Mar 2020 23:13:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58921/build-and-run---not-running-immediately" /><item><title>RE: Build and run - not running immediately</title><link>https://devzone.nordicsemi.com/thread/239420?ContentTypeID=1</link><pubDate>Wed, 11 Mar 2020 23:13:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2e67fba-8b15-4f52-a434-12c63ad20c55</guid><dc:creator>Ros</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for the reply. Yes, I can use debug and run, but when it was not running after build-and-run option, I initially thought there were issues with my program. As I am not developing anything seriously for nRF51, it is not a big issue. I found similar post in Segger forums but not solved. I will use reset button to run.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Ras&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Build and run - not running immediately</title><link>https://devzone.nordicsemi.com/thread/239289?ContentTypeID=1</link><pubDate>Wed, 11 Mar 2020 10:04:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02460340-231f-4d33-9343-ecf13617cda5</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I am not sure exactly what setting that is required for this to work properly. I suggest you contact segger if you are still stuck. They will probably be able to tell you what setting that does this.&lt;/p&gt;
&lt;p&gt;As an alternative, you can use build and debug, where you should be able to press reset and run to start the application.&lt;/p&gt;
&lt;p&gt;If you just want to build and flash you can always reset the device (and flash for that matter) using &lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Command-Line-Tools/Download" rel="noopener noreferrer" target="_blank"&gt;nRF Command Line Tools&lt;/a&gt;, and the commands:&lt;/p&gt;
&lt;p&gt;&amp;quot;nrfjprog --program application_hex_file.hex&amp;quot; to flash (&amp;quot;application_hex_file.hex being the path to your application&amp;#39;s hex file), and&lt;/p&gt;
&lt;p&gt;&amp;quot;nrfjprog --reset&amp;quot; to reset the device.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Build and run - not running immediately</title><link>https://devzone.nordicsemi.com/thread/239234?ContentTypeID=1</link><pubDate>Wed, 11 Mar 2020 00:26:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c5f24bd-4c2e-4f5e-b84e-70830d000940</guid><dc:creator>Ros</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for the reply. My Segger Studio settings are same as in the image posted, and the problem is not solved in the link provided as well. So I think there is some bug with old nRF51 devices.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Ras&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Build and run - not running immediately</title><link>https://devzone.nordicsemi.com/thread/239144?ContentTypeID=1</link><pubDate>Tue, 10 Mar 2020 13:54:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5c0297b-841d-406a-ad56-a75f9b0dddcd</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;This sounds like an IDE setting that isn&amp;#39;t set properly.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Perhaps you can check this set of settings:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-cd96362ba35548bd9cad8b40c27f3723/pastedimage1583848413688v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Alternatively, perhaps one of the suggestions in this ticket will help in your case:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/40349/segger-embedded-studio-project-does-not-run-code-without-press-reset-button"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/40349/segger-embedded-studio-project-does-not-run-code-without-press-reset-button&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>