<?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>&amp;quot;No definition found&amp;quot; in Button example using VSC</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101583/no-definition-found-in-button-example-using-vsc</link><description>Hello everyone, 
 We have installed NRF Connect SDK / Toolchain through the Connect App. We then open up VSC and &amp;quot;Open an existing application&amp;quot;, choose from &amp;quot;C:\ncs\v2.4.0\zephyr\samples\basic\button&amp;quot; and let it compile. 
 When right click and select</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 12 Jul 2023 12:31:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101583/no-definition-found-in-button-example-using-vsc" /><item><title>RE: "No definition found" in Button example using VSC</title><link>https://devzone.nordicsemi.com/thread/435973?ContentTypeID=1</link><pubDate>Wed, 12 Jul 2023 12:31:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:572e6011-d00b-4ddf-9a86-11548d5d87be</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If you haven&amp;#39;t already I recommend to start with the nRF Connect SDK Fundamentals course:&lt;br /&gt;&lt;a href="https://academy.nordicsemi.com/"&gt;https://academy.nordicsemi.com/&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Normally you can go to definition for variables, but those devicetree aliases (DT_ALIAS(..))&amp;nbsp;might be the exception. You will need to open the .dts file for the board you are working with, in my case nrf52840dk_nrf52840.dts.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "No definition found" in Button example using VSC</title><link>https://devzone.nordicsemi.com/thread/435361?ContentTypeID=1</link><pubDate>Sun, 09 Jul 2023 07:41:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3018bb2-6f78-44ab-a6b8-1378d6d7a4e1</guid><dc:creator>Elith</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have build it (first pristine, then normal build). Does not work. Also, I have made sure that 2.4.0 toolchain is installed and is what is used.&lt;/p&gt;
&lt;p&gt;What I select after opening existing application in the build configuration:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:793px;max-width:1040px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/2080x1586/__key/communityserver-discussions-components-files/4/5148.build_5F00_config.png" /&gt;&lt;/p&gt;
&lt;p&gt;Then I do a pristine build, after which is complains that the CMAKE extension is not the correct one (I just did a complete fresh install on a brand new computer, which is the fourth computer on which I can reproduce this exact issue!).&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:793px;max-width:1040px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/2080x1586/__key/communityserver-discussions-components-files/4/warning_5F00_cmake.png" /&gt;&lt;/p&gt;
&lt;p&gt;So I disable that extension, now NRF connect VSC thing is happy... I then save the workspace and do a normal compile (click the Build button), and I get the following warnings:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:700px;max-width:1040px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/2080x1400/__key/communityserver-discussions-components-files/4/save_5F00_workspace_5F00_warnings.png" /&gt;&lt;/p&gt;
&lt;p&gt;And the go to definition for the sw0 is still not working.&lt;/p&gt;
&lt;p&gt;Now, it seems to me it has to do with linking the devicetree with the C file(s)?&lt;/p&gt;
&lt;p&gt;Also, I get the distinct feeling that this whole development platform using nRF connect desktop app, toolchain manager, VSC, VSC extensions, is half-baked and not at all ready for real usage? It seems to be on an Alpha testing level? But what else to use then? Or what is going on that I am clearly not understanding?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "No definition found" in Button example using VSC</title><link>https://devzone.nordicsemi.com/thread/435153?ContentTypeID=1</link><pubDate>Fri, 07 Jul 2023 08:53:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b10685ae-ffd6-4b23-ad91-71e397217d0e</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;Can you please compile (build) it first and then go to definition of sw0.&lt;/p&gt;
&lt;p&gt;Also, as you are choosing to open an existing application, please make sure that the correct sdk and the toolchain are selected.&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Naeem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>