<?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>Not sure how to set up a project.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/118784/not-sure-how-to-set-up-a-project</link><description>I&amp;#39;m using the visual studio code extension and things work well. I am now trying to test a more complex project found here but when pressing build I get some very long errors that I think mainly have to do with `my_pwm0` not being found in the device</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Feb 2025 17:29:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/118784/not-sure-how-to-set-up-a-project" /><item><title>RE: Not sure how to set up a project.</title><link>https://devzone.nordicsemi.com/thread/522937?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2025 17:29:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfbaec81-17a1-435c-a587-3ad0158c1b89</guid><dc:creator>greenleaf</dc:creator><description>&lt;p&gt;Yes, I&amp;#39;ll probably have to explore more on my own until I figure this out.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not sure how to set up a project.</title><link>https://devzone.nordicsemi.com/thread/522835?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2025 11:53:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:188024e4-3611-4376-9ab0-668ac45e5777</guid><dc:creator>Elfving</dc:creator><description>[quote user="greenleaf"]What errors did you have? [/quote]
&lt;p&gt;I&amp;#39;m building it for 2.6.1 here, but I don&amp;#39;t think it should make too much of a difference.&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/114645/windows-filepath-build-issue"&gt;It seems I am getting this issue for some reason&lt;/a&gt;, not sure why.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="greenleaf"]I clicked &amp;quot;Add Build Configuration&amp;quot; just as in the tutorial of the beginner course. Selected the board, and left all the rest as default. That&amp;#39;s why I was wondering if my mistake was maybe not setting up the &amp;quot;Extra Kconfig&amp;quot;![/quote]
&lt;p&gt;Could be. I see that it has a preset that comes with many configurations being set, I used those for my build.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Interestingly, when just building a default PWM sample for the board it works well. I would try contacting the guys who made this project, and otherwise try to build something from scratch with NCS.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not sure how to set up a project.</title><link>https://devzone.nordicsemi.com/thread/522734?ContentTypeID=1</link><pubDate>Wed, 12 Feb 2025 18:47:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4f76219-cab2-4ef9-83ea-8e4a28a860be</guid><dc:creator>greenleaf</dc:creator><description>&lt;p&gt;I see. I didn&amp;#39;t do the Intermediate course yet. I wanted to jump to this project because it&amp;#39;s very similar to what I wanted to do for my garden. But I want to use the DK instead of some custom board.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I clicked &amp;quot;Add Build Configuration&amp;quot; just as in the tutorial of the beginner course. Selected the board, and left all the rest as default. That&amp;#39;s why I was wondering if my mistake was maybe not setting up the &amp;quot;Extra Kconfig&amp;quot;!&lt;br /&gt;&lt;br /&gt;What errors did you have? For me the errors are really long, but sifting through them I think the underlying reason is the device tree. Maybe I was mistaken. I get:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;pwm.c:36:63: note: in expansion of macro &amp;#39;NSLEEP&amp;#39;
   36 | static const struct gpio_dt_spec nsleep_io = GPIO_DT_SPEC_GET(NSLEEP, gpios);
   
   ...
   
pwm.c:25:16: note: in expansion of macro &amp;#39;DT_ALIAS&amp;#39;
   25 | #define NSLEEP DT_ALIAS(nsleep)
   
   ...
   
pwm.c:36:46: note: in expansion of macro &amp;#39;GPIO_DT_SPEC_GET&amp;#39;
   36 | static const struct gpio_dt_spec nsleep_io = GPIO_DT_SPEC_GET(NSLEEP, gpios);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Even the `#error` in `adc.c` throws an error, even though using the same thing inside `main.c` causes no issue at all.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not sure how to set up a project.</title><link>https://devzone.nordicsemi.com/thread/522577?ContentTypeID=1</link><pubDate>Wed, 12 Feb 2025 08:38:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b027af7-e891-4c2a-a60f-8f5fe39143d3</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;How to use pwm is &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-4-pulse-width-modulation-pwm/"&gt;gone through here in the intermediate course&lt;/a&gt;, having a look there might be better than using this project.&lt;/p&gt;
[quote user="greenleaf"]Yes, it actually can be found inside the &lt;a href="https://github.com/Uhome-systems/Uhome/blob/main/Software/nRF_Connect_SDK_2.6.0/TWV_nRF_Connect_SDK_project/boards/arm/twv_pcb_0_6/twv_pcb_0_6.dts"&gt;arm&lt;/a&gt; folder. [/quote]
&lt;p&gt;Ah I see. Sorry, I didnt check the board earlier. That node should be found.&amp;nbsp;&lt;span style="font-family:inherit;"&gt;I tried building it myself now, and got some errors, but different ones than you. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Did you use the cmake preset or just build for the board? Did you double check that the toolchain and NCS version used for the build was correct?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not sure how to set up a project.</title><link>https://devzone.nordicsemi.com/thread/522558?ContentTypeID=1</link><pubDate>Wed, 12 Feb 2025 03:50:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e58ca33f-3252-4907-8cd1-6f3540d68e57</guid><dc:creator>greenleaf</dc:creator><description>&lt;p&gt;Hi Elfving,&lt;/p&gt;
&lt;p&gt;Yes, it actually can be found inside the &lt;a href="https://github.com/Uhome-systems/Uhome/blob/main/Software/nRF_Connect_SDK_2.6.0/TWV_nRF_Connect_SDK_project/boards/arm/twv_pcb_0_6/twv_pcb_0_6.dts"&gt;arm&lt;/a&gt; folder. I did the beginner course on dev academy, but now that I&amp;#39;m trying to do practical things on my own, I&amp;#39;m still a bit confused.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not sure how to set up a project.</title><link>https://devzone.nordicsemi.com/thread/522156?ContentTypeID=1</link><pubDate>Mon, 10 Feb 2025 10:06:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b326a7a1-f286-49d7-8a7b-c341299a3557</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;No I am not familiar with this project, and it doesn&amp;#39;t seem to be made by someone from Nordic. So it might be that it needs something that was failed to be uploaded on github.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If something like &amp;quot;&lt;span&gt;my_pwm0&amp;quot; is not being found it sounds like there is an overlay file missing.&amp;nbsp;I see there is a referance to a node called&amp;nbsp;my_pwm0 that I am not immediately seeing. Are you able to find it when searching through the project with ctrl+shift+F in VSC?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I should also mention that the &lt;a href="https://academy.nordicsemi.com/"&gt;DevAcademy &lt;/a&gt;is great starting point if you haven&amp;#39;t seen it allready.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Elfving&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>