<?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>Help with nRF Connect SDK on Visual Studio Code extension</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80748/help-with-nrf-connect-sdk-on-visual-studio-code-extension</link><description>Hi, I am new to the nRF Connect extension in VS Code and I am having trouble including dealy.h header file to utilize a DelayMs() function. I found the delay.h in the sdk folder but when I include it and try to build it says: No such file or directory</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 19 Oct 2021 16:28:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80748/help-with-nrf-connect-sdk-on-visual-studio-code-extension" /><item><title>RE: Help with nRF Connect SDK on Visual Studio Code extension</title><link>https://devzone.nordicsemi.com/thread/334940?ContentTypeID=1</link><pubDate>Tue, 19 Oct 2021 16:28:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:185b686d-8195-4fd2-9935-934380ae12e7</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Michael&lt;/p&gt;
&lt;p&gt;We prepared a tutorial series to help getting started with VSCode and the nRF Connect SDK, available &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Connect-for-VS-Code/Tutorials#infotabs"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Can you start by looking through those?&lt;/p&gt;
&lt;p&gt;If you still have questions afterwards I will do my best to help &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help with nRF Connect SDK on Visual Studio Code extension</title><link>https://devzone.nordicsemi.com/thread/334655?ContentTypeID=1</link><pubDate>Mon, 18 Oct 2021 14:14:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d994389-8a64-43a8-9adf-da2c4a231241</guid><dc:creator>mjlucky</dc:creator><description>&lt;p&gt;Thanks for the reply!&lt;/p&gt;
&lt;p&gt;I found the DelayMS() within the 1.7.0 SDK folder somewhere buried which does not sounds like I am using the SDK the right way. I guess proper utilization of the SDK on VS Code is more what I am getting at and can refine my inquiry for you.&lt;/p&gt;
&lt;p&gt;I am used to utilizing Silicon Labs HAL documentation and simplicity studio where I knew which document source to find functions and it would tell me which header file to include in my project, then simplicity would automatically have the files available for the build based on which board I am using and I would just have to make sure I did a #include for the proper header file. Since I am new to it, nrf connect SDK documentation confuses me,&amp;nbsp;I am confused&amp;nbsp;on how to use the documentation and it is hard for me to find the header files the functions are from that I want to use so I can add them to my app. I have also not used Zephyr before and am confused on when to use it vs nrf functions and how to include everything in my application on VS code. I will refine my questions for you.&lt;/p&gt;
&lt;p&gt;What is the document source that you use to look up functions when utilizing the SDK, also what is the best practice or workflow you have seen when working with these documents?&lt;/p&gt;
&lt;p&gt;How do you ensure that the correct header files are linked within the app in VS Code&amp;nbsp;&lt;span&gt;on the nRF Connect extension&amp;nbsp;&lt;/span&gt;when utilizing SDK functions?&lt;/p&gt;
&lt;p&gt;How do I include my own header and source files within my project within VS Code on the nRF Connect extension?&lt;/p&gt;
&lt;p&gt;Thank you so much for your help!&lt;/p&gt;
&lt;p&gt;Michael&lt;/p&gt;
&lt;p&gt;PS, I did find the below link which seems to be answering some of my questions on how to link my own files to the build, but is for SES instead of VS Code&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/gs_modifying.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/gs_modifying.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help with nRF Connect SDK on Visual Studio Code extension</title><link>https://devzone.nordicsemi.com/thread/334529?ContentTypeID=1</link><pubDate>Mon, 18 Oct 2021 09:29:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a69eb1f-863d-42a8-90d6-63c9daabf9c7</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Zephyr comes with it&amp;#39;s own set of delay functions, such as &lt;a href="https://docs.zephyrproject.org/latest/reference/kernel/threads/index.html#c.k_msleep"&gt;k_msleep()&lt;/a&gt; and &lt;a href="https://docs.zephyrproject.org/latest/reference/kernel/threads/index.html#c.k_usleep"&gt;k_usleep()&lt;/a&gt;, and these are the ones you should use for nRF Connect SDK projects.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;These functions will suspend the current thread for the duration of the delay, and if no threads are running the CPU will be put to sleep automatically in order to reduce power consumption.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am not sure where the DelayMs() function comes from. Was this function referenced from&amp;nbsp;one of our&amp;nbsp;documentation pages or&amp;nbsp;walkthroughs?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>