<?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>Error while trying to config SPI in VS code .</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91722/error-while-trying-to-config-spi-in-vs-code</link><description>HI i am working with the nrf 52833 dk board using nrf connect and trying to implement SPI , 
 #define SPI3_NODE DT_NODELABEL (SPI_3) 
 
 static const struct spi_dt_spec* dev_spi = SPI_DT_SPEC_GET(SPI3_NODE,SPI_OP_MODE_MASTER,1); 
 I am getting this error</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 12 Sep 2022 12:52:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91722/error-while-trying-to-config-spi-in-vs-code" /><item><title>RE: Error while trying to config SPI in VS code .</title><link>https://devzone.nordicsemi.com/thread/385743?ContentTypeID=1</link><pubDate>Mon, 12 Sep 2022 12:52:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a5425bc-d713-44f5-af61-0a964c0a4dfc</guid><dc:creator>Manas_punjabi</dc:creator><description>&lt;ul&gt;
&lt;li class="attribute-item close"&gt;Case ID: 266953&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error while trying to config SPI in VS code .</title><link>https://devzone.nordicsemi.com/thread/385524?ContentTypeID=1</link><pubDate>Fri, 09 Sep 2022 12:53:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e0b482c-ece9-43d3-9920-63b63304b154</guid><dc:creator>Manas_punjabi</dc:creator><description>&lt;p&gt;this is what i am getting after adding that to config files&lt;pre class="ui-code" data-mode="text"&gt;*** Booting Zephyr OS build v3.0.99-ncs1-1  ***

SPIM Example

TX sent: 9f

RX recv: ff

TX sent: 0

RX recv: ff

TX sent: 0

RX recv: ff

TX sent: 0

RX recv: ff

[00:00:00.256,713] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: tx_bufs 0x200                                                                                                 01630 - rx_bufs 0x20001620 - 1

[00:00:00.256,713] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: current_tx 0x                                                                                                 20001638 (1), current_rx 0x20001628 (1), tx buf/len 0x20000838/1, rx buf/len 0x2                                                                                                 0000830/1

[00:00:00.256,744] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_tx: tx buf/len (nil)/                                                                                                 0

[00:00:00.256,744] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_rx: rx buf/len (nil)/                                                                                                 0

[00:00:00.256,774] &amp;lt;dbg&amp;gt; spi_nrfx_spim: transfer_next_chunk: Transaction finishe                                                                                                 d with status 0

[00:00:00.258,941] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: tx_bufs 0x200                                                                                                 01630 - rx_bufs 0x20001620 - 1

[00:00:00.258,972] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: current_tx 0x                                                                                                 20001638 (1), current_rx 0x20001628 (1), tx buf/len 0x20000838/1, rx buf/len 0x2                                                                                                 0000830/1

[00:00:00.258,972] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_tx: tx buf/len (nil)/                                                                                                 0

[00:00:00.259,002] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_rx: rx buf/len (nil)/                                                                                                 0

[00:00:00.259,002] &amp;lt;dbg&amp;gt; spi_nrfx_spim: transfer_next_chunk: Transaction finishe                                                                                                 d with status 0

[00:00:00.261,108] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: tx_bufs 0x200                                                                                                 01630 - rx_bufs 0x20001620 - 1

[00:00:00.261,108] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: current_tx 0x                                                                                                 20001638 (1), current_rx 0x20001628 (1), tx buf/len 0x20000838/1, rx buf/len 0x2                                                                                                 0000830/1

[00:00:00.261,138] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_tx: tx buf/len (nil)/                                                                                                 0

[00:00:00.261,138] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_rx: rx buf/len (nil)/                                                                                                 0

[00:00:00.261,169] &amp;lt;dbg&amp;gt; spi_nrfx_spim: transfer_next_chunk: Transaction finishe                                                                                                 d with status 0

[00:00:00.263,244] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: tx_bufs 0x200                                                                                                 01630 - rx_bufs 0x20001620 - 1

[00:00:00.263,275] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: current_tx 0x                                                                                                 20001638 (1), current_rx 0x20001628 (1), tx buf/len 0x20000838/1, rx buf/len 0x2                                                                                                 0000830/1

[00:00:00.263,305] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_tx: tx buf/len (nil)/                                                                                                 0

[00:00:00.263,305] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_rx: rx buf/len (nil)/                                                                                                 0

[00:00:00.263,305] &amp;lt;dbg&amp;gt; spi_nrfx_spim: transfer_next_chunk: Transaction finishe                                                                                                 d with status 0

^C*** Booting Zephyr OS build v3.0.99-ncs1-1  ***



SPIM Example



TX sent: 9f



RX recv: ff



TX sent: 0



RX recv: ff



TX sent: 0



RX recv: ff



TX sent: 0



RX recv: ff



[00:00:00.256,713] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: tx_bufs 0x200                                                                                                 01630 - rx_bufs 0x20001620 - 1



[00:00:00.256,713] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: current_tx 0x                                                                                                 20001638 (1), current_rx 0x20001628 (1), tx buf/len 0x20000838/1, rx buf/len 0x2                                                                                                 0000830/1



[00:00:00.256,744] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_tx: tx buf/len (nil)/                                                                                                 0



[00:00:00.256,744] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_rx: rx buf/len (nil)/                                                                                                 0



[00:00:00.256,774] &amp;lt;dbg&amp;gt; spi_nrfx_spim: transfer_next_chunk: Transaction finishe                                                                                                 d with status 0



[00:00:00.258,941] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: tx_bufs 0x200                                                                                                 01630 - rx_bufs 0x20001620 - 1



[00:00:00.258,972] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: current_tx 0x                                                                                                 20001638 (1), current_rx 0x20001628 (1), tx buf/len 0x20000838/1, rx buf/len 0x2                                                                                                 0000830/1



[00:00:00.258,972] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_tx: tx buf/len (nil)/                                                                                                 0



[00:00:00.259,002] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_rx: rx buf/len (nil)/                                                                                                 0



[00:00:00.259,002] &amp;lt;dbg&amp;gt; spi_nrfx_spim: transfer_next_chunk: Transaction finishe                                                                                                 d with status 0



[00:00:00.261,108] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: tx_bufs 0x200                                                                                                 01630 - rx_bufs 0x20001620 - 1



[00:00:00.261,108] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_buffers_setup: current_tx 0x                                                                                                 20001638 (1), current_rx 0x20001628 (1), tx buf/len 0x20000838/1, rx buf/len 0x2                                                                                                 0000830/1



[00:00:00.261,138] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_tx: tx buf/len (nil)/                                                                                                 0



[00:00:00.261,138] &amp;lt;dbg&amp;gt; spi_nrfx_spim: spi_context_update_rx: rx buf/len (nil)/                                                                                                 0



[00:00:00.261,169] &amp;lt;dbg&amp;gt; spi_nrfx_spim: transfer_next_chunk: Transaction finishe                                                                                                 d with status 0
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error while trying to config SPI in VS code .</title><link>https://devzone.nordicsemi.com/thread/385518?ContentTypeID=1</link><pubDate>Fri, 09 Sep 2022 12:32:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bbe3ba6-d724-4d8a-967d-222379f3da56</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you enable more logging in SPI to see where it fails?&lt;/p&gt;
&lt;p&gt;Add the following to prj.conf:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;CONFIG_SPI_LOG_LEVEL_DBG=y&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;span&gt;CONFIG_LOG=y&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Marte&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error while trying to config SPI in VS code .</title><link>https://devzone.nordicsemi.com/thread/385454?ContentTypeID=1</link><pubDate>Fri, 09 Sep 2022 08:52:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a95c7a6a-8a2e-4fbf-9ff5-97b9534e1a90</guid><dc:creator>Manas_punjabi</dc:creator><description>&lt;p&gt;HI yes i did all the changes and&amp;nbsp; have got it working , this is the code i am working with and winbond flash and my first step is to get the JEDEC ID, hence all the extra lines&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;/*
 * Copyright (c) 2012-2014 Wind River Systems, Inc.
 *
 * SPDX-License-Identifier: Apache-2.0
 */

#include &amp;lt;zephyr.h&amp;gt;

#include &amp;lt;sys/printk.h&amp;gt;

#include &amp;lt;drivers/spi.h&amp;gt;

//addition for combining blinky

static struct spi_config spi_cfg = {
  .operation = SPI_OP_MODE_MASTER|SPI_WORD_SET(8) | SPI_TRANSFER_MSB |
  SPI_MODE_CPOL | SPI_MODE_CPHA,
  .frequency = 4000000,
  .slave = 0,
};

struct device * spi_dev;

static void spi_init(void) {
    const char *
      const spiName = &amp;quot;SPI_3&amp;quot;;
    spi_dev = device_get_binding(spiName);

    if (spi_dev == NULL) {
      printk(&amp;quot;Could not get %s device\n&amp;quot;, spiName);
      return;
    }
}

void spi_test_send(void) {
  int err;
  //static u8_t tx_buffer[1];
  //static u8_t rx_buffer[1];
  static uint8_t tx_buffer[2] = {
	0X9F,
	0x00,
	0x00
  };
  static uint8_t rx_buffer[3];

  const struct spi_buf tx_buf = {
	.buf = tx_buffer,
	.len = sizeof(tx_buffer)
  };
  const struct spi_buf_set tx = {
	.buffers = &amp;amp; tx_buf,
	.count = 1
  };

  struct spi_buf rx_buf = {
	.buf = rx_buffer,
	.len = sizeof(rx_buffer),
  };
  const struct spi_buf_set rx = {
	.buffers = &amp;amp; rx_buf,
	.count = 1
  };

  struct device * gpio_dev;
  struct spi_cs_control cs_control;

  gpio_dev = device_get_binding(&amp;quot;GPIO_0&amp;quot;);
  if (!gpio_dev) {
	printk(&amp;quot;could not find GPIO device\n&amp;quot;);
	return;
  }
  cs_control.delay = 0;
  cs_control.gpio_dev = gpio_dev;
  cs_control.gpio_pin = 16;
  spi_cfg.cs = &amp;amp; cs_control;

  err = spi_transceive(spi_dev, &amp;amp; spi_cfg, &amp;amp; tx, &amp;amp; rx);

  if (err) {
	printk(&amp;quot;SPI error: %d\n&amp;quot;, err);
  } else {
	/* Connect MISO to MOSI for loopback */

	for (int i = 0; i &amp;lt; 3; i++) {
	  printk(&amp;quot;TX transmit: %x\n&amp;quot;, tx_buffer[i]);
	}

	for (int i = 0; i &amp;lt; 3; i++) {
	  printk(&amp;quot;RX recv: %x\n&amp;quot;, rx_buffer[i]);
	}
  }
}

void main(void) {
  printk(&amp;quot;SPIM Example\n&amp;quot;);
  spi_init();
  printk(&amp;quot;After init\n&amp;quot;);
  while (1) {
	spi_test_send();
	k_sleep(K_MSEC(1000));
	printk(&amp;quot;.&amp;quot;);
  }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;but I still am not able to get the&amp;nbsp;JEDEC ID &amp;nbsp;,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;thank you for all your help , I&amp;#39;m having a little trouble understanding it .&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error while trying to config SPI in VS code .</title><link>https://devzone.nordicsemi.com/thread/385441?ContentTypeID=1</link><pubDate>Fri, 09 Sep 2022 08:05:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbf2fa29-396c-4d70-bbd0-6ddce205cbde</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I do not believe you get the SPI device successfully. You are creating a new spi_dev inside of&amp;nbsp;spi_init(). Try the following instead:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;const struct device * spi_dev;

static void spi_init(void)
{
	#define SPI_3 DT_NODELABEL(spi3)
	spi_dev = device_get_binding(DT_LABEL(SPI_3));
	if (spi_dev == NULL) {
		printk(&amp;quot;Could not get device\n&amp;quot;);
		return;
	}
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then remove everything on lines 47 to 53, i.e. this part:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrf_gpio_cfg_output(CS_PIN);
// GPIO_SetBits(SPI_CS_MS_DEMO_PIN);
nrf_gpio_pin_set(CS_PIN);
// GPIO_ResetBits(SPI_CS_MS_DEMO_PIN);
nrf_gpio_pin_clear(CS_PIN);
tx_buffer[0]=0x9F;
// SPI_Send_Receive_Data(&amp;amp;a, &amp;amp;a1);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And also remove&amp;nbsp;nrf_gpio_pin_set(CS_PIN); on line 62.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error while trying to config SPI in VS code .</title><link>https://devzone.nordicsemi.com/thread/385249?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 11:46:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:723510c2-457e-47f4-bb51-ea29907872f9</guid><dc:creator>Manas_punjabi</dc:creator><description>&lt;p&gt;yes i have managed to get that ,&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;err = spi_transceive(spi_dev, &amp;amp;spi_cfg, &amp;amp;tx, &amp;amp;rx);
	if (err) {
		printk(&amp;quot;SPI error: %d\n&amp;quot;, err);
		}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;im getting error value to be -22&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error while trying to config SPI in VS code .</title><link>https://devzone.nordicsemi.com/thread/385248?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 11:44:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a4600f6-7f27-44f4-809c-ff8c9893ec86</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Have you checked that the SPI device is found? For example:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;if (spi_dev == NULL) {
	printk(&amp;quot;Could not get %s device\n&amp;quot;, spiName);
	return;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error while trying to config SPI in VS code .</title><link>https://devzone.nordicsemi.com/thread/385228?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 10:28:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e18ecad2-ab87-4298-8d66-c94ab4d06e80</guid><dc:creator>Manas_punjabi</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;lt;zephyr.h&amp;gt;
#include &amp;lt;sys/printk.h&amp;gt;
#include &amp;lt;device.h&amp;gt;
#include &amp;lt;drivers/spi.h&amp;gt;
#include &amp;lt;hal/nrf_gpio.h&amp;gt;

#define CS_PIN 16

static const struct spi_config spi_cfg = {
	.operation = SPI_WORD_SET(8) | SPI_TRANSFER_MSB |
		     SPI_MODE_CPOL | SPI_MODE_CPHA,
	.frequency = 4000000,
	.slave = 0,
};

const struct device * spi_dev;

static void spi_init(void)
{
	#define SPI_3 DT_NODELABEL(spi3)
	const struct device *spi_dev = device_get_binding(DT_LABEL(SPI_3));
}

void spi_test_send(void)
{
	int err;
	static uint8_t tx_buffer[1];
	static uint8_t rx_buffer[1];

	const struct spi_buf tx_buf = {
		.buf = tx_buffer,
		.len = sizeof(tx_buffer)
	};
	const struct spi_buf_set tx = {
		.buffers = &amp;amp;tx_buf,
		.count = 1
	};

	struct spi_buf rx_buf = {
		.buf = rx_buffer,
		.len = sizeof(rx_buffer),
	};
	const struct spi_buf_set rx = {
		.buffers = &amp;amp;rx_buf,
		.count = 1
	};
	nrf_gpio_cfg_output(CS_PIN);
		// GPIO_SetBits(SPI_CS_MS_DEMO_PIN);
		nrf_gpio_pin_set(CS_PIN);
		// GPIO_ResetBits(SPI_CS_MS_DEMO_PIN);
		nrf_gpio_pin_clear(CS_PIN);
		tx_buffer[0]=0x9F;
		// SPI_Send_Receive_Data(&amp;amp;a, &amp;amp;a1);
		err = spi_transceive(spi_dev, &amp;amp;spi_cfg, &amp;amp;tx, &amp;amp;rx);
	if (err) {
		printk(&amp;quot;SPI error: %d\n&amp;quot;, err);
	}else{
		printk(&amp;quot;TX sent: %x\n&amp;quot;, tx_buffer[0]);
		printk(&amp;quot;RX recv: %x\n&amp;quot;, rx_buffer[0]);
	}

		nrf_gpio_pin_set(CS_PIN);
	
}

void main(void)
{
	printk(&amp;quot;SPIM Example\n&amp;quot;);
	spi_init();

	while (1) {
		spi_test_send();
		k_sleep(K_SECONDS(1));
	}
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;this is the code i am working with , what changes do you suggest i make&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I cannot establish a connection only with the spi device .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error while trying to config SPI in VS code .</title><link>https://devzone.nordicsemi.com/thread/385206?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 09:14:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b71da86-0b7b-47eb-92f7-ac24a45fd012</guid><dc:creator>Manas_punjabi</dc:creator><description>&lt;p&gt;If possible could you help me out in trying to use the 1st sample only , I am trying to implement flash and the only thing I want to try first is getting the manufacture ID.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error while trying to config SPI in VS code .</title><link>https://devzone.nordicsemi.com/thread/385198?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 08:53:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:110a923e-0efc-41c0-82e9-4896617400a1</guid><dc:creator>Manas_punjabi</dc:creator><description>&lt;p&gt;Hi , yes this a little complex but still understandable ,&lt;/p&gt;
&lt;p&gt;I have a few question regarding the overlay file&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1) what is this for&amp;nbsp;&lt;/p&gt;
&lt;table class="highlight tab-size js-file-line-container js-code-nav-container js-tagsearch-file" data-hpc="" data-tab-size="8" data-paste-markdown-skip="" data-tagsearch-lang="" data-tagsearch-path="nrf52840dk_nrf52840.overlay"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td id="LC45" class="blob-code blob-code-inner js-file-line"&gt;reg_my_spi_master: spi-dev-a@0 {&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td id="L46" class="blob-num js-line-number js-code-nav-line-number js-blob-rnum" data-line-number="46"&gt;&lt;/td&gt;
&lt;td id="LC46" class="blob-code blob-code-inner js-file-line"&gt;reg = &amp;lt;0&amp;gt;;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;and&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2) def-char = &amp;lt;0x00&amp;gt;; is showing me an error saying&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Property not mentioned in &amp;quot;nordic,nrf-spim&amp;quot;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error while trying to config SPI in VS code .</title><link>https://devzone.nordicsemi.com/thread/385175?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 07:56:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5fcd8904-fb4d-485e-bb51-984153b06039</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;With spi_cs_control you can control a CS line via a GPIO line instead of using the inner CS logic of the controller.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The example I linked to is based on an older version of nRF Connect SDK (v1.8.0), so it might be a bit outdated. However, I found an example by another colleague which is based on v2.0.2. It is a bit more complex, but it shows how to use SPI with&amp;nbsp;spi_cs_control:&amp;nbsp;&lt;a href="https://github.com/too1/ncs-spi-master-slave-example"&gt;https://github.com/too1/ncs-spi-master-slave-example&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error while trying to config SPI in VS code .</title><link>https://devzone.nordicsemi.com/thread/385155?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 06:03:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79dfa34f-6f3b-44a0-ade4-f5d09255f426</guid><dc:creator>Manas_punjabi</dc:creator><description>&lt;p&gt;Hi , thank you for your response,&lt;/p&gt;
&lt;p&gt;A little simple doubt I have&amp;nbsp; ,after reading through the sample , what is the difference in using the CS pin through the&amp;nbsp;&lt;/p&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;spi_cs_control&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; and&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;cs-gpios&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &amp;lt;&lt;/span&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;gpio0&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;16&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;GPIO_ACTIVE_LOW&lt;/span&gt;&lt;span&gt;&amp;gt;;&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error while trying to config SPI in VS code .</title><link>https://devzone.nordicsemi.com/thread/385036?ContentTypeID=1</link><pubDate>Wed, 07 Sep 2022 12:34:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8cfe52f2-81c0-4eb7-ab1b-826aa2d32691</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please try using this SPI example made by a former colleague of mine as a starting point instead:&amp;nbsp;&lt;a href="https://github.com/crfosse/ncs_projects/tree/main/peripheral_zephyr/spi"&gt;https://github.com/crfosse/ncs_projects/tree/main/peripheral_zephyr/spi&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>