<?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>nRF Connect for Visual Studio Code Debugger does not show memory locations of variables / wrong peripheral names / randomly stale build configurations</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111431/nrf-connect-for-visual-studio-code-debugger-does-not-show-memory-locations-of-variables-wrong-peripheral-names-randomly-stale-build-configurations</link><description>Hi, when I debug my software (nrf5340 cpuapp) from the nRF Connect plugin in VS Code, when I hover over variables and buffers, only the content of the variables is shown, but not their memory location. Also, if I add a variable or array to watch, I still</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 05 Jul 2024 13:12:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111431/nrf-connect-for-visual-studio-code-debugger-does-not-show-memory-locations-of-variables-wrong-peripheral-names-randomly-stale-build-configurations" /><item><title>RE: nRF Connect for Visual Studio Code Debugger does not show memory locations of variables / wrong peripheral names / randomly stale build configurations</title><link>https://devzone.nordicsemi.com/thread/492471?ContentTypeID=1</link><pubDate>Fri, 05 Jul 2024 13:12:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edf60ed8-4d9a-4e47-9583-0f00f4dfb7f7</guid><dc:creator>remtec</dc:creator><description>&lt;p&gt;I agree, it&amp;#39;s inconvenient not to see the memory location of variables entered in the control window.&lt;br /&gt;Sometimes it is useful to understand if the variables have been defined correctly!&lt;br /&gt;Even with the debug symbol active, nothing changes for me.&lt;br /&gt;However, if you enter the variable with the &amp;amp; symbol in front you will be able to see the address and then go and check on the memory map.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect for Visual Studio Code Debugger does not show memory locations of variables / wrong peripheral names / randomly stale build configurations</title><link>https://devzone.nordicsemi.com/thread/489149?ContentTypeID=1</link><pubDate>Mon, 17 Jun 2024 16:13:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34506cc2-6f8d-4182-81d8-417da550f990</guid><dc:creator>GioNor</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;in the &amp;quot;debugger view&amp;quot; try to add a watch like this:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;(NRF_CLOCK_Type *)0x50005000&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So you can bypass the _NS issue and access directly to registers addresses you need.&lt;/p&gt;
&lt;p&gt;Of course, cast the address with the right structure.&lt;/p&gt;
&lt;p&gt;Check the Product Specification for addresses.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect for Visual Studio Code Debugger does not show memory locations of variables / wrong peripheral names / randomly stale build configurations</title><link>https://devzone.nordicsemi.com/thread/486086?ContentTypeID=1</link><pubDate>Tue, 28 May 2024 07:04:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:799ba17f-e8ba-4c0c-b3df-0dfa6a37c7c6</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Michael,&lt;/p&gt;
[quote user=""]when I debug my software (nrf5340 cpuapp) from the nRF Connect plugin in VS Code, when I hover over variables and buffers, only the content of the variables is shown, but not their memory location. Also, if I add a variable or array to watch, I still cannot see its memory location. This is pretty inconvenient.[/quote]
&lt;p&gt;In the extension, you have some features in the debugging like a memory explorer. To get this information you need to &lt;a href="https://docs.nordicsemi.com/bundle/nrf-connect-vscode/page/guides/debug_use.html#how-to-enable-debugging"&gt;enable the debug symbol when building&lt;/a&gt;. There is also the&lt;a href="https://docs.nordicsemi.com/bundle/nrf-connect-vscode/page/reference/ui_panel.html#memory-explorer-tooltips"&gt; memory explorer tooltips&lt;/a&gt; and also the&lt;a href="https://docs.nordicsemi.com/bundle/nrf-connect-vscode/page/reference/ui_sidebar_debugging.html#peripherals"&gt; peripherals view&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
[quote user=""]Further, when I try to check the contents of peripheral registers, (almost) all peripherals are named *_NS in the debugger view, even though I do not use TF-M. I use the standard nRF5340DK cpuapp build target without _ns. Is this a bug?[/quote]
&lt;p&gt;I will check this internally with the team and get back to you soon.&lt;/p&gt;
[quote user=""]The nRF Connect plugin for VS code tells me all the time that my code is stale and needs a pristine build. Even when I didn&amp;#39;t change a single thing in the configuration. Any idea what could be the reason?[/quote]
&lt;p&gt;A build configuration can become stale if it has been built with SDK or Toolchain settings different than the currently selected ones. Then this can happen even if you haven&amp;#39;t made any changes to your code. To update a stale build configuration, you can run the Pristine Build option from the Actions View.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But yes, there was also a similar problem where even after pristine build the stale state warning continued, but this was for a previous version of the VSCode extension. Which is the version that you are working on? I would suggest you to try updating it to the latest version if you have not done it yet.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>