<?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>SPI for nrf5340dk in ncsv2.8</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/118916/spi-for-nrf5340dk-in-ncsv2-8</link><description>nrfConnectSDK V2.8 
 Toolchain 
 Board: nrf5340dk 
 
 Hi, while compiling ncs-spi-master-slave-example , I am getting below errors 
 
 In function &amp;#39;spi_init&amp;#39;: C:/Users/hello/spi/src/main.c:34:8: error: macro &amp;quot;GPIO_DT_SPEC_GET_BY_IDX_OR&amp;quot; requires 4 arguments</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 Mar 2025 08:48:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/118916/spi-for-nrf5340dk-in-ncsv2-8" /><item><title>RE: SPI for nrf5340dk in ncsv2.8</title><link>https://devzone.nordicsemi.com/thread/528768?ContentTypeID=1</link><pubDate>Tue, 25 Mar 2025 08:48:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c076e5fe-393b-4ab2-b8b3-4f00d117e4a9</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Glad to hear that! :)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI for nrf5340dk in ncsv2.8</title><link>https://devzone.nordicsemi.com/thread/528734?ContentTypeID=1</link><pubDate>Tue, 25 Mar 2025 04:08:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad6e50c6-206d-4eb6-90ff-deaa71cddcb2</guid><dc:creator>KTH</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Now able to read AD5940 chip id.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;struct spi_cs_control spi_cs = {
	.gpio = SPI_CS_GPIOS_DT_SPEC_GET(DT_NODELABEL(reg_my_spi_master)),
	.delay = 0,
};

static void spi_init(void)
{
	/*get device address*/
	spi_dev = DEVICE_DT_GET(DT_NODELABEL(spi1_master));

	if (!device_is_ready(spi_dev))
	{
		printk(&amp;quot;SPI master device not ready!\n&amp;quot;);
	}
	if (!device_is_ready(spi_cs-&amp;gt;gpio.port))
	{
		printk(&amp;quot;SPI master chip select device not ready!&amp;quot;);
	}
	printk(&amp;quot;SPI : %s	CS_GPIO: %s		CS_PIN: %d\n&amp;quot;, spi_dev-&amp;gt;name, spi_cs-&amp;gt;gpio.port-&amp;gt;name, spi_cs-&amp;gt;gpio.pin);
	printk(&amp;quot;SPI device ready\n&amp;quot;);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI for nrf5340dk in ncsv2.8</title><link>https://devzone.nordicsemi.com/thread/528625?ContentTypeID=1</link><pubDate>Mon, 24 Mar 2025 13:16:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d834e870-2d7e-4709-9d9e-618d16b5b2e1</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;DEVICE_DT_GET returns a pointer to the device object created for the instance, i.e a pointer to spi1 based on the DT_NODELABEL property of the device. See&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/bd1cf27b22f1003d58ecf4af81961722e1eb9949/include/zephyr/device.h#L254"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/bd1cf27b22f1003d58ecf4af81961722e1eb9949/include/zephyr/device.h#L254&lt;/a&gt;&amp;nbsp;or look the API up by going to definition within VS Code.&lt;/p&gt;
&lt;p&gt;The following&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;	spi_dev = DEVICE_DT_GET(DT_NODELABEL(spi1));
	if (spi_dev == NULL)
	{
		LOG_ERR(&amp;quot;Error: SPI device is not ready, err: %d&amp;quot;, err);
		return 0;
	}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;returns a pointer. And the ONLY time you enter the If-check is if said pointer is NULL. This means that you never check if the device is ready.&lt;/p&gt;
&lt;p&gt;See&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-5-serial-peripheral-interface-spi/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-5-serial-peripheral-interface-spi/&lt;/a&gt;&amp;nbsp;for more information about setting up and checking a SPI peripheral.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI for nrf5340dk in ncsv2.8</title><link>https://devzone.nordicsemi.com/thread/528520?ContentTypeID=1</link><pubDate>Mon, 24 Mar 2025 03:39:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e8f9210-1fe8-4681-97f7-27578db6cf90</guid><dc:creator>KTH</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;if (spi_dev == NULL)&lt;br /&gt; {&lt;br /&gt; LOG_ERR(&amp;quot;Error: SPI device is not ready, err: %d&amp;quot;, err);&lt;br /&gt; return 0;&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;This will check for whether the device is ready or not right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI for nrf5340dk in ncsv2.8</title><link>https://devzone.nordicsemi.com/thread/528415?ContentTypeID=1</link><pubDate>Fri, 21 Mar 2025 13:45:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:add58da3-4ef0-4959-a085-d72a4399aa28</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Glad to hear you&amp;#39;ve managed to get past the BLE issues.&lt;/p&gt;
&lt;p&gt;I see you&amp;#39;ve commented out the error check to see if the device is ready (line 49). Do you check at any point if your device is set up? Could you add a check to see if you&amp;#39;ve enabled and initialized the device properly and that it is working? There are some lessons in the fundamentals course that should cover how to do this as well&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI for nrf5340dk in ncsv2.8</title><link>https://devzone.nordicsemi.com/thread/527936?ContentTypeID=1</link><pubDate>Wed, 19 Mar 2025 06:13:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c63310a-0e48-45e1-a3da-6e2ef5e01746</guid><dc:creator>KTH</dc:creator><description>&lt;p&gt;Hi Andreas,&lt;/p&gt;
&lt;p&gt;Thank you for your guidance in resolving bt issue, flashed hci_ipc sample to network core and our application to application core. Able to transfer data.&lt;/p&gt;
&lt;p&gt;Now we have our custom board where AD5940 is connected to nrf5340 through spi.&amp;nbsp;Not&amp;nbsp;able to read chip id of ad5940. Tried with the example above.&lt;/p&gt;
&lt;p&gt;Taken reference from&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-5-serial-peripheral-interface-spi/topic/exercise-1-10/"&gt;Exercise 1 &amp;ndash; Interfacing with a sensor over SPI&lt;/a&gt;&amp;nbsp;and sample from github mentioned in the exercise,&amp;nbsp;&lt;a href="https://github.com/NordicDeveloperAcademy/ncs-inter/tree/main/v2.9.0-v2.7.0/l5/l5_e1_sol"&gt;spi_example&lt;/a&gt;. Modified spi pins in overlay.&lt;/p&gt;
&lt;p&gt;Using ad5940library.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0523.main.c"&gt;devzone.nordicsemi.com/.../0523.main.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;When we are tyring to read chipid, getting output as below&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;*** Booting nRF Connect SDK v2.9.0-7787b2649840 ***&lt;br /&gt;*** Using Zephyr OS v3.7.99-1f8f3dc29142 ***&lt;br /&gt;SPI : spi@9000&lt;br /&gt;00000000&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI for nrf5340dk in ncsv2.8</title><link>https://devzone.nordicsemi.com/thread/526008?ContentTypeID=1</link><pubDate>Wed, 05 Mar 2025 14:13:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ef84e1b-f7be-4491-8c88-608e8fd53ea2</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="KTH"]1. Can you explain how to get &amp;quot;&lt;span&gt;custom netcore firmware with custom board changes&lt;/span&gt;&amp;quot;?[/quote]
&lt;p&gt;I can&amp;#39;t quite see why this is relevant, since you can always set the SPI up on the appcore (which is recommended) and simply send the data using BLE, for instance NUS over BLE.&lt;/p&gt;
&lt;p&gt;If I&amp;nbsp; understand you&amp;#39;re issue correct, you&amp;#39;re now struggling with adding BLE to the SPI applicaiton. In NCS v2.9.0 we&amp;#39;re using &amp;quot;sysbuild&amp;quot; and &amp;quot;companion images&amp;quot; instead og child/parent-images which was previously used.&lt;/p&gt;
&lt;p&gt;What you need to do to get BLE is the same as is done in the BLE samples for nrf5340, where you build the hci_ipc companion component for the netcore through sysbuild.&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/bluetooth-low-energy-fundamentals/"&gt;https://academy.nordicsemi.com/courses/bluetooth-low-energy-fundamentals/&lt;/a&gt;&amp;nbsp;should explain it, but in case it does not you can see the sysbuild images here:&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/app_dev/config_and_build/sysbuild/sysbuild_images.html"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/app_dev/config_and_build/sysbuild/sysbuild_images.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Enabling&amp;nbsp;&lt;span&gt;SB_CONFIG_NETCORE_HCI_IPC in sysbuild.conf adds the netcore image to the application.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I strongly recommend you go through&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-sysbuild/topic/sysbuild-explained/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-sysbuild/topic/sysbuild-explained/&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
[quote user="KTH"]2. For our requirement do we need to add overlay for cpunet also?[/quote]
&lt;p&gt;I believe the answer to this is within my answer to 1 as well.&lt;/p&gt;
&lt;p&gt;Apologies for not supplying you with a simple sample, but I would recommend you to go through any BLE sample in the SDK that is built for the nrf5340 and copy the settings and setup to your application.&lt;/p&gt;
&lt;p&gt;This will be a multi-image build, and you don&amp;#39;t have to build for the netcore itself. By enabling the correct components (such as SB_CONFIG_NETCORE_HCI_IPC), the build system will drag in the required images to generate the hex that will flash both the appcore and netcore.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;br /&gt;Andreas&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI for nrf5340dk in ncsv2.8</title><link>https://devzone.nordicsemi.com/thread/525695?ContentTypeID=1</link><pubDate>Tue, 04 Mar 2025 11:40:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63652937-1854-402f-ab07-a313bd1d911b</guid><dc:creator>KTH</dc:creator><description>&lt;p&gt;Hi, we do have our custom board where we want to read sensor data using spi and send it through bt.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Able to test bt.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;prj.conf&lt;/strong&gt;:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BT&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BT_PERIPHERAL&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BT_DEVICE_NAME&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&amp;quot;nRF5340 DKK BLE&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BT_GATT_CLIENT&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2025_2D00_03_2D00_04-165513.png" /&gt;&lt;/p&gt;
&lt;p&gt;But when integrating bt in the sample where spi is working, it is building for cpuapp but not for cpunet. It is giving errors like i mentioned before.&lt;/p&gt;
&lt;p&gt;1. Can you explain how to get &amp;quot;&lt;span&gt;custom netcore firmware with custom board changes&lt;/span&gt;&amp;quot;?&lt;/p&gt;
&lt;p&gt;2. For our requirement do we need to add overlay for cpunet also?&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI for nrf5340dk in ncsv2.8</title><link>https://devzone.nordicsemi.com/thread/525484?ContentTypeID=1</link><pubDate>Mon, 03 Mar 2025 11:35:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd51e70b-146f-4bb1-a432-944936516018</guid><dc:creator>AHaug</dc:creator><description>[quote user="KTH"]&lt;p&gt;&lt;span&gt;1. Tried with a different pc where ncs2.6.1 and toolchain 2.7&amp;nbsp;were&amp;nbsp;installed, it is building.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2.Reinstalled ncs&amp;nbsp; and all tools again.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;ncs 2.9&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; tool chain 2.9. Able to build the sample.&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Great! Glad to hear that&lt;/p&gt;
[quote user="KTH"]But in both the cases it is giving error related to overlay file[/quote]
&lt;p&gt;To be frank, the Problem-tab is quite misleading in some cases and might through warnings and red-underline some issues that is not there at all. But if I would guess if the error is a real one, I would guess that it is because some naming has changed between v2.5.1 (where the sample was built) and v2.6.1. On second thought, it might actually be due to hardware model changes&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/releases_and_maturity/migration/migration_hwmv2.html"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/releases_and_maturity/migration/migration_hwmv2.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
[quote user="KTH"]And also, do we have to add different overlay for application and network core?[/quote]
&lt;p&gt;For the 5340 you only need to have a board file for the cpuapp and the non-secure version of cpuapp, i.e cpuapp/ns unless you have custom netcore firmware with custom board changes. As it is by default: The build system will add the companion components it needs to add for the netcore if you add the relevant configurations to prj.conf or sysbuild.conf and sysbuild/&amp;lt;your_companion_image&amp;gt;.conf and .overlay. See &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/lessons/lesson-3-elements-of-an-nrf-connect-sdk-application/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/lessons/lesson-3-elements-of-an-nrf-connect-sdk-application/&lt;/a&gt;&amp;nbsp;for a great explanation of the components in an NCS application and&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-sysbuild/topic/sysbuild-explained/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-sysbuild/topic/sysbuild-explained/&lt;/a&gt;&amp;nbsp;for the sysbuild expandation&lt;/p&gt;
[quote user="KTH"]When building the same sample for configuration nrf5340dk/nrf5340/cpunet, it is giving errors[/quote]
&lt;p&gt;This is roughly the same errors that you got previously, where the build fault log states that it can&amp;#39;t find the items in main.c that is specified in &amp;lt;your_build_target&amp;gt;.overlay, since there are no nrf5340dk/nrf5340/cpunet overlay files that states that the various SPIM/S instances should be on the board.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Let me know if this answers your questions!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI for nrf5340dk in ncsv2.8</title><link>https://devzone.nordicsemi.com/thread/525469?ContentTypeID=1</link><pubDate>Mon, 03 Mar 2025 10:43:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:397b6c21-c207-4b27-ad8d-e93a3ad744d3</guid><dc:creator>KTH</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Andreas,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;1. Tried with a different pc where ncs2.6.1 and toolchain 2.7&amp;nbsp;were&amp;nbsp;installed, it is building.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2.Reinstalled ncs&amp;nbsp; and all tools again.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;ncs 2.9&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; tool chain 2.9. Able to build the sample.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But in both the cases it is giving error related to overlay file&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2025_2D00_03_2D00_03-160441.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;And also, do we have to add different overlay for application and network core?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When building the same sample for configuration nrf5340dk/nrf5340/cpunet, it is giving errors&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2025_2D00_03_2D00_03-160615.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2025_2D00_03_2D00_03-160912.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI for nrf5340dk in ncsv2.8</title><link>https://devzone.nordicsemi.com/thread/525283?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2025 13:25:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f999d773-6c81-4cc9-99aa-bae2b2c8b040</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;I must admit I&amp;#39;m baffled. I can&amp;#39;t see anything but there being something faulty with the installation or that something has been modified in the SDK&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Could you try with a different work station&lt;/li&gt;
&lt;li&gt;Could you uninstall NCS and all tools completely and reinstall them per&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/installation/install_ncs.html"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/installation/install_ncs.html&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I&amp;#39;ve tried building with multiple different work stations myself, as well as different OS and none give the faults you&amp;#39;re seeing. Since you were able to build the adc sample out of tree, I am expecting you to be able to build the zip I sent you with the exact same steps as you successfully built the adc sample with.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI for nrf5340dk in ncsv2.8</title><link>https://devzone.nordicsemi.com/thread/525239?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2025 10:20:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8e451e3-aced-4a09-b690-893be49a67d2</guid><dc:creator>KTH</dc:creator><description>&lt;p&gt;Built the sample for given configuration, still it is giving errors&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2025_2D00_02_2D00_28-154221.png" /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2025_2D00_02_2D00_28-154353.png" /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2025_2D00_02_2D00_28-154504.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI for nrf5340dk in ncsv2.8</title><link>https://devzone.nordicsemi.com/thread/525228?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2025 09:37:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3b4af1e-cdbe-4ad5-b270-6b9767519def</guid><dc:creator>AHaug</dc:creator><description>[quote user="KTH"]adc_sequene sample is building with target nrf52840dk[/quote]
&lt;p&gt;Thats good to hear. This indicates that the SDK is properly set up and that building an in-tree application works.&lt;/p&gt;
[quote user="KTH"]nrf connect generate support information is as below[/quote]
&lt;p&gt;Everything here looks fine and your setup is as good as identical to mine.&lt;/p&gt;
&lt;p&gt;W.r.t the spi sample.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s a new, unmodified version of the same sample from here&amp;nbsp;&lt;a href="https://github.com/too1/ncs-spi-master-slave-example/tree/master"&gt;https://github.com/too1/ncs-spi-master-slave-example/tree/master&lt;/a&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/spi_5F00_m_5F00_s.zip"&gt;devzone.nordicsemi.com/.../spi_5F00_m_5F00_s.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve verified with multiple colleagues that this sample builds out of the box for the following configuration&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;NCS 2.8.0&lt;/li&gt;
&lt;li&gt;nrf5340dk/nrf5340/cpuapp&lt;/li&gt;
&lt;li&gt;with and without sysbuild&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I see that you&amp;#39;ve previously built the SPI sample from&amp;nbsp;c:\Users\hello\Music\ncs-spi-master-slave-example-master. Could you shorten the name of the sample and preferably place it closer to C:\? Windows has an issue with path length when building any project.&lt;br /&gt;&lt;br /&gt;Place the sample for instance within ncs/my_projects&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1740735403165v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;and build for the configuration I mentioned.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI for nrf5340dk in ncsv2.8</title><link>https://devzone.nordicsemi.com/thread/525215?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2025 08:56:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d28a853-335d-4f82-b865-590ef30c5201</guid><dc:creator>KTH</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;adc_sequene sample is building with target nrf52840dk&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2025_2D00_02_2D00_28-141038.png" /&gt;&lt;/p&gt;
&lt;p&gt;nrf connect generate support information is as below&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1682.nrf.txt"&gt;devzone.nordicsemi.com/.../1682.nrf.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI for nrf5340dk in ncsv2.8</title><link>https://devzone.nordicsemi.com/thread/525205?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2025 08:14:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c30166c-52b0-4cd7-a757-7bcc6e226f1c</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Lets start with the ADC sample first. This sample work for at least the supported boards. Lets focus on the adc_sequence sample within zephyr/samples/drivers/adc.&lt;/p&gt;
[quote user="KTH"]Not able to build zephyr ADC examples also[/quote]
&lt;p&gt;There are also no nRF5340 board support in the board folder of this sample. It works with any of the boards found within adc_sequence/boards, for instance with nrf52840dk/nrf52840 (below is a result with build from terminal and list of the boards found in the boards folder of this sample. The same can be stated for the VS Code extension).&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1740730204098v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;If you remove and build for the nrf52840dk, do you see the error as you previously did? If you do, then I believe there is something wrong with your installation. Could you 1: generate support information from vs code by opening command pallette in VS Code, i.e&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open VS Code&lt;/li&gt;
&lt;li&gt;Open command pallet by pressing ctrl+***+p&lt;/li&gt;
&lt;li&gt;search for &amp;quot;generate support information&amp;quot;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Select it and press enter and upload the information here&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1740730410366v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;If we get this working, then we can go back to the spi master sample from too1&amp;#39;s git repo&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI for nrf5340dk in ncsv2.8</title><link>https://devzone.nordicsemi.com/thread/525186?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2025 04:23:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:819adab6-e037-41fc-bf22-599617edaf62</guid><dc:creator>KTH</dc:creator><description>&lt;p&gt;Hi, tried building with target &lt;strong&gt;nrf5340dk/nrf5340/cpuapp &lt;/strong&gt;selected, still giving errors.&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2025_2D00_02_2D00_28-093458.png" /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2025_2D00_02_2D00_28-093535.png" /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2025_2D00_02_2D00_28-094237.png" /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2025_2D00_02_2D00_28-094329.png" /&gt;&lt;/p&gt;
&lt;p&gt;Not able to build zephyr ADC examples also&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-_2800_95_2900_.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI for nrf5340dk in ncsv2.8</title><link>https://devzone.nordicsemi.com/thread/525061?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2025 13:16:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22197a7c-c98a-4e60-99c6-945adfcfd9d9</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Ah, thank you for providing this. You&amp;#39;re building for the /ns target of the nRF5340DK. Currently there are no board files for this within the board folder meaning that the SPI configuration is not set up for the build target you&amp;#39;re trying to target&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1740662094071v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Please try again with this target and let me know if this compiles&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1740662131963v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI for nrf5340dk in ncsv2.8</title><link>https://devzone.nordicsemi.com/thread/524960?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2025 04:53:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e507e8da-55d7-476c-a039-1076730e26fd</guid><dc:creator>KTH</dc:creator><description>&lt;p&gt;Hi,Here are the images of the building the sample&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2025_2D00_02_2D00_27-101320.png" /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2025_2D00_02_2D00_27-101354.png" /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2025_2D00_02_2D00_27-101731.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI for nrf5340dk in ncsv2.8</title><link>https://devzone.nordicsemi.com/thread/524654?ContentTypeID=1</link><pubDate>Tue, 25 Feb 2025 15:02:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f63c783a-7152-4058-ba6b-37685ea1c4ee</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Strange.. And the errors you&amp;#39;re getting is the same as the initial comment in this post?&lt;br /&gt;&lt;br /&gt;Please describe in detail every step you do to build the sample. Images are also welcome.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI for nrf5340dk in ncsv2.8</title><link>https://devzone.nordicsemi.com/thread/524300?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2025 10:32:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63dd7f98-02eb-449e-84d1-9428371fd281</guid><dc:creator>KTH</dc:creator><description>&lt;p&gt;Tried to build again like you mentioned by deleting the build folder before building again, still same.&lt;/p&gt;
&lt;p&gt;Previously also, downloaded the example again and tried to build it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI for nrf5340dk in ncsv2.8</title><link>https://devzone.nordicsemi.com/thread/524269?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2025 09:13:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:514106a4-4d63-466a-8815-870e0b4bbbe0</guid><dc:creator>AHaug</dc:creator><description>[quote user="KTH"]I tried again to build the same example by selecting nrf5340dk/nrf5340/cpuapp in Board target when adding build configuration. still getting the below errors.[/quote]
&lt;p&gt;You&amp;#39;re referring to an unmodified version this sample, right?&amp;nbsp;&lt;a href="https://github.com/too1/ncs-spi-master-slave-example/tree/master/src"&gt;https://github.com/too1/ncs-spi-master-slave-example/tree/master/src&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If so, please try again but first delete the build folder before building again. I&amp;#39;m not getting any faulty builds for any versions of NCS from NCS 2.5.0 to NCS 2.9.0&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI for nrf5340dk in ncsv2.8</title><link>https://devzone.nordicsemi.com/thread/524223?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2025 05:11:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ada1982-dd64-4623-8ffd-33d1f00aedbf</guid><dc:creator>KTH</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I tried again to build the same example by selecting nrf5340dk/nrf5340/cpuapp in Board target when adding build configuration. still getting the below errors.&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/2388.nrf.txt"&gt;devzone.nordicsemi.com/.../2388.nrf.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Didn&amp;#39;t make any changes to the example.&lt;/p&gt;
&lt;p&gt;Also can you once check&amp;nbsp;the configurations in my before post ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI for nrf5340dk in ncsv2.8</title><link>https://devzone.nordicsemi.com/thread/523843?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2025 09:37:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e767e3a-2536-4a73-91e9-759760a6ef0b</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Apologies for the delay.&lt;/p&gt;
&lt;p&gt;I reviewed the sample you originally supplied and there is nothing in it that suggests that it is not compatible with sysbuild (which is used in NCS v2.8.0). I build the sample using&lt;/p&gt;
&lt;p&gt;&lt;em&gt;west build -b nrf5340dk/nrf5340/cpuapp&lt;/em&gt; and flashed it with&amp;nbsp;&lt;em&gt;west flash --recover&lt;/em&gt; on my nRF5340DK and got the expected output:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1740044092462v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI for nrf5340dk in ncsv2.8</title><link>https://devzone.nordicsemi.com/thread/523031?ContentTypeID=1</link><pubDate>Fri, 14 Feb 2025 11:49:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0a0afd6-49e5-4d5f-9edb-4f113121e1b8</guid><dc:creator>KTH</dc:creator><description>&lt;p&gt;Hi, We want a design where we want use 2 spi buses for 4 slaves.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrf.txt"&gt;devzone.nordicsemi.com/.../nrf.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Can you once check above attached file??&lt;/p&gt;
&lt;p&gt;Is there any zephyr spi sample example for nrf5340 for multiple slaves?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thankyou&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI for nrf5340dk in ncsv2.8</title><link>https://devzone.nordicsemi.com/thread/522900?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2025 14:40:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:634cdba8-9505-4780-aa83-d34c52704bda</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I recommend you go through the SPI lesson on our academy pages&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-5-serial-peripheral-interface-spi/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-5-serial-peripheral-interface-spi/&lt;/a&gt;&amp;nbsp;as well as the sysbuild exercise&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-sysbuild/topic/sysbuild-explained/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-sysbuild/topic/sysbuild-explained/&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The unofficial sample that you&amp;#39;re using will unfortunately not be maintained and upgraded to support any newer release and the latest version this sample was supported for is NCS older than v2.7.0 as far as I can see.&lt;/p&gt;
&lt;p&gt;The only resolution for you is to go through the two supplied links, understand the topics and apply the required changes to the sample you&amp;#39;ve based the application on.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>