<?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>Symbol not included in compiled hex file</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/118939/symbol-not-included-in-compiled-hex-file</link><description>I am debugging an application on a nRF5340 DK using nRF Connect SDK from VS Code. (Toolchain/nRF Connect SDK v2.9.0), everything up-to-date. 
 The build is &amp;quot;optimized for debugging&amp;quot;. 
 When I set a bp in an interesting function I want to see the actual</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 18 Feb 2025 15:02:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/118939/symbol-not-included-in-compiled-hex-file" /><item><title>RE: Symbol not included in compiled hex file</title><link>https://devzone.nordicsemi.com/thread/523554?ContentTypeID=1</link><pubDate>Tue, 18 Feb 2025 15:02:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b1fd851-b491-4815-ba01-7f77b59dcf48</guid><dc:creator>daubsi</dc:creator><description>&lt;p&gt;Hi Hung Bui,&lt;/p&gt;
&lt;p&gt;ok, fine as well. My intention to use the memory explorer was also to see the actual memory constants occupied by some variables to spot things like buffer overruns etc. which cannot be seen in the native variable window.&lt;/p&gt;
&lt;p&gt;I can live with both variants!&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Symbol not included in compiled hex file</title><link>https://devzone.nordicsemi.com/thread/523533?ContentTypeID=1</link><pubDate>Tue, 18 Feb 2025 14:09:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ff4e6ab-7185-4513-8888-d31259cf17cc</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Markus,&lt;br /&gt;I don&amp;#39;t have much insight of how the Memory Explorer, I guess it&amp;#39;s just how it is for now.&amp;nbsp;&lt;br /&gt;For normal variable I would just use the Variables&amp;nbsp;plane on&amp;nbsp;the left handside panel to see the value of the variables instead of using the Memory Explorer.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Symbol not included in compiled hex file</title><link>https://devzone.nordicsemi.com/thread/523509?ContentTypeID=1</link><pubDate>Tue, 18 Feb 2025 13:16:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51278e03-ce1b-4329-8fa0-91cc5900d638</guid><dc:creator>daubsi</dc:creator><description>&lt;p&gt;OK, but what makes a symbol go into the symbol table or the ELF file? Am I doing something wrong? I mean, I am just using &amp;quot;some variables&amp;quot;? As far as I know (from the&amp;nbsp;Linux&amp;nbsp;world), these are all just symbols? The way it is right now just feels awkward and somewhat inconvenient? Is it just how it is?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Symbol not included in compiled hex file</title><link>https://devzone.nordicsemi.com/thread/523414?ContentTypeID=1</link><pubDate>Tue, 18 Feb 2025 08:21:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f675eab-6049-45cb-9955-f406d80b1790</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Markus,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;As far as I know the default symbols view just take the symbols from symbols table where the ELF symbols is from the elf file.&amp;nbsp;So there is a difference here.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Symbol not included in compiled hex file</title><link>https://devzone.nordicsemi.com/thread/523248?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2025 12:36:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c25ced94-36aa-4655-932f-7b1b4648f47d</guid><dc:creator>daubsi</dc:creator><description>&lt;p&gt;Thank you Hung Bui. But why do I even need to use that special option of looking up an ELF symbol? What&amp;#39;s different to the symbols I CAN find with the other options?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Symbol not included in compiled hex file</title><link>https://devzone.nordicsemi.com/thread/523244?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2025 12:22:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:965415bb-8380-4187-a806-2093322bbe54</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Markus,&amp;nbsp;&lt;br /&gt;I found that I can lookup for the&amp;nbsp;global or static variable but not the dynamic allocated variable. If you click on the plus sign and select ELF symbol you can find the static variable.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1739794820014v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;My understanding is that Memory Explorer doesn&amp;#39;t follow dynamic variable. I will check internally to get this confirmed.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Symbol not included in compiled hex file</title><link>https://devzone.nordicsemi.com/thread/523093?ContentTypeID=1</link><pubDate>Fri, 14 Feb 2025 15:35:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:611eaf25-49af-4a48-876f-f0d87f3d4337</guid><dc:creator>daubsi</dc:creator><description>&lt;p&gt;Hi Hung Bui,&lt;br /&gt;&lt;br /&gt;you can actually have a look a the actual code I am working on right now as an example:&lt;br /&gt;&lt;br /&gt;&lt;a id="" href="https://github.com/OevreFlataeker/nrf5340_ak_fx/commit/b4e0165ffd8b9702624681fbc0f53c01492cb87d"&gt;https://github.com/OevreFlataeker/nrf5340_ak_fx/commit/b4e0165ffd8b9702624681fbc0f53c01492cb87d&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;My assumption is that I can &amp;quot;lookup&amp;quot; all the variables, structs, etc. in the Memory explorer just like when I do a &amp;quot;Add to watch&amp;quot; in order to keep them in scope, correct?&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Symbol not included in compiled hex file</title><link>https://devzone.nordicsemi.com/thread/523087?ContentTypeID=1</link><pubDate>Fri, 14 Feb 2025 15:09:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cdd9611c-808f-41bf-a8ea-a28ae991da75</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Markus,&amp;nbsp;&lt;br /&gt;Do you have a minimum sample that demonstrate the issue so we can test here ?&amp;nbsp;&lt;br /&gt;When you debug,&amp;nbsp; do you see the value of for example tx_buffer[] array ?&amp;nbsp;&lt;br /&gt;Can&amp;nbsp; you step in the code normally ?&amp;nbsp;&lt;br /&gt;Could you try adding&amp;nbsp;CONFIG_DEBUG_OPTIMIZATIONS=y&amp;nbsp; to prj.conf?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>