<?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>Segger Embedded Studio project does not run code without press reset button</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/40349/segger-embedded-studio-project-does-not-run-code-without-press-reset-button</link><description>Hi All, 
 I am using Keil and GCC but I want to migrate my projject to &amp;quot;Seggers Embedded Studio for ARM&amp;quot;. After following the tutorial about migration, i have been able to import my project into Embedded Studio and upload the code using the &amp;quot;Build and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Nov 2018 12:16:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/40349/segger-embedded-studio-project-does-not-run-code-without-press-reset-button" /><item><title>RE: Segger Embedded Studio project does not run code without press reset button</title><link>https://devzone.nordicsemi.com/thread/157071?ContentTypeID=1</link><pubDate>Tue, 13 Nov 2018 12:16:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe8b23a5-a454-4b08-b2d2-7d11263ca0f4</guid><dc:creator>secondbest</dc:creator><description>&lt;p&gt;Thank you&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/haakonsh"&gt;haakonsh&lt;/a&gt;&amp;nbsp;for your help. I will ask segger forum and i will inform threre.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Segger Embedded Studio project does not run code without press reset button</title><link>https://devzone.nordicsemi.com/thread/157067?ContentTypeID=1</link><pubDate>Tue, 13 Nov 2018 12:10:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91e464cc-b997-46b5-9107-e9a3420f5e84</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Then I&amp;#39;m afraid I&amp;#39;m out of possible solutions.&amp;nbsp;You should ask segger if they&amp;#39;ve got some tips.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Segger Embedded Studio project does not run code without press reset button</title><link>https://devzone.nordicsemi.com/thread/157056?ContentTypeID=1</link><pubDate>Tue, 13 Nov 2018 11:09:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38f87e49-5620-47bb-b193-423fd95b44ea</guid><dc:creator>secondbest</dc:creator><description>&lt;p&gt;&lt;span&gt;I added both&amp;nbsp;&lt;/span&gt;&lt;span&gt;SetRestartOnClose&amp;nbsp;and&amp;nbsp;SetResetType&amp;nbsp;parameters as follow but nothing changed.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/2352.Untitled.png" /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Segger Embedded Studio project does not run code without press reset button</title><link>https://devzone.nordicsemi.com/thread/157040?ContentTypeID=1</link><pubDate>Tue, 13 Nov 2018 10:24:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c0b4c2d-4952-4e3a-a0cd-fd751bfc2520</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Hmm, try adding &amp;#39;SetRestartOnClose = 1&amp;#39; to common -&amp;gt; debug-&amp;gt; jlink -&amp;gt; additional j-link options.&lt;/p&gt;
&lt;p&gt;If that does not work try adding &amp;#39;SetResetType = 0&amp;#39; as well.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Segger Embedded Studio project does not run code without press reset button</title><link>https://devzone.nordicsemi.com/thread/156984?ContentTypeID=1</link><pubDate>Tue, 13 Nov 2018 06:14:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20993eb7-981f-4813-9982-cbd9b387756d</guid><dc:creator>secondbest</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/haakonsh"&gt;haakonsh&lt;/a&gt;, thank you for response. I&amp;#39;ve added your proposed settings to project. However, the situation does not change.You can see the settings in the picture.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/77862.Untitled.png" /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/4784.Untitled2.png" /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; And this is the output.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/8510.Untitled3.png" /&gt;&lt;/p&gt;
&lt;p&gt;Also, i can make debug without problem before and after settings. Do you have any other suggestions? Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Segger Embedded Studio project does not run code without press reset button</title><link>https://devzone.nordicsemi.com/thread/156947?ContentTypeID=1</link><pubDate>Mon, 12 Nov 2018 15:43:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f07def6d-2ead-415a-9591-4de04eab123c</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Yeah I think you&amp;#39;ve made the correct calculations after you set the optimization level to 3 in SES. Then it should be very close to GCC with opt lvl 3.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I also believe that level 3 optimizes for both code size AND execution time. It might be that the Keil compiler is set to optimize for code size only(level 1 or 2).&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Segger uses GCC as it&amp;#39;s compiler, whereas Keil has it&amp;#39;s own compiler who&amp;#39;s very good, but costs $$$.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Segger Embedded Studio project does not run code without press reset button</title><link>https://devzone.nordicsemi.com/thread/156935?ContentTypeID=1</link><pubDate>Mon, 12 Nov 2018 15:07:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8ee214f-db4f-4798-b661-002754df70c4</guid><dc:creator>secondbest</dc:creator><description>&lt;p&gt;I want to fix my error in RAM calculation. I made Heap Size: 1024, Stack Size: 1024 for all compilers and update the results according to this heap and stack size.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Keil creates 41kB hex file. RAM size: 2984 byte ROM Size: 15052byte. (Program Size: Code=14448 RO-data=300 RW-data=304 ZI-data=2680)&lt;/p&gt;
&lt;p&gt;I think that real RAM size is equal to (2984 + HEAP SIZE = 4008 byte). Because, I make HEAP_SIZE zero in KEIL but RW or ZI data does not change. (Edit:&amp;nbsp;&lt;span&gt;Enabling MicroLIB removes the HEAP.&lt;/span&gt;)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;GCC creates 59kB hex file.&amp;nbsp;&lt;span&gt;RAM size:&amp;nbsp;1824 byte ROM Size: 21368byte. (Program Size: text=21204&amp;nbsp;data=164&amp;nbsp;bss=1660&amp;nbsp;dec=23028 )&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I changed HEAP_SIZE and STACK_SIZE in GCC makefile. However, All values(text, data, bss, dec) are same. So, I think that real RAM size equal to 1824 + 1024 +1024 = 3872 byte.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In segger, heap and stack&amp;nbsp;remained&amp;nbsp;same (1024 byte)&amp;nbsp; but i change optimization level as&amp;nbsp;Level-3 and segger creates 57kB hex file and the ROM size changed as follow.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;KEIL, ROM:15052 byte, RAM: 4008 byte&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;GCC, ROM:21368 byte byte, RAM: 3872 byte&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;SEGGER, ROM: 20,2 kB RAM: 3,7 kB&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Now, ROM and RAM size is almost same.&amp;nbsp;Do you think these calculations are correct? Why do segger and gcc create so big hex file? I made something wrong?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks everybody for their response.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Segger Embedded Studio project does not run code without press reset button</title><link>https://devzone.nordicsemi.com/thread/156927?ContentTypeID=1</link><pubDate>Mon, 12 Nov 2018 14:43:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68bdc844-ea2a-4d4f-b52c-dc6301874d69</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Try adding &amp;#39;TargetInterface.resetAndStop(1000)&amp;#39; to project -&amp;gt; options -&amp;gt; common -&amp;gt; Target Script, as well as adding &amp;#39;main&amp;#39; to project -&amp;gt; options -&amp;gt; MY_PROJECT -&amp;gt; Debugger -&amp;gt; Run To.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>