<?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/"><channel><title>nRF Connect SDK Tutorial - Part 1 | NCS v1.2.0</title><link>/nordic/b/archives/posts/ncs-tutorial---temporary</link><description>&amp;rarr; Check out the preceding part of this tutorial series before starting on this: nRF Connect SDK Tutorial series - Part 0 

This part of the NCS Tutorial series will be short and concise and will get you up and running with NCS and your ...</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><item><title>RE: nRF Connect SDK Tutorial - Part 1 | NCS v1.2.0</title><link>https://devzone.nordicsemi.com/nordic/b/archives/posts/ncs-tutorial---temporary</link><pubDate>Thu, 02 Jul 2020 15:33:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24c6c8a3-0653-4dc5-8e56-acdb627d1f57</guid><dc:creator>RAlexeev</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;When I followed this instruction on the stage of &amp;quot;Open nRF Connect SDK Project&amp;quot; I had an error:&lt;br /&gt;[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:e754a41a-157b-4ac7-b010-c7d863d0715e:type=text&amp;text=CMake%20Error%20at%20%2Fhome%2Froman%2Fnordic%2Fncs%2Fnrf%2Fcmake%2Fboilerplate.cmake%3A12%20%28include%29%3A%0D%0A%20%20include%20could%20not%20find%20load%20file%3A%0D%0A%0D%0A%20%20%20%20%2Fboards%2Fdeprecated.cmake%0D%0ACall%20Stack%20%28most%20recent%20call%20first%29%3A%0D%0A%20%20CMakeLists.txt%3A2%20%28include%29%0D%0A%0D%0A%0D%0Anrf5340pdk_nrf5340_cpuapp.dts.pre.tmp%3A95.42-107.3%3A%20Warning%20%28unique_unit_address_if_enabled%29%3A%20%2Fsoc%2Fperipheral%4050000000%2Fflash-controller%4039000%3A%20duplicate%20unit-address%20%28also%20used%20in%20node%20%2Fsoc%2Fperipheral%4050000000%2Fkmu%4039000%29%0D%0Anrf5340pdk_nrf5340_cpuapp.dts.pre.tmp%3A369.19-375.3%3A%20Warning%20%28unique_unit_address_if_enabled%29%3A%20%2Fsoc%2Fperipheral%4050000000%2Fclock%405000%3A%20duplicate%20unit-address%20%28also%20used%20in%20node%20%2Fsoc%2Fperipheral%4050000000%2Fpower%405000%29%0D%0Anrf5340pdk_nrf5340_cpuapp.dts.pre.tmp%3A616.31-617.5%3A%20Warning%20%28unique_unit_address_if_enabled%29%3A%20%2Freserved-memory%2Fimage%4020000000%3A%20duplicate%20unit-address%20%28also%20used%20in%20node%20%2Freserved-memory%2Fimage_s%4020000000%29%0D%0A%20%20also%20defined%20at%20nrf5340pdk_nrf5340_cpuapp.dts.pre.tmp%3A636.14-638.3%0D%0A%0D%0Aerror%3A%20UART_0_NRF_UARTE%20%28defined%20at%20drivers%2Fserial%2FKconfig.nrfx%3A31%29%20is%20assigned%20in%20a%20configuration%0D%0Afile%2C%20but%20is%20not%20directly%20user-configurable%20%28has%20no%20prompt%29.%20It%20gets%20its%20value%20indirectly%20from%20other%0D%0Asymbols.%20See%20http%3A%2F%2Fdocs.zephyrproject.org%2Flatest%2Freference%2Fkconfig%2FCONFIG_UART_0_NRF_UARTE.html%0D%0Aand%2For%20look%20up%20UART_0_NRF_UARTE%20in%20the%20menuconfig%2Fguiconfig%20interface.%20The%20Application%20Development%0D%0APrimer%2C%20Setting%20Configuration%20Values%2C%20and%20Kconfig%20-%20Tips%20and%20Best%20Practices%20sections%20of%20the%20manual%0D%0Amight%20be%20helpful%20too.%0D%0A%0D%0ACMake%20Error%20at%20%2Fhome%2Froman%2Fnordic%2Fncs%2Fzephyr%2Fcmake%2Fkconfig.cmake%3A217%20%28message%29%3A%0D%0A%20%20command%20failed%20with%20return%20code%3A%201%0D%0ACall%20Stack%20%28most%20recent%20call%20first%29%3A%0D%0A%20%20%2Fhome%2Froman%2Fnordic%2Fncs%2Fzephyr%2Fcmake%2Fapp%2Fboilerplate.cmake%3A506%20%28include%29%0D%0A%20%20CMakeLists.txt%3A3%20%28include%29]&lt;br /&gt;&lt;br /&gt;But when I removed all content in &amp;quot;prj.conf&amp;quot; and in &amp;quot;CMakeLists.txt&amp;quot; file I replaced&lt;br /&gt;[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:065ceb0d-1c21-423e-909e-55b7e910d4a5:type=text&amp;text=include%28%24ENV%7BZEPHYR_BASE%7D%2F..%2Fnrf%2Fcmake%2Fboilerplate.cmake%29%0D%0Ainclude%28%24ENV%7BZEPHYR_BASE%7D%2Fcmake%2Fapp%2Fboilerplate.cmake%20NO_POLICY_SCOPE%29]&lt;br /&gt;on&lt;br /&gt;[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:7f45c2f1-8b50-4913-aebb-e8c9e81da5a3:type=text&amp;text=find_package%28Zephyr%20HINTS%20%24ENV%7BZEPHYR_BASE%7D%29]&lt;br /&gt;then everything worked properly.&lt;/p&gt;&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=1289&amp;AppID=30&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: nRF Connect SDK Tutorial - Part 1 | NCS v1.2.0</title><link>https://devzone.nordicsemi.com/nordic/b/archives/posts/ncs-tutorial---temporary</link><pubDate>Sat, 09 May 2020 20:02:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24c6c8a3-0653-4dc5-8e56-acdb627d1f57</guid><dc:creator>erik</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Great tutorial.&lt;/p&gt;
&lt;p&gt;When attempting to &lt;span&gt;&lt;strong&gt;Build and flash - using SEGGER Embedded Studio &lt;/strong&gt;for nRF52840-pca10056 on macOS we ran into a couple of issues:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;1. Unclear whether one should create a Segger .proj file. We assume one should point to directory created earlier in tutorial, however it doesn&amp;#39;t have a .proj file, so we created a new one and added main.c. Unclear if ok to leave `Toolchain Root Directory = $(StudioDir)/gcc/$(GCCTarget)/bin` or need to change this.&lt;/p&gt;
&lt;p&gt;(Note: When opening Segger, it initially pointed to a Hello world file that is located in same dir as the Segger application, however that sub dir doesn&amp;#39;t have a CMakeLists.tx file, so didn&amp;#39;t seem right either.)&lt;/p&gt;
&lt;p&gt;2. After opening`&lt;span style="font-weight:400;"&gt;File &amp;rarr; Open nRF Connect SDK Project...&lt;/span&gt;` , configuring and pressing &amp;lt;ok&amp;gt; the project starts to build, but we got a CMake error. We determined there was an extra space in value for&lt;/p&gt;
&lt;p&gt;Tools-&amp;gt;Options-&amp;gt;nRF Connect -&amp;gt;Additional CMake Options `-D WEST=/usr/local/bin/west`&lt;/p&gt;
&lt;p&gt;(should be `-DWEST=...`&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3. Once above was fixed, we were able to start building, however the build failed when compiling uart_nrfx_uarte.c. Several MACRO are undefined, including UARTE_CONFIG and&lt;strong&gt; &lt;/strong&gt;&lt;/span&gt;DT_NORDIC_NRF_UARTE_UART_0_CURRENT_SPEED. Reported build error is&lt;/p&gt;
&lt;pre&gt;uart_nrfx_uarte.c:1396:9: error: &amp;#39;DT_NORDIC_NRF_UARTE_UART_0_LABEL&amp;#39; undeclared here&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;4. To address this plunged into the Kconfig settings&lt;br /&gt;Project-&amp;gt;Configure nRF Connect .. which brings up a GUI for setting Kconfig&lt;br /&gt;In top right corner entered UARTE in search box. In the displayed driver options&lt;br /&gt;selected `Modules -&amp;gt; nrfx drivers -&amp;gt;Enable UARTE driver` and `Enable UARTE0 instance`&lt;br /&gt;Hit configure and then rebuild. Even after this, we get same error and can&amp;#39;t see &lt;br /&gt;any obvious Kconfig errors. &lt;br /&gt;Note: Segger editor shows which MACROs and #define that are true,&lt;br /&gt;which is very useful when hunting down Kconfig problems.&lt;br /&gt;&lt;br /&gt;At this point stumped on how to move forward....&lt;/pre&gt;&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=1289&amp;AppID=30&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: nRF Connect SDK Tutorial - Part 1 | NCS v1.2.0</title><link>https://devzone.nordicsemi.com/nordic/b/archives/posts/ncs-tutorial---temporary</link><pubDate>Mon, 04 May 2020 16:37:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24c6c8a3-0653-4dc5-8e56-acdb627d1f57</guid><dc:creator>jrowe</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;for those using the toolchain manger, you need to run all of your terminal commands using the git-bash.exe termianl in the NCS/toolchain folder.&lt;/p&gt;&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=1289&amp;AppID=30&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: nRF Connect SDK Tutorial - Part 1 | NCS v1.2.0</title><link>https://devzone.nordicsemi.com/nordic/b/archives/posts/ncs-tutorial---temporary</link><pubDate>Wed, 26 Feb 2020 10:24:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24c6c8a3-0653-4dc5-8e56-acdb627d1f57</guid><dc:creator>Andrey Dodonov</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;&lt;span&gt;For those wondering how to build for Thingy91 (I prefer this little guy since it has awesome sensors on-board):&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Include NRF boilerplate to your CMakeLists.txt,&amp;nbsp;include($ENV{ZEPHYR_BASE}/../nrf/cmake/boilerplate.cmake)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;E.g.:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:05477a1d-da6a-46e1-addd-f3040bd6d0fb:type=c_cpp&amp;text=cmake_minimum_required%28VERSION%203.13.1%29%0D%0Ainclude%28%24ENV%7BZEPHYR_BASE%7D%2F..%2Fnrf%2Fcmake%2Fboilerplate.cmake%29%0D%0Ainclude%28%24ENV%7BZEPHYR_BASE%7D%2Fcmake%2Fapp%2Fboilerplate.cmake%20NO_POLICY_SCOPE%29%0D%0Aproject%28NONE%29%0D%0Atarget_sources%28app%20PRIVATE%20src%2Fmain.c%29]&lt;/p&gt;
&lt;p&gt;Then build using cmake directly (not sure how to set board directly with west, unless with environment variables):&lt;/p&gt;
&lt;p&gt;cmake -GNinja -DBOARD=nrf9160_pca20035ns -DBOARD_DIR=%ZEPHYR_BASE%/../nrf/boards/arm/nrf9160_pca20035 -Bbuild&lt;/p&gt;
&lt;p&gt;or if you are using bash/mingw/*nix:&lt;/p&gt;
&lt;p&gt;cmake -GNinja -DBOARD=nrf9160_pca20035ns -DBOARD_DIR=$&lt;span&gt;ZEPHYR_BASE/..&lt;/span&gt;/nrf/boards/arm/nrf9160_pca20035 -Bbuild&lt;/p&gt;&lt;img src="https://devzone.nordicsemi.com/aggbug?PostID=1289&amp;AppID=30&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>