<?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>How do I figure out why GDB isn&amp;#39;t breaking at main?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22593/how-do-i-figure-out-why-gdb-isn-t-breaking-at-main</link><description>(PLEASE SEE COMMENT BELOW)
I&amp;#39;ve got a Nordic project that I imported into Eclipse as a makefile project. I&amp;#39;ve got it working and I can debug into it. Everything is good. So I created a native Eclipse project to build the same target, carefully copying</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 08 Jun 2017 06:31:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22593/how-do-i-figure-out-why-gdb-isn-t-breaking-at-main" /><item><title>RE: How do I figure out why GDB isn't breaking at main?</title><link>https://devzone.nordicsemi.com/thread/88871?ContentTypeID=1</link><pubDate>Thu, 08 Jun 2017 06:31:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df1b2fad-e7ec-4505-ae6e-fd5144042e86</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Yes, how to debug with softdevice is another topic, so it would be nice if you could post a new question. Before doing so, I would recommend you to search the topic in existing questions, it is a widely discussed topic.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I figure out why GDB isn't breaking at main?</title><link>https://devzone.nordicsemi.com/thread/88872?ContentTypeID=1</link><pubDate>Wed, 07 Jun 2017 14:52:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e497b515-062d-43cc-ae31-af5bbe5a7af2</guid><dc:creator>Jandyman</dc:creator><description>&lt;p&gt;It now appears that the problem is not so much a debugger problem as a problem with the SoftDevice transferring control to my app. If I unclick &amp;quot;Continue&amp;quot; in the Debug configuration options, I can see sensible (SoftDevice) code at low addresses. I can also disassemble my main function, it looks correct, and I can see my breakpoint in both the assembly window and the source window. So, it now appears that my question is &amp;quot;How do I debug problem with the SoftDevice transferring control to my app?&amp;quot;. Should I file a new question?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I figure out why GDB isn't breaking at main?</title><link>https://devzone.nordicsemi.com/thread/88873?ContentTypeID=1</link><pubDate>Wed, 07 Jun 2017 06:14:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d60f337-3554-4719-9567-869ee66b6625</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;This problem typically occurs if flash and RAM settings for the project aren&amp;#39;t set correctly. For GCC, these settings should be set in the linker script (.ld file).&lt;/p&gt;
&lt;p&gt;S134 v.4.0.0 release notes:
&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/flash_5F00_RAM.PNG" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;Corresponding settings in the linker script:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;MEMORY
{
  FLASH (rx) : ORIGIN = 0x1f000, LENGTH = 0x61000
  RAM (rwx) :  ORIGIN = 0x20002558, LENGTH = 0xdaa8
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>