<?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>Header Files not adding</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/89104/header-files-not-adding</link><description>Hi there, 
 
 I can&amp;#39;t seem to add header files to my project. 
 
 
 The header files underlined in red are not from the Nordic SDK installed from the Toolchain Manager. 
 I have the header files added in an inc folder and the path in the c_cpp_properties</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 20 Jun 2022 12:30:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/89104/header-files-not-adding" /><item><title>RE: Header Files not adding</title><link>https://devzone.nordicsemi.com/thread/373233?ContentTypeID=1</link><pubDate>Mon, 20 Jun 2022 12:30:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2030454-b0a3-412c-9c8b-9955ea3d8b38</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;Hello!&lt;/p&gt;
&lt;p&gt;What exactly are you trying to add to your project?&lt;/p&gt;
&lt;p&gt;It looks like you might be trying to add libraries from a different SDK, maybe to port a project you had in an old SDK over to NCS?&lt;/p&gt;
&lt;p&gt;If that is the case, I would advise you to not use those old libraries and instead use the libraries that are available to you in Zephyr, such as&amp;nbsp;&lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/hardware/peripherals/uart.html"&gt;UART&lt;/a&gt;,&amp;nbsp;&lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/kernel/services/scheduling/index.html"&gt;scheduling&lt;/a&gt;, etc.&lt;/p&gt;
&lt;p&gt;Though if you still want to include your own header files, then I haven&amp;#39;t seen json files like these used in Zephyr.&lt;/p&gt;
&lt;p&gt;Have a look at the typical Zephyr project structure illustrated &lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/build/zephyr_cmake_package.html#zephyr-freestanding-application"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You could try to point cmake towards your source code using the target_sources build script in CMakeLists.txt as described &lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/build/cmake/index.html#build-system-cmake"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;But only if you&amp;#39;re trying to include your own header files, please do not try to include header files from old SDKs outside NCS.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>