<?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>Manually added source files in SES can&amp;#39;t access zephyr.h</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85396/manually-added-source-files-in-ses-can-t-access-zephyr-h</link><description>Hey guys, 
 i tried my best did my own research, but i can&amp;#39;t get it to work. 
 I&amp;#39;m trying to manually add .c and .h files to a project in Segger Embedded Studio ialso put them in the src folder where the main.c file is. 
 I can include the header file</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 03 Mar 2022 13:26:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85396/manually-added-source-files-in-ses-can-t-access-zephyr-h" /><item><title>RE: Manually added source files in SES can't access zephyr.h</title><link>https://devzone.nordicsemi.com/thread/356064?ContentTypeID=1</link><pubDate>Thu, 03 Mar 2022 13:26:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d9148c6-d3bf-4d44-a4cd-50196a55758e</guid><dc:creator>jannis</dc:creator><description>&lt;p&gt;OK, sorry i search for such a long time and found the answer after i bothered you &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f605.svg" title="Sweat smile"&gt;&amp;#x1f605;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;For someone having the same problems:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;in the CMakeLists.txt file in your project root, you need to put the nordic sdk start and end tags. Then you can add files to your cmake projects by rightclicking the project and then clicking adding new/existing file to cmakelists.txt. That does the trick.&lt;/p&gt;
&lt;p&gt;# NORDIC SDK APP START&lt;br /&gt;target_sources(app PRIVATE src/main.c src/helpers.c src/helpers.c)&lt;br /&gt;&lt;br /&gt;# NORDIC SDK APP END&lt;/p&gt;
&lt;p&gt;Have a nice day!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>