<?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>NCS: How to fix broken debug built?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81941/ncs-how-to-fix-broken-debug-built</link><description>Dear NCS experts, 
 When trying to debug in VSCode by hitting F5 (or Menu: Run-&amp;gt;Start Debugging), compilation fails with: fatal error: zephyr.h: No such file or directory The full output looks like: 
 &amp;gt; Executing task: C/C++: arm-none-eabi-gcc build active</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 22 Nov 2021 14:56:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81941/ncs-how-to-fix-broken-debug-built" /><item><title>RE: NCS: How to fix broken debug built?</title><link>https://devzone.nordicsemi.com/thread/340140?ContentTypeID=1</link><pubDate>Mon, 22 Nov 2021 14:56:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d5ff433-0155-4283-851c-13f10e951a96</guid><dc:creator>BlueMike</dc:creator><description>&lt;p&gt;Hi &lt;span style="font-size:inherit;"&gt;H&amp;aring;kon&lt;/span&gt;,&lt;/p&gt;
&lt;p&gt;Thank you very much for the quick reply! Unfortunately I&amp;#39;ve missed the &lt;strong&gt;libncurses5&lt;/strong&gt; dependency. Debugging is working well now - when pushing the &amp;quot;Debug&amp;quot; button at the &lt;strong&gt;nRF Connect for VS Code&lt;/strong&gt; sidebar.&lt;/p&gt;
&lt;p&gt;Might be a good idea mentioning libncurses5 at: &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/getting_started/installation_linux.html#installation-linux"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/getting_started/installation_linux.html#installation-linux&lt;/a&gt; Can you please forward this to your colleague who&amp;#39;s maintaining the Linux installation guide?&amp;nbsp;&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Hitting F5 (or selecting Run-&amp;gt;Start Debugging at the menu) still causes the compiler to complain that it can&amp;#39;t find the include files, but that&amp;#39;s ok, since it&amp;#39;s working from the plugin.&lt;/p&gt;
&lt;p&gt;Again, thanks for your help,&lt;br /&gt;Michael.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS: How to fix broken debug built?</title><link>https://devzone.nordicsemi.com/thread/340076?ContentTypeID=1</link><pubDate>Mon, 22 Nov 2021 13:14:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1dc8d402-f216-4300-91bb-bc7a879f252d</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;&lt;span style="font-size:inherit;"&gt;Hi BlueMike, &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;I found this comment:&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div style="font-family:&amp;#39;Segoe UI&amp;#39;, system-ui, &amp;#39;Apple Color Emoji&amp;#39;, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0;text-transform:none;white-space:normal;"&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;&amp;quot;For nRF Connect SDK 1.7.0 on Ubuntu you need to install the libcurses5 package to get debugging to work. This can be done by running &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;&lt;code&gt;sudo apt install libncurses5&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin-bottom:11px;"&gt;&lt;span style="font-size:inherit;"&gt;In addi&lt;span style="font-family:&amp;#39;Segoe UI&amp;#39;, system-ui, &amp;#39;Apple Color Emoji&amp;#39;, &amp;#39;Segoe UI Emoji&amp;#39;, sans-serif;"&gt;&lt;span style="letter-spacing:normal;"&gt;&lt;span style="text-transform:none;"&gt;&lt;span style="white-space:normal;"&gt;&lt;span style="line-height:107%;"&gt;&lt;span style="font-family:Calibri, sans-serif;"&gt;tion CMake needs to be updated to &amp;gt; 3.20 according to the 1.7.0 getting started documentation&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&amp;quot;.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin-bottom:11px;"&gt;&lt;/p&gt;
&lt;p style="margin-bottom:11px;"&gt;&lt;span style="font-size:inherit;"&gt;Best regards, &lt;/span&gt;&lt;/p&gt;
&lt;p style="margin-bottom:11px;"&gt;&lt;span style="font-size:inherit;"&gt;Håkon&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>