<?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>How to configure and setup an SPI device to nRF5340</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67065/how-to-configure-and-setup-an-spi-device-to-nrf5340</link><description>Hello, 
 
 I am trying to setup a device ( Semtech LR1110 ) connected to SPI 1 peripheral on the nRF5340pdk . 
 I have a driver code for it. My question is this. 
 How can I set it up in the .dts file and keep the code that drives it with my source code</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 Jan 2023 18:22:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67065/how-to-configure-and-setup-an-spi-device-to-nrf5340" /><item><title>RE: How to configure and setup an SPI device to nRF5340</title><link>https://devzone.nordicsemi.com/thread/402866?ContentTypeID=1</link><pubDate>Mon, 02 Jan 2023 18:22:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fabe1b30-3dd2-4487-a922-56f27d5fd07d</guid><dc:creator>talava</dc:creator><description>&lt;p&gt;Thank you very much. With&amp;nbsp;these definitions i got a working SPI interface.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure and setup an SPI device to nRF5340</title><link>https://devzone.nordicsemi.com/thread/400319?ContentTypeID=1</link><pubDate>Tue, 13 Dec 2022 09:12:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db3f6b4a-9ec3-4e0e-91a9-cf3587c865e4</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;CONFIG_SPI_($number) is set by the device tree in newer ncs versions, so you can remove this from the prj.conf.&lt;/p&gt;
&lt;p&gt;Provided the zephyr tag that you&amp;#39;re using, you&amp;#39;re on a newer ncs version, which also uses pinctrl for allowing different sets of gpios for bus peripherals, which also requires different definitions as shown here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/arm/nrf5340dk_nrf5340/nrf5340_cpuapp_common-pinctrl.dtsi#L102-L117"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/arm/nrf5340dk_nrf5340/nrf5340_cpuapp_common-pinctrl.dtsi#L102-L117&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;and here:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/arm/nrf5340dk_nrf5340/nrf5340_cpuapp_common.dts#L223-L229"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/arm/nrf5340dk_nrf5340/nrf5340_cpuapp_common.dts#L223-L229&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure and setup an SPI device to nRF5340</title><link>https://devzone.nordicsemi.com/thread/400013?ContentTypeID=1</link><pubDate>Sat, 10 Dec 2022 15:13:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb74d9d3-e29d-4574-b886-0f91cdca9079</guid><dc:creator>talava</dc:creator><description>&lt;p lang="en-US"&gt;Hi Hakon,&lt;/p&gt;
&lt;p lang="en-US"&gt;thank for the example.&amp;nbsp;&lt;/p&gt;
&lt;p lang="en-US"&gt;When I try to build it, I get an error message: /prj.conf:9: warning: attempt to assign the value &amp;#39;y&amp;#39; to the undefined symbol SPI_1&lt;/p&gt;
&lt;p lang="en-US"&gt;&lt;/p&gt;
&lt;p lang="en-US"&gt;My experience with zephyr is very limited, so I am wondering if I made a mistake or the way zephyr is using the prj.conf during buildtime has changed during the last two years.&lt;/p&gt;
&lt;p lang="en-US"&gt;&lt;/p&gt;
&lt;p lang="en-US"&gt;Here is what i have done: I extracted spi_test.zip to samples/basic/spi_test/ within my zephyr installation. Then I run west build -p auto -b nrf5340dk_nrf5340_cpuapp samples/basic/spi_test/&lt;/p&gt;
&lt;p lang="en-US"&gt;&lt;/p&gt;
&lt;p lang="en-US"&gt;I use archlinux and my zephyr manifest git tag is &amp;ldquo;zephyr-v3.2.0-2474-g1aebcec02f&amp;rdquo;.&lt;/p&gt;
&lt;p lang="en-US"&gt;&lt;/p&gt;
&lt;p lang="en-US"&gt;If I delete CONFIG_SPI_1=y in prj.conf, I am able to compile, but the SPI_1 device is not available so I get the &amp;ldquo;Could not get SPI_1 device&amp;rdquo; on my terminal.&lt;/p&gt;
&lt;p lang="en-US"&gt;&lt;/p&gt;
&lt;p lang="en-US"&gt;To compile the main.c I have done some smaller changes:&lt;/p&gt;
&lt;ul&gt;
&lt;li lang="en-US"&gt;add a zephyr/ in every #include &amp;lt;&amp;gt;&lt;/li&gt;
&lt;li lang="en-US"&gt;replace u8_t with uint8_t&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This is the compile log.&amp;nbsp;&lt;/p&gt;
&lt;p lang="en-US"&gt;&lt;pre class="ui-code" data-mode="text"&gt;-- west build: generating a build system
Loading Zephyr default modules (Zephyr base (cached)).
-- Application: /home/user/zephyrproject/zephyr/samples/basic/spi_test
-- Cache files will be written to: /home/user/.cache/zephyr
-- Zephyr version: 3.2.99 (/home/user/zephyrproject/zephyr)
-- Found west (found suitable version &amp;quot;0.14.0&amp;quot;, minimum required is &amp;quot;0.7.1&amp;quot;)
-- Board: nrf5340dk_nrf5340_cpuapp
-- Found host-tools: zephyr 0.15.2 (/home/user/zephyr-sdk-0.15.2)
-- Found toolchain: zephyr 0.15.2 (/home/user/zephyr-sdk-0.15.2)
-- Found BOARD.dts: /home/user/zephyrproject/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp.dts
-- Generated zephyr.dts: /home/user/zephyrproject/zephyr/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /home/user/zephyrproject/zephyr/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /home/user/zephyrproject/zephyr/build/zephyr/dts.cmake

/home/user/zephyrproject/zephyr/samples/basic/spi_test/prj.conf:9: warning: attempt to assign the value &amp;#39;y&amp;#39; to the undefined symbol SPI_1
Parsing /home/user/zephyrproject/zephyr/Kconfig
Loaded configuration &amp;#39;/home/user/zephyrproject/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp_defconfig&amp;#39;
Merged configuration &amp;#39;/home/user/zephyrproject/zephyr/samples/basic/spi_test/prj.conf&amp;#39;

error: Aborting due to Kconfig warnings

CMake Error at /home/user/zephyrproject/zephyr/cmake/modules/kconfig.cmake:328 (message):
  command failed with return code: 1
Call Stack (most recent call first):
  /home/user/zephyrproject/zephyr/cmake/modules/zephyr_default.cmake:108 (include)
  /home/user/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /home/user/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:97 (include_boilerplate)
  CMakeLists.txt:13 (find_package)


-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: /usr/bin/cmake -DWEST_PYTHON=/home/user/zephyrproject/.venv/bin/python3 -B/home/user/zephyrproject/zephyr/build -GNinja -S/home/user/zephyrproject/zephyr/samples/basic/spi_test&lt;/pre&gt;&lt;/p&gt;
&lt;p lang="en-US"&gt;I hope you or someone else is able to help me,&lt;/p&gt;
&lt;p lang="en-US"&gt;kind regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure and setup an SPI device to nRF5340</title><link>https://devzone.nordicsemi.com/thread/393840?ContentTypeID=1</link><pubDate>Thu, 03 Nov 2022 11:12:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:564f5902-3f81-499d-855f-ea2f5332d357</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m glad to hear that the sample was helpful! Hope you have a wonderful day&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure and setup an SPI device to nRF5340</title><link>https://devzone.nordicsemi.com/thread/393814?ContentTypeID=1</link><pubDate>Thu, 03 Nov 2022 09:18:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8c4fc4f-4047-422a-8247-f2bb4d183e90</guid><dc:creator>DunKCubik</dc:creator><description>&lt;p&gt;HI Hakon,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; just wanted to say thanks for this code! I have been struggling with the SPI for a while and this example explains it perfectly!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure and setup an SPI device to nRF5340</title><link>https://devzone.nordicsemi.com/thread/277434?ContentTypeID=1</link><pubDate>Wed, 28 Oct 2020 15:10:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c909fbf6-745a-42ca-86e1-79b46200ec17</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Has anything outside of the project changed since it was last opened up? If so, then you should always re-import the project to ensure that the underlying cmake configuration/output is correct.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure and setup an SPI device to nRF5340</title><link>https://devzone.nordicsemi.com/thread/277116?ContentTypeID=1</link><pubDate>Tue, 27 Oct 2020 11:40:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3efa5f2-924c-42d5-a56b-84b4b4f2f605</guid><dc:creator>Learner</dc:creator><description>&lt;p&gt;Thank you Hakon,&lt;/p&gt;
[quote userid="92434" url="~/f/nordic-q-a/67065/how-to-configure-and-setup-an-spi-device-to-nrf5340/276687#276687"]However, I am having other problems with SES when sometimes, at random times, SES (v452c and v510d) cannot open a project that has not been changed for a while and was working fine before. If I keep trying few times it eventually works.[/quote]
&lt;p&gt;Above is the actual problem that I wanted you to help me solve. I am still not clear what causes it. See error log I posted few days ago above.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Mohamed&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure and setup an SPI device to nRF5340</title><link>https://devzone.nordicsemi.com/thread/277087?ContentTypeID=1</link><pubDate>Tue, 27 Oct 2020 10:14:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9383181b-26be-4168-a332-3b78d0b4b3d8</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Learner"]This does not make sense since I have admin rights on my machine. Plus, this problem is intermittent, one minute I don&amp;#39;t have permission and the next I have full permission. It is frustrating and time consuming.[/quote]
&lt;p&gt;If there&amp;#39;s some program (notepad or similar) that has opened up one of the files in the build folder, windows will not allow you to delete the file.&lt;/p&gt;
&lt;p&gt;Could this be the case here? There&amp;#39;s a process keeping one of the files open?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Learner"]I do try to delete the build folder, again it does not make sense, sometimes I can and at other times I am not allowed to delete the folder build/zephyr. I can delete its content but not the folder itself[/quote]
&lt;p&gt;This sounds like a process is keeping the folder open. Its a generic problem on windows:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://superuser.com/questions/1333118/cant-delete-empty-folder-because-it-is-used"&gt;https://superuser.com/questions/1333118/cant-delete-empty-folder-because-it-is-used&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure and setup an SPI device to nRF5340</title><link>https://devzone.nordicsemi.com/thread/276869?ContentTypeID=1</link><pubDate>Mon, 26 Oct 2020 13:10:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db04e38b-09ed-4482-8601-989f3b193b5d</guid><dc:creator>Learner</dc:creator><description>&lt;p&gt;Hi Hakon,&lt;/p&gt;
[quote userid="2115" url="~/f/nordic-q-a/67065/how-to-configure-and-setup-an-spi-device-to-nrf5340/276808#276808"]The log states that you have permission error:[/quote]
&lt;p&gt;This does not make sense since I have admin rights on my machine. Plus, this problem is intermittent, one minute I don&amp;#39;t have permission and the next I have full permission. It is frustrating and time consuming.&lt;/p&gt;
[quote userid="2115" url="~/f/nordic-q-a/67065/how-to-configure-and-setup-an-spi-device-to-nrf5340/276808#276808"]ry deleting the build folder and re-import the project.[/quote]
&lt;p&gt;I do try to delete the build folder, again it does not make sense, sometimes I can and at other times I am not allowed to delete the folder build/zephyr. I can delete its content but not the folder itself &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f61e.svg" title="Disappointed"&gt;&amp;#x1f61e;&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;Has this type pf problems been reported by other users? I know a colleague of mine is having similar issues.&lt;/p&gt;
&lt;p&gt;It would be greatly appreciated if you could help us come to the bottom of this and find the root cause. Because I&amp;nbsp; know I will be facing the same problem soon.&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Mohamed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure and setup an SPI device to nRF5340</title><link>https://devzone.nordicsemi.com/thread/276808?ContentTypeID=1</link><pubDate>Mon, 26 Oct 2020 10:05:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3b02b82-aed5-488a-b0f7-6ce85705ad1c</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
[quote user="Learner"]Both SES v452c and v510d are behaving themselves now :),[/quote]
&lt;p&gt;Great!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
[quote user="Learner"]&lt;p&gt;Have you come across this problem before?&lt;/p&gt;
&lt;p&gt;What am I doing&amp;nbsp;wrong?&lt;/p&gt;[/quote]
&lt;p&gt;The log states that you have permission error:&lt;/p&gt;
&lt;p&gt;&amp;quot;file failed to open for writing (Permission denied)&amp;quot;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Try deleting the build folder and re-import the project.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure and setup an SPI device to nRF5340</title><link>https://devzone.nordicsemi.com/thread/276687?ContentTypeID=1</link><pubDate>Fri, 23 Oct 2020 15:16:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6978e1a-5daa-49af-a63f-69fb54c24461</guid><dc:creator>Learner</dc:creator><description>&lt;p&gt;Hi Hakon,&lt;/p&gt;
&lt;p&gt;Both SES v452c and v510d are behaving themselves now :), meaning I can open and build the project with this commented out line&amp;nbsp;&lt;/p&gt;
&lt;p&gt;#CONFIG_BOARD_ENABLE_CPUNET=n&lt;/p&gt;
&lt;p&gt;However, I am having other problems with SES when sometimes, at random times, SES (v452c and v510d) cannot open a project that has not been changed for a while and was working fine before. If I keep trying few times it eventually works. See pictures and error log below.&lt;/p&gt;
&lt;p&gt;Have you come across this problem before?&lt;/p&gt;
&lt;p&gt;What am I doing&amp;nbsp;wrong?&lt;/p&gt;
&lt;p&gt;Could it be something to do with my laptop because I have not restarted it for over a week now?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/CMake_5F00_Err_5F00_Log.txt"&gt;devzone.nordicsemi.com/.../CMake_5F00_Err_5F00_Log.txt&lt;/a&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/0574.CMake_5F00_Err.PNG" /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Cannot_5F00_Start_5F00_Ninja.png" /&gt;&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Mohamed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure and setup an SPI device to nRF5340</title><link>https://devzone.nordicsemi.com/thread/276635?ContentTypeID=1</link><pubDate>Fri, 23 Oct 2020 13:01:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1104a17e-c156-4c2e-bbbc-65626b656a77</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you still get the same issue if you move this board out of the boards/arm folder? If it is work-in-progress, it might be that the build system picks it up, especially if the names within the folder isn&amp;#39;t changed.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure and setup an SPI device to nRF5340</title><link>https://devzone.nordicsemi.com/thread/276238?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2020 13:53:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ee8517f-7680-4169-af6a-b6dd101da0b3</guid><dc:creator>Learner</dc:creator><description>&lt;p&gt;Hi Hakon,&lt;/p&gt;
[quote userid="2115" url="~/f/nordic-q-a/67065/how-to-configure-and-setup-an-spi-device-to-nrf5340/276222#276222"]&lt;blockquote class="quote"&gt;&lt;div class="quote-user"&gt;Learner said:&lt;/div&gt;&lt;div class="quote-content"&gt;-- Found BOARD.dts: C:/Zypher/v1.3.0/zephyr/boards/arm/PID4_nRF5340/nrf5340pdk_nrf5340_cpuapp.dts&lt;/div&gt;&lt;/blockquote&gt;&lt;div class="quote-footer"&gt;&lt;/div&gt;
&lt;p&gt;Is this a board that you have defined?&lt;/p&gt;[/quote]
&lt;p&gt;It is a board that is being defined but not complete yet.&amp;nbsp; It is work in progress and I was not expecting this board to be picked up. The&amp;nbsp;board intended to be used is the nRF5340pdk_nRF5340.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style="color:#0000ff;"&gt;&lt;strong&gt;C:\Zypher\v1.3.0\zephyr\boards\arm\nrf5340pdk_nrf5340&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="2115" url="~/f/nordic-q-a/67065/how-to-configure-and-setup-an-spi-device-to-nrf5340/276222#276222"]&lt;blockquote class="quote"&gt;&lt;div class="quote-user"&gt;Learner said:&lt;/div&gt;&lt;div class="quote-content"&gt;&lt;span style="color:rgba(0, 0, 255, 1);"&gt;C:/Zypher/v1.3.0/zephyr/boards/arm/PID4_nRF5340/nrf5340_cpuapp_common.dts:179:10: fatal error: nrf5340_cpuapp_partition_conf.dts: No such file or directory&lt;/span&gt;&lt;br /&gt;&lt;span style="color:rgba(0, 0, 255, 1);"&gt; 179 | #include &amp;quot;nrf5340_cpuapp_partition_conf.dts&amp;quot;&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div class="quote-footer"&gt;&lt;/div&gt;
&lt;p&gt;Does this file exist in your PID4_nRF5340/ folder?&lt;/p&gt;[/quote]
&lt;p&gt;No, it does not exist.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Mohamed&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure and setup an SPI device to nRF5340</title><link>https://devzone.nordicsemi.com/thread/276222?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2020 13:27:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d49d97ad-97dd-44de-bbe1-b32fd2b0e48a</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Learner"]-- Found BOARD.dts: C:/Zypher/v1.3.0/zephyr/boards/arm/PID4_nRF5340/nrf5340pdk_nrf5340_cpuapp.dts[/quote]
&lt;p&gt;Is this a board that you have defined?&lt;/p&gt;
[quote user="Learner"]&lt;span style="color:rgba(0, 0, 255, 1);"&gt;C:/Zypher/v1.3.0/zephyr/boards/arm/PID4_nRF5340/nrf5340_cpuapp_common.dts:179:10: fatal error: nrf5340_cpuapp_partition_conf.dts: No such file or directory&lt;/span&gt;&lt;br /&gt;&lt;span style="color:rgba(0, 0, 255, 1);"&gt; 179 | #include &amp;quot;nrf5340_cpuapp_partition_conf.dts&amp;quot;&lt;/span&gt;[/quote]
&lt;p&gt;Does this file exist in your PID4_nRF5340/ folder?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure and setup an SPI device to nRF5340</title><link>https://devzone.nordicsemi.com/thread/275981?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2020 14:35:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84087a70-5cf3-4dbd-b89d-365a111fd0cf</guid><dc:creator>Learner</dc:creator><description>&lt;p&gt;As I said in my previous post, SES v5.10d is very moody. Guess what? I can open and build the solution now. This is with the line&amp;nbsp;CONFIG_BOARD_ENABLE_CPUNET=n enabled. However, when I commented it out I could not open the project. Below is the error log.&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;"&gt;Creating solution spi_test.emProject&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;cmake -GNinja -DBOARD=nrf5340pdk_nrf5340_cpuapp -DBOARD_DIR=C:\Zypher\v1.3.0\zephyr\boards\arm\PID4_nRF5340 -BC:\Dev\NCS_projects\spi_example\spi_test\build_SESv510d_nrf5340pdk_nrf5340_cpuapp -SC:\Dev\NCS_projects\spi_example\spi_test -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=C:\Zypher\v1.3.0\toolchain\opt -DDTC_OVERLAY_FILE=C:\Dev\NCS_projects\spi_example\spi_test/nrf5340pdk_nrf5340_cpuapp.overlay -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=C:\Program Files\SEGGER_V5.10c\arm_segger_embedded_studio_v510d_win_x64_nordic/html/configure_nordic_project_menuconfig.py&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;-- Application: C:/Dev/NCS_projects/spi_example/spi_test&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;-- Zephyr version: 2.3.0-rc1 (C:/Zypher/v1.3.0/zephyr)&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;-- Found Python3: C:/Program Files/WindowsApps/PythonSoftwareFoundation.Python.3.8_3.8.1776.0_x64__qbz5n2kfra8p0/python3.8.exe (found suitable version &amp;quot;3.8.6&amp;quot;, minimum required is &amp;quot;3.6&amp;quot;) found components: Interpreter &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;-- Board: nrf5340pdk_nrf5340_cpuapp&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;-- Found west: C:/Zypher/v1.3.0/toolchain/opt/bin/Scripts/west.exe (found suitable version &amp;quot;0.7.3&amp;quot;, minimum required is &amp;quot;0.7.1&amp;quot;)&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;-- Found toolchain: gnuarmemb (C:/Zypher/v1.3.0/toolchain/opt)&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;-- Found BOARD.dts: C:/Zypher/v1.3.0/zephyr/boards/arm/PID4_nRF5340/nrf5340pdk_nrf5340_cpuapp.dts&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;-- Found devicetree overlay: C:\Dev\NCS_projects\spi_example\spi_test/nrf5340pdk_nrf5340_cpuapp.overlay&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;-- Configuring incomplete, errors occurred!&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;Including boilerplate (Zephyr base): C:/Zypher/v1.3.0/zephyr/cmake/app/boilerplate.cmake&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;In file included from C:/Zypher/v1.3.0/zephyr/boards/arm/PID4_nRF5340/nrf5340pdk_nrf5340_cpuapp.dts:9,&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt; from &amp;lt;command-line&amp;gt;:&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;C:/Zypher/v1.3.0/zephyr/boards/arm/PID4_nRF5340/nrf5340_cpuapp_common.dts:179:10: fatal error: nrf5340_cpuapp_partition_conf.dts: No such file or directory&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt; 179 | #include &amp;quot;nrf5340_cpuapp_partition_conf.dts&amp;quot;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;compilation terminated.&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;CMake Error at C:/Zypher/v1.3.0/zephyr/cmake/dts.cmake:146 (message):&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt; command failed with return code: 1&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;Call Stack (most recent call first):&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt; C:/Zypher/v1.3.0/zephyr/cmake/app/boilerplate.cmake:505 (include)&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt; C:/Zypher/v1.3.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt; C:/Zypher/v1.3.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt; CMakeLists.txt:13 (find_package)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;"&gt;error: cmake failed&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;create_nordic_project.py failed (1)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Mohamed&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure and setup an SPI device to nRF5340</title><link>https://devzone.nordicsemi.com/thread/275973?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2020 14:20:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b62420cb-79ca-4510-9147-abb64b4ffd96</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Learner"]I&amp;nbsp;re-instated the line &lt;span&gt;&lt;strong&gt;CONFIG_BOARD_ENABLE_CPUNET=n&lt;/strong&gt; in prj.conf&amp;nbsp;&lt;/span&gt;again in prj.conf but I still cannot reload the project. Below is the error.[/quote]
&lt;p&gt;&amp;nbsp;Could you click on &amp;quot;OK&amp;quot; and paste the full output&amp;nbsp;from the build-window in SES? I can see that the failure is in line 35 of ZephyrConfig.cmake, but it would be good to see if there&amp;#39;s anything interesting before that.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure and setup an SPI device to nRF5340</title><link>https://devzone.nordicsemi.com/thread/275961?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2020 13:52:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca4a5a63-dd11-42bb-aad6-de67fde1620b</guid><dc:creator>Learner</dc:creator><description>&lt;p&gt;Hi Hakon,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve&amp;nbsp; re-downloaded the zip file and extracted ok.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I opened the project spi_example and built it ok.&lt;/p&gt;
&lt;p&gt;I then&amp;nbsp;commented out the line&amp;nbsp;&lt;span&gt;&lt;strong&gt;CONFIG_BOARD_ENABLE_CPUNET=n&lt;/strong&gt; in prj.conf.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I tried to open the project but failed as with the old SES version.&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;re-instated the line &lt;span&gt;&lt;strong&gt;CONFIG_BOARD_ENABLE_CPUNET=n&lt;/strong&gt; in prj.conf&amp;nbsp;&lt;/span&gt;again in prj.conf but I still cannot reload the project. Below is the error.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/PyCannotCreatePj.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;This is very bizarre. SES seems to be very moody, one minute it is happy the next it is not.&lt;/p&gt;
&lt;p&gt;Thank you for your help.&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Mohamed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure and setup an SPI device to nRF5340</title><link>https://devzone.nordicsemi.com/thread/275850?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2020 10:33:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c420569-3c0a-4d55-8d7d-23716e7d91ae</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Try downloading it again for instance.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could this be a directory permission error? Have you tried unzipping to a different directory?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure and setup an SPI device to nRF5340</title><link>https://devzone.nordicsemi.com/thread/275842?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2020 10:22:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d1b720a-455a-4656-bae4-252dbe6b8747</guid><dc:creator>Learner</dc:creator><description>&lt;p&gt;Yes, I have plenty of space on my hard drive 350 GB.&lt;/p&gt;
&lt;p&gt;How do I check the integrity of the zip file?&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Mohamed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure and setup an SPI device to nRF5340</title><link>https://devzone.nordicsemi.com/thread/275837?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2020 10:10:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b9a44f4-5701-4df3-a2dd-7a9bf0e85051</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yes, SES-NE is standalone, and previous versions can co-exist without any issues.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;That is strange.&lt;/p&gt;
&lt;p&gt;Have you checked the integrity of the downloaded .zip file?&lt;/p&gt;
&lt;p&gt;Have you checked if you have enough space available, etc?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure and setup an SPI device to nRF5340</title><link>https://devzone.nordicsemi.com/thread/275513?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2020 08:33:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43337cd4-206d-4b6a-b314-66440c5d3229</guid><dc:creator>Learner</dc:creator><description>&lt;p&gt;Hi Hakon,&lt;/p&gt;
&lt;p&gt;Unfortunately, I am getting errors when I try to extract the zip file from the link above. See an extract of the error log below.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/SES_5F00_V510c_5F00_installError.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Mohamed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure and setup an SPI device to nRF5340</title><link>https://devzone.nordicsemi.com/thread/275502?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2020 07:54:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81ee013b-1817-4fa9-a793-0a5f2e06cf49</guid><dc:creator>Learner</dc:creator><description>&lt;p&gt;Thank you Hakon.&lt;/p&gt;
&lt;p&gt;I will try it and let you know if it has solved the problem. I am assuming I don&amp;#39;t have to uninstall previous versions of SES-NE and that they can co-exist.&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Mohamed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure and setup an SPI device to nRF5340</title><link>https://devzone.nordicsemi.com/thread/275489?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2020 07:12:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e45f67d-e302-4bbf-b6e1-6a5bb9d27630</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try with the latest version of SES-NE (v5.10c at this time) and see if the problem still exist?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.segger.com/downloads/embedded-studio/embeddedstudio_arm_nordic_win_x64"&gt;https://www.segger.com/downloads/embedded-studio/embeddedstudio_arm_nordic_win_x64&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If the problem still exists, could you paste the whole&amp;nbsp;build log?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure and setup an SPI device to nRF5340</title><link>https://devzone.nordicsemi.com/thread/275171?ContentTypeID=1</link><pubDate>Thu, 15 Oct 2020 15:54:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d529e47a-f5db-463e-b0cd-1f83daf65192</guid><dc:creator>Learner</dc:creator><description>&lt;p&gt;I am using SES-NE v4.52 and ncs v2.3.0&lt;/p&gt;
&lt;p&gt;1&amp;gt; Compiling &amp;lsquo;main.c&amp;rsquo;&lt;br /&gt;1&amp;gt; C:/Zypher/v1.3.0/toolchain/opt/bin/arm-none-eabi-gcc -DBUILD_VERSION=v2.3.0-rc1-ncs1 ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure and setup an SPI device to nRF5340</title><link>https://devzone.nordicsemi.com/thread/275086?ContentTypeID=1</link><pubDate>Thu, 15 Oct 2020 12:40:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46b0162f-44d3-4bf5-acd3-fe180585a930</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Can you please share the error?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It shouldn&amp;#39;t cause it to fail. Which version of ncs and SES-NE are you using?&lt;/p&gt;
&lt;p&gt;I tested with SES-NE v5.10c (latest) and ncs v1.3.2, and it didn&amp;#39;t have any impact at my end.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>