<?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>Core dump getting rid of optimized out</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109579/core-dump-getting-rid-of-optimized-out</link><description>Hello! 
 
 I&amp;#39;m reading the nRF Connect SDK Intermediate course . Specifically, I&amp;#39;m trying to do Exercise 2 - Debugging with core dump and addr2line . I became interested in core dump. I am trying to perform the exercise on the nRF52840 DK board. I created</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Apr 2024 08:39:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109579/core-dump-getting-rid-of-optimized-out" /><item><title>RE: Core dump getting rid of optimized out</title><link>https://devzone.nordicsemi.com/thread/478677?ContentTypeID=1</link><pubDate>Mon, 15 Apr 2024 08:39:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c9ef691-d8a4-4058-a8a7-038d11360552</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;I will ask and see if they have any updates. From what I can see they got the board last week and might not had time to look into it yet. I will update when i hear back from them&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Core dump getting rid of optimized out</title><link>https://devzone.nordicsemi.com/thread/478266?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2024 10:26:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b92ee2a-fdc8-44ac-be00-18b9a120a07a</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Runar is out of office this week, but he can comment when he is back next week.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Core dump getting rid of optimized out</title><link>https://devzone.nordicsemi.com/thread/477468?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2024 07:37:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b04928da-37b4-47d3-ab1c-0108eced769e</guid><dc:creator>Bartix</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Do you have any information?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Core dump getting rid of optimized out</title><link>https://devzone.nordicsemi.com/thread/476151?ContentTypeID=1</link><pubDate>Wed, 27 Mar 2024 13:07:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f10b2d21-f90e-4977-b143-b2e8434d0eeb</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;No worries, I wrote it so I&amp;#39;m confused myself. I did see the same behavior when i attached gdb to target and try to read out the backtrace directly from gbd without using the core dump. So from the looks of it, it is not directly connected to the core dump itself.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Core dump getting rid of optimized out</title><link>https://devzone.nordicsemi.com/thread/476139?ContentTypeID=1</link><pubDate>Wed, 27 Mar 2024 12:42:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6bc4c7b-a694-46da-88ae-b3c82ab98a12</guid><dc:creator>Bartix</dc:creator><description>&lt;p&gt;Thanks for your interest in the topic.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Core dump getting rid of optimized out</title><link>https://devzone.nordicsemi.com/thread/475820?ContentTypeID=1</link><pubDate>Tue, 26 Mar 2024 07:51:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5bef4444-481e-4533-98c3-f85323a448f8</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Thanks, I get the same myself. It must have been something introduced with NCS 2.6 as it worked as a charm when I wrote using NCS 2.5.2&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will look into it but I can&amp;#39;t guarantee that it will get fixed this week as it is easter vacation this week.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Core dump getting rid of optimized out</title><link>https://devzone.nordicsemi.com/thread/475730?ContentTypeID=1</link><pubDate>Mon, 25 Mar 2024 16:08:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b51fc2b-f4d4-4612-af04-f5fa9c86fbf3</guid><dc:creator>Bartix</dc:creator><description>&lt;pre id="tw-target-text" class="tw-data-text tw-text-large tw-ta" dir="ltr" data-ved="2ahUKEwiXlcWM5o-FAxXPSvEDHXDYB6EQ3ewLegQIBRAU"&gt;I run exactly the code from the &lt;strong&gt;inter_less2_exer2_solution&lt;/strong&gt; sample.&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Core dump getting rid of optimized out</title><link>https://devzone.nordicsemi.com/thread/475638?ContentTypeID=1</link><pubDate>Mon, 25 Mar 2024 12:44:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c56556dc-abc0-40a4-8509-71dd0b8ec307</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Are you running an exact copy of the lesson or have you added something to it? I have not run the sample on the NCS 2.6 but I don&amp;#39;t expect it to differ that much in terms of&amp;nbsp; compiler optimization. However your section image looks different to what I recall. I will fire up the sample myself and test.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Core dump getting rid of optimized out</title><link>https://devzone.nordicsemi.com/thread/475599?ContentTypeID=1</link><pubDate>Mon, 25 Mar 2024 10:34:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd529809-cab4-4939-b292-7f5c78dffea6</guid><dc:creator>Bartix</dc:creator><description>&lt;p&gt;I tested with these flags, the result is the same:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_DEBUG=y
CONFIG_NO_OPTIMIZATIONS=y
CONFIG_DEBUG_OPTIMIZATIONS=y&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Core dump getting rid of optimized out</title><link>https://devzone.nordicsemi.com/thread/475588?ContentTypeID=1</link><pubDate>Mon, 25 Mar 2024 10:00:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f180de5c-74a1-4dcf-b71e-92c4fa58496e</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you build it with optimize for debug do you get the same behavior? From the looks of it, your compiler found your variables redundant in some way and optimized them away.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>