<?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>nRF5340-DK problem starting own project ncs v1.5.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73738/nrf5340-dk-problem-starting-own-project-ncs-v1-5-0</link><description>HI 
 I&amp;#39;m in the process of evaluating nRF5340 but am new to Nordic chips and development environment. Im running Windows 10 and I installed nRF Connect 3.6.1 and installed the toolchain through it. 
 I managed to run the blinky proiect but have problems</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 Apr 2021 08:42:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73738/nrf5340-dk-problem-starting-own-project-ncs-v1-5-0" /><item><title>RE: nRF5340-DK problem starting own project ncs v1.5.0</title><link>https://devzone.nordicsemi.com/thread/305442?ContentTypeID=1</link><pubDate>Mon, 19 Apr 2021 08:42:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7eb1a12c-c70b-4e96-a28b-b91ac8bbbc74</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Great to hear that you got it up and running! I&amp;#39;m glad I could help.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340-DK problem starting own project ncs v1.5.0</title><link>https://devzone.nordicsemi.com/thread/305347?ContentTypeID=1</link><pubDate>Fri, 16 Apr 2021 18:43:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e44db49-cd1e-4b20-8fb5-da436bbdef8f</guid><dc:creator>Baldur</dc:creator><description>&lt;p&gt;Hi Carl Richard&lt;/p&gt;
&lt;p&gt;This was very helpful. I had cleaned the project, but&amp;nbsp; starting it over and checking&amp;nbsp;Clean build folder resulted in compilation and a running program :-)&lt;/p&gt;
&lt;p&gt;Studying the dev kit I found:&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width="47"&gt;
&lt;p&gt;SW1&lt;/p&gt;
&lt;/td&gt;
&lt;td width="66"&gt;
&lt;p&gt;P0.23&lt;/p&gt;
&lt;/td&gt;
&lt;td width="19"&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/td&gt;
&lt;td width="47"&gt;
&lt;p&gt;LED1&lt;/p&gt;
&lt;/td&gt;
&lt;td width="57"&gt;
&lt;p&gt;P0.28&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td width="47"&gt;
&lt;p&gt;SW2&lt;/p&gt;
&lt;/td&gt;
&lt;td width="66"&gt;
&lt;p&gt;P0.24&lt;/p&gt;
&lt;/td&gt;
&lt;td width="19"&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/td&gt;
&lt;td width="47"&gt;
&lt;p&gt;LED2&lt;/p&gt;
&lt;/td&gt;
&lt;td width="57"&gt;
&lt;p&gt;P0.29&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td width="47"&gt;
&lt;p&gt;SW3&lt;/p&gt;
&lt;/td&gt;
&lt;td width="66"&gt;
&lt;p&gt;P0.08&lt;/p&gt;
&lt;/td&gt;
&lt;td width="19"&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/td&gt;
&lt;td width="47"&gt;
&lt;p&gt;LED3&lt;/p&gt;
&lt;/td&gt;
&lt;td width="57"&gt;
&lt;p&gt;P0.30&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td width="47"&gt;
&lt;p&gt;SW4&lt;/p&gt;
&lt;/td&gt;
&lt;td width="66"&gt;
&lt;p&gt;P0.09&lt;/p&gt;
&lt;/td&gt;
&lt;td width="19"&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/td&gt;
&lt;td width="47"&gt;
&lt;p&gt;LED4&lt;/p&gt;
&lt;/td&gt;
&lt;td width="57"&gt;
&lt;p&gt;P0.31&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;I started on hello world program and modified it:&lt;/p&gt;
&lt;p&gt;#include &amp;lt;sys/printk.h&amp;gt;&lt;br /&gt;#include &amp;lt;device.h&amp;gt;&lt;br /&gt;#include &amp;lt;drivers/gpio.h&amp;gt;&lt;/p&gt;
&lt;p&gt;/* 1000 msec = 1 sec */&lt;br /&gt;#define SLEEP_TIME_MS 1000&lt;/p&gt;
&lt;p&gt;void BaldurTesting()&lt;br /&gt;{&lt;/p&gt;
&lt;p&gt;const struct device* port0 = device_get_binding(&amp;quot;GPIO_0&amp;quot;);&lt;br /&gt; if(port0==NULL)&lt;br /&gt; return;&lt;br /&gt; //int result = gpio_pin_configure(port0, 31, GPIO_DIR_PIN31_Output);&lt;br /&gt; int result = gpio_pin_configure(port0, 31, GPIO_OUTPUT_ACTIVE);&lt;/p&gt;
&lt;p&gt;while(1){&lt;br /&gt; gpio_pin_set(port0, 31,1);&lt;br /&gt; k_msleep(SLEEP_TIME_MS);&lt;br /&gt; gpio_pin_set(port0, 31,0);&lt;br /&gt; k_msleep(SLEEP_TIME_MS);&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;void main(void)&lt;br /&gt;{&lt;br /&gt; printk(&amp;quot;Hello Baldur! %s\n&amp;quot;, CONFIG_BOARD);&lt;br /&gt; BaldurTesting();&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This worked!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for all your help :-)&lt;/p&gt;
&lt;p&gt;Baldur&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340-DK problem starting own project ncs v1.5.0</title><link>https://devzone.nordicsemi.com/thread/305134?ContentTypeID=1</link><pubDate>Thu, 15 Apr 2021 14:08:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84f2534f-6fa2-465b-8400-fb1214da5757</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi again!&lt;br /&gt;&lt;br /&gt;#1 Did you also try to reopen the project with a &amp;quot;Clean build folder&amp;quot;? This is usually required when changing the DTS.&lt;br /&gt;&lt;br /&gt;#2 As I mentioned earlier configuration of projects is essentially done through two manners; Kconfigs and devicetree overlays. &lt;br /&gt;&lt;br /&gt;- &lt;strong&gt;Kconfigs&lt;/strong&gt; are a the options that can be configured for the different components of the SDK. In applications the default Kconfigs can be changed by editing the&lt;strong&gt; prj.conf&lt;/strong&gt; file of the project (which is located in the project folder). In the same manner you can have different &lt;strong&gt;.conf&lt;/strong&gt; file in a project for different configurations. For temporary configuration change in SES&amp;nbsp;you can go to &amp;quot;Project&amp;quot;-&amp;gt;&amp;quot;Configure nRF Connect SDK project&amp;quot;. This opens a window where you can search for and select the various configurations(Kconfig) for the project. As explained in the documentation on &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/gs_modifying.html#configuring-your-application"&gt;Configuring your application&lt;/a&gt;&amp;nbsp;you can change configuration permanently by changing the &lt;strong&gt;prj.conf&lt;/strong&gt; file in the project directory.&lt;br /&gt;&lt;br /&gt;- &lt;strong&gt;Devicetree overlays&lt;/strong&gt; are project files of the following format: &lt;strong&gt;&amp;lt;board_name&amp;gt;.overlay&lt;/strong&gt;. These are used to configure the available hardware resources of the target board. Take this I2C configuration as an example:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;i2c2 {
	status = &amp;quot;okay&amp;quot;;
	compatible = &amp;quot;nordic,nrf-twim&amp;quot;;
	sda-pin = &amp;lt;10&amp;gt;;
	scl-pin = &amp;lt;11&amp;gt;;
	clock-frequency = &amp;lt;100000&amp;gt;; 
};&lt;/pre&gt;&lt;br /&gt;The configurable properties for the different HW resources can be found in the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/devicetree/bindings.html#nordic-semiconductor-nordic"&gt;device tree bindings overview&lt;/a&gt;.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;The NCS/Zephyr development environment might come off as a bit overwhelming, and you have my apologies for that. I believe the best approach to get familiar with the SDK is to study existing samples and how they are set up, specifically looking at the project files, including .conf and .overlay.&lt;br /&gt;&lt;br /&gt;#3 This may take of a bit of topic and I suggest opening a new case for a more elaborate answer, but the best approach will likely be to start out with one of the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/subsys/usb/usb.html"&gt;Zephyr USB samples&lt;/a&gt;&amp;nbsp;and then add support for a MEMS microphone using the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/audio/dmic.html"&gt;Audio DMIC API&lt;/a&gt;. I see that there already are a couple of simple USB Audio samples with pre-existing configuration for the nRF5340 and nRF52840.&lt;br /&gt;&lt;br /&gt;Hope this answers some of you questions.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340-DK problem starting own project ncs v1.5.0</title><link>https://devzone.nordicsemi.com/thread/304940?ContentTypeID=1</link><pubDate>Wed, 14 Apr 2021 22:12:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbfa23ea-8c00-40d8-843f-c2640e1ef578</guid><dc:creator>Baldur</dc:creator><description>&lt;p&gt;Hi Carl Richard&lt;/p&gt;
&lt;p&gt;#1&lt;/p&gt;
&lt;p&gt;OK, now I can see the file nrf5340_cpuapp_common.dts&amp;nbsp; :-)&lt;/p&gt;
&lt;p&gt;Looking at it, the fixes looks logical:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1618436478039v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;But I still can not compile the project:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1618436627409v2.png" alt=" " /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;( I did restart Embedded Studio after the change)&lt;/p&gt;
&lt;p&gt;#2&lt;/p&gt;
&lt;p&gt;Looking at the&amp;nbsp;devicetree_unfixed.h file, it looks very complex with no obvious entry points. It is not clear to me how to set up clock frequencies and ports from this file. I also seeked kconfig files and found these:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1618437718936v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;It was not either clear to me from here where to start configuring. Is it correctly understood that these files are the place to go to set up the chip? What is a devicetree overlay?&lt;/p&gt;
&lt;p&gt;#3&lt;/p&gt;
&lt;p&gt;I would e.g. like to connect a mems microphone to the chip and send the data out on USB as audio. For a project like this, where do you recommend to start?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Baldur&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340-DK problem starting own project ncs v1.5.0</title><link>https://devzone.nordicsemi.com/thread/304435?ContentTypeID=1</link><pubDate>Tue, 13 Apr 2021 08:32:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:065177dd-ac1a-4d4c-aade-6d25cde2eade</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi again, Baldur!&lt;br /&gt;&lt;br /&gt;I must have forgotten to actually attach it. My bad! Here it is:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrf5340_5F00_cpuapp_5F00_common.dts"&gt;devzone.nordicsemi.com/.../nrf5340_5F00_cpuapp_5F00_common.dts&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
[quote user="Baldur"]I guess that this file is common for all projects (and is thus not copied to each project) and as such the system makes it non-editable (since the board is fixed). Am I correct?[/quote]
&lt;p&gt;This is correct. However, changes to the DTS can be made, but then the project must be reopened. Commonly &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/guides/dts/howtos.html?highlight=devicetree%20overlays#set-devicetree-overlays"&gt;overlay files&lt;/a&gt; are used to configure the various available hardware resources/peripherals.&lt;/p&gt;
[quote user="Baldur"]If I was to make my own board, I guess I would make me a file like this that describes the on-board resources?[/quote]
&lt;p&gt;&amp;nbsp;Correct! You can of course use pre-existing board definitions, but then it&amp;#39;s important to&amp;nbsp;keep track of which on-board resources that are present and which that aren&amp;#39;t.&lt;/p&gt;
[quote user="Baldur"]Working with other ARM processors, the IDE typically has some kind of setup manager for the on-chip resources (setting clock frequency, enabling counters and so on - in general setting of all the processor registers). Is that what devicetree is about, or is there some tool that I am missing (similar to processor expert in NXP or STM32CubeMX)?[/quote]
&lt;p&gt;Configuration of on-chip and on-board resources happen both through devicetree configuration and Kconfigs (usually a combination of these). In general hardware specific configuration like pin assignments, frequency and so on are done using devicetree overlays, while more firmware related configuration is done through Kconfigs. The Zephyr documentation has some information on &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/guides/dts/dt-vs-kconfig.html?highlight=kconfig#devicetree-versus-kconfig"&gt;Devicetree versus Kconfig&lt;/a&gt;.&lt;/p&gt;
[quote user="Baldur"]If devicetreee.h describes the registers, I expect that it would be different for every project and thus under the project folder. I looked at my project folder and its subdirectories:[/quote]
&lt;p&gt;&amp;nbsp;I believe you&amp;#39;re looking for the file &amp;quot;devicetree_unfixed.h&amp;quot;, located at&amp;nbsp;&lt;strong&gt;&amp;lt;project_folder&amp;gt;\build\zephyr\include\generated\devicetree_unfixed.h&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340-DK problem starting own project ncs v1.5.0</title><link>https://devzone.nordicsemi.com/thread/304336?ContentTypeID=1</link><pubDate>Mon, 12 Apr 2021 14:39:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45e410bc-f467-4dd4-a6c4-76e5e97b8864</guid><dc:creator>Baldur</dc:creator><description>&lt;p&gt;Hi Carl Richard.&lt;/p&gt;
&lt;p&gt;Thank you very much for your answers. They were very helpful.&lt;/p&gt;
&lt;p&gt;Regarding question 3, I have looked around but cannot see any attachment. Might I be overlooking something?&lt;/p&gt;
&lt;p&gt;I got curious about the file you mention (&amp;lt;ncs_root&amp;gt;\zephyr\boards\arm\nrf5340dk_nrf5340\nrf5340_cpuapp_common.dts). I could see it in my blinky_pwm project, but double-clicking on it tells me that I can not read it:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1618235415958v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I could find it in my installation path&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1618235605165v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;and looking at it in a text editor, it seems to define my nrf5340-DK on-board-resources&amp;nbsp; (pinout for leds, buttons,...).&lt;/p&gt;
&lt;p&gt;I guess that this file is common for all projects (and is thus not copied to each project) and as such the system makes it non-editable (since the board is fixed). Am I correct?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If I was to make my own board, I guess I would make me a file like this that describes the on-board resources?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Working with other ARM processors, the IDE typically has some kind of setup manager for the on-chip resources (setting clock frequency, enabling counters and so on - in general setting of all the processor registers). Is that what devicetree is about, or is there some tool that I am missing (similar to processor expert in NXP or STM32CubeMX)?&lt;/p&gt;
&lt;p&gt;If devicetreee.h describes the registers, I expect that it would be different for every project and thus under the project folder. I looked at my project folder and its subdirectories:&lt;/p&gt;
&lt;p&gt;C:\Users\Notandi\ncs\v1.5.0\zephyr\samples\basic\blinky_pwm&lt;/p&gt;
&lt;p&gt;but I could not find a devicetree.h for this&amp;nbsp; project.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Baldur&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340-DK problem starting own project ncs v1.5.0</title><link>https://devzone.nordicsemi.com/thread/304265?ContentTypeID=1</link><pubDate>Mon, 12 Apr 2021 12:11:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:793640f0-a107-408a-ab4d-be759eabddbb</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi!&lt;br /&gt;&lt;br /&gt;Great to hear that you finally got it to work. It&amp;#39;s correct that the programming process isn&amp;#39;t covered for every sample, but I believe the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_nrf5340.html#building-and-programming-a-sample"&gt;Building and programming a sample&lt;/a&gt;&amp;nbsp;section of the nRF53 guide should cover this part quite well.&lt;br /&gt;&lt;br /&gt;As for your questions:&lt;/p&gt;
&lt;p&gt;1.&amp;nbsp; This is likely due to the readback protection the nRF5340, which is enabled after resets. You can disable it by recovering the device as described in the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_nrf5340.html#readback-protection"&gt;documentation&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;2. You solved this, but the issue was likely that the network core wasn&amp;#39;t programmed with the BLE controller image(hci_rpmsg).&lt;br /&gt;&lt;br /&gt;3. This is a issue in the board definition for the nRF5340DK in Zephyr. In short, the sample checks if the nRF5340 has a PWM led node in its &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/guides/dts/intro.html"&gt;devicetree&lt;/a&gt; (which is a data structure Zephyr uses for describing hardware) and it can&amp;#39;t find any due to it not being listed. Thus, it fails.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I&amp;#39;ll see to it being fixed, but you can replace&amp;nbsp;&amp;lt;&lt;strong&gt;ncs_root&amp;gt;\zephyr\boards\arm\nrf5340dk_nrf5340\nrf5340_cpuapp_common.dts&amp;nbsp;&lt;/strong&gt;with the attached file (which contains the rather simple fix).&lt;br /&gt;&lt;br /&gt;4. The confusing project structure of NCS projects in Segger Embedded Studio is an unfortunate side effect of the build environment. The main project is the one with the CMake logo beside it and your source code inside.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I hope this answers your questions! Please reach out if you face any other issues!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340-DK problem starting own project ncs v1.5.0</title><link>https://devzone.nordicsemi.com/thread/304133?ContentTypeID=1</link><pubDate>Sun, 11 Apr 2021 09:08:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6aa4e14-a454-4149-853c-e257a5a38f9c</guid><dc:creator>Baldur</dc:creator><description>&lt;p&gt;Hi Carl Richards.&lt;/p&gt;
&lt;p&gt;I did not find the reply button to my last post so I put this here.&lt;/p&gt;
&lt;p&gt;I finally managed to compile, download and run an BLE sample application. :-)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I found the following guide very useful:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.programmersought.com/article/51616750462/"&gt;https://www.programmersought.com/article/51616750462/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It goes step by step through the process mentioning all the details for a specific task.&lt;/p&gt;
&lt;p&gt;I think it makes better clear that I need to download two codes(and which one), one for each processor than the following example:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/peripheral_lbs/README.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/peripheral_lbs/README.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;What I had to do in addition to the guide is to program both files at the same time with the programmer and reset afterwards:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1618131987040v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It would still be interesting to get comments to my previous questions.&lt;/p&gt;
&lt;p&gt;Best regards, and thanks again for your help,&lt;/p&gt;
&lt;p&gt;Baldur&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340-DK problem starting own project ncs v1.5.0</title><link>https://devzone.nordicsemi.com/thread/304127?ContentTypeID=1</link><pubDate>Sat, 10 Apr 2021 18:00:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b868e56b-dbd2-490f-a315-f93aaa06ca0a</guid><dc:creator>Baldur</dc:creator><description>&lt;p&gt;Hi Carl Richards&lt;/p&gt;
&lt;p&gt;I have tried to follow the directions as close as possible, but have not had luck compiling the peripheral_lbs example and run successfully. There are also other issues that I ran into that makes me unsure.&lt;/p&gt;
&lt;p&gt;Question 1)&lt;/p&gt;
&lt;p&gt;When I download the two hex files delivered in the Peripheral _Heart_rate example, it works if I use the programmer via nRF Connect, not If I just drag and drop to the MSD device that appears when kit is plugged in. After dragging the first file over, the drive reopens with an fail.txt file saying &amp;quot;Error during erase&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1618074240441v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I thought both methods should work. Is this normal?&lt;/p&gt;
&lt;p&gt;(since I have the programmer option this is not a major issue, but makes me uncertain so It would be good to know)&lt;/p&gt;
&lt;p&gt;Question 2:&lt;/p&gt;
&lt;p&gt;When I open the&amp;nbsp;&lt;span&gt;peripheral_lbs&amp;nbsp;project via nRF connect-&amp;gt;Toolchain manager-&amp;gt;open IDE-&amp;gt;Open nRF&amp;nbsp;connect SDK project and do a &amp;quot;build and run&amp;quot;, everything goes as expected. In my CDC terminal I get:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1618074554977v2.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;But I never see any Nordic_LBS device in my phone that I can connect to (as the example&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/peripheral_lbs/README.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/peripheral_lbs/README.html&lt;/a&gt;&amp;nbsp;indicates I should see)&lt;/p&gt;
&lt;p&gt;How can I debug this or get more information what to do?&lt;/p&gt;
&lt;p&gt;(this is a major issue since I don&amp;#39;t have a clue how to precede)&lt;/p&gt;
&lt;p&gt;Question 3:&lt;/p&gt;
&lt;p&gt;I can build and run the blinky project, but if I try to build the biinky_pwm project&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1618075029021v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I get the following error&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1618075088231v4.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Looking at the readme.rst file for this project, 5340 is not mentioned. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Are not all projects in the SDK meant&amp;nbsp;for for 5340?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Are there instructions for how to make it work?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;(this is not a major issue, more for me to understand how the environment&amp;nbsp;is meant&amp;nbsp;to be)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Question 5&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m&lt;span&gt;&amp;nbsp;also a little confused in the nomenclature in the last image. I expected single blinky project in a solution, but in the above image there are multiple &amp;quot;projects&amp;quot; (which looks more like folders or just files (ending with .a, I guess libraries)) . I have seen videos where with a more recognizable structure&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1618077256471v5.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Here there is a solution with a blinky project that has folders.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;(not a major issue but would be interesting to get a comment on this)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Baldur&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340-DK problem starting own project ncs v1.5.0</title><link>https://devzone.nordicsemi.com/thread/303966?ContentTypeID=1</link><pubDate>Fri, 09 Apr 2021 10:56:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df9a7956-51cc-444a-b431-f31bb6939fca</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi again, Baldur!&lt;br /&gt;&lt;br /&gt;You are correct that the name of the samples in the SDK are shortened, but in this case&amp;nbsp;&lt;strong&gt;peripheral_hr&amp;nbsp;&lt;/strong&gt;is the sample located under&amp;nbsp;zephyr\samples\bluetooth\peripheral_hr. While&amp;nbsp;&lt;strong&gt;Bluetooth: Peripheral Heart Rate Monitor with Coded PHY&amp;nbsp;&lt;/strong&gt;is&amp;nbsp;&lt;strong&gt;peripheral&lt;/strong&gt;&lt;strong&gt;_hr_coded&lt;/strong&gt;, located in the nrf\samples\bluetooth folder.&lt;br /&gt;&lt;br /&gt;Based on the sample description it&amp;#39;s supposed to be tested with central_hr so it doesn&amp;#39;t necessarily show up properly on a phone. I suggest testing with &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/peripheral_uart/README.html"&gt;peripheral_uart&lt;/a&gt; or &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/peripheral_lbs/README.html"&gt;peripheral_lbs&lt;/a&gt; instead, which both can be interacted with using a phone.&lt;br /&gt;&lt;br /&gt;As you can see there are three possible board targets for the nRF5340DK:&lt;br /&gt;&lt;strong&gt;- nRF5340_cpuapp:&amp;nbsp;&lt;/strong&gt;this is the secure domain application core and it&amp;#39;s what I recommend using initially.&lt;br /&gt;&lt;strong&gt;- nRF5340_cpuappns:&amp;nbsp;&lt;/strong&gt;this is the non-secure domain application core, meaning that the application will run in separate domain with certain permissions. This is controlled by the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/include/spm.html?highlight=non%20secure#secure-partition-manager-spm"&gt;Secure Partition Manager&lt;/a&gt; running in the secure domain. Using this allows for more secure applications, where sensitive information and such can be stored in the secure domain.&lt;br /&gt;&lt;strong&gt;- nRF5340_cpunet:&lt;/strong&gt; this is the network core, which usually run the hci_rpmsg sample enabling the application core to use the network core as a BLE controller. This should be pre programmed on the core, and you should only need to reprogram it if you change anything in the controller code (hci_rpmsg).&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I suggest following&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_gsg_ncs/UG/gsg/intro.html"&gt;Getting started with nRF Connect SDK (nRF53 Series)&lt;/a&gt; and &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_nrf5340.html#working-with-nrf53-series"&gt;Working with the nRF53 series&lt;/a&gt;&amp;nbsp;guides closely.&lt;br /&gt;&lt;br /&gt;EDIT: Corrected some wrong info about the sample name.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340-DK problem starting own project ncs v1.5.0</title><link>https://devzone.nordicsemi.com/thread/303880?ContentTypeID=1</link><pubDate>Thu, 08 Apr 2021 23:35:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80c9e4e6-b884-4550-b262-8ac908ef1db5</guid><dc:creator>Baldur</dc:creator><description>&lt;p&gt;Hi Carl Richard&lt;/p&gt;
&lt;p&gt;I hope it is OK to follow up on last question here even though it is about something slight different.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I now like to compile a BLE project. From the list of examples in the documentation&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/examples.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/examples.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I would like to compile the Bluetooth: Peripheral Heart Rate Monitor with Coded PHY project.&lt;/p&gt;
&lt;p&gt;In the list in nRF connect not the exact name could be found, but the peripheral_hr was the most likely:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1617923855110v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;It compiled and I did a &amp;quot;build and run&amp;quot;. It looked like it programmed the board but I could not find the device in nRF Toolbox on my Android phone (as I could with the hex load example)&lt;/p&gt;
&lt;p&gt;To see the logic of the program I wanted to debug it but then the program started to ask about some files that I could not find, beginning with this one:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1617923361993v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I ignored the files and it seemed like the debug got started, but still no device found on my phone.&lt;/p&gt;
&lt;p&gt;I reset the board and tried several times without luck.&lt;/p&gt;
&lt;p&gt;When importing the project there are 3 options for the 5340dk board:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1617924609612v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure what to choose. Somewhere it was recommended to choose ns endings so I used nrf5340dk_nrf5340_cpuappns.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;From the documentation is looks like the peripheral_hr is to be used with central_hr.&lt;/p&gt;
&lt;p&gt;Is there perhaps a better project to test against the android phone?&lt;/p&gt;
&lt;p&gt;Any comments here?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Baldur&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340-DK problem starting own project ncs v1.5.0</title><link>https://devzone.nordicsemi.com/thread/303819?ContentTypeID=1</link><pubDate>Thu, 08 Apr 2021 14:16:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef10d036-ec9b-41fc-8c44-6e7332f4e7ed</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi again, Baldur!&lt;br /&gt;&lt;br /&gt;You&amp;#39;re welcome! I&amp;#39;m glad to help and glad to hear that it works now!&lt;br /&gt;&lt;br /&gt;What you&amp;#39;re seeing is correct.&amp;nbsp;These are the&amp;nbsp;three virtual com ports emulated by the nRF5340, as described in the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_nrf5340.html#getting-logging-output"&gt;documentation&lt;/a&gt;. Two of them are for logging output from the network and application cores respectively, while the third one is silent.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;That&amp;#39;s a very appreciated comment. Thank you very much!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340-DK problem starting own project ncs v1.5.0</title><link>https://devzone.nordicsemi.com/thread/303803?ContentTypeID=1</link><pubDate>Thu, 08 Apr 2021 13:41:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4db435e8-14e9-4eec-a4ca-4296434efa77</guid><dc:creator>Baldur</dc:creator><description>&lt;p&gt;Hi Carl Richard&lt;/p&gt;
&lt;p&gt;and thank you very much for your quick response&lt;/p&gt;
&lt;p&gt;How stupid I am, I had seen this comment before and I thought I had checked it, but I can see it when you point it out. I moved the project to another folder without space - and it worked!&lt;/p&gt;
&lt;p&gt;Actually I get 3 CDC comports when I plug in my nRF5340-DK board, only one of them (COM22) is giving me the printed output.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1617889122950v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Is this normal and what are the others for?&lt;/p&gt;
&lt;p&gt;Once again I really appreciate your quick help (I have used other brands of ARM and never got this quick and good help before. I feel that I am not alone in the world anymore when using nRF. I will certainly give Nordic a chance since I can get this good help)&lt;/p&gt;
&lt;p&gt;Baldur&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340-DK problem starting own project ncs v1.5.0</title><link>https://devzone.nordicsemi.com/thread/303735?ContentTypeID=1</link><pubDate>Thu, 08 Apr 2021 11:14:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4995ba29-6675-4a27-8661-05b031caf225</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;This error is likely caused by the space character (&amp;quot; &amp;quot;) in your path, specifically &amp;quot;Dropbox (Kiso)&amp;quot;.&amp;nbsp;Try to remove the space character or install the SDK at another location.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Carl Richard&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340-DK problem starting own project ncs v1.5.0</title><link>https://devzone.nordicsemi.com/thread/303717?ContentTypeID=1</link><pubDate>Thu, 08 Apr 2021 10:58:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cdbceb4-41dc-4d68-b37a-4e8d9b4b82d9</guid><dc:creator>Baldur</dc:creator><description>&lt;p&gt;The process is as follows: I point to the project&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1617879404013v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;and when I press OK, I get this:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1617879456142v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;and the list reported above.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>