<?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>Configuring SPI0 -  DT_NORDIC_NRF_SPI_SPI_0_IRQ_0_PRIORITY&amp;#39; undeclared</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60878/configuring-spi0---dt_nordic_nrf_spi_spi_0_irq_0_priority-undeclared</link><description>Hi, 
 I am using nrf Connect SDK v1.2.0 in Segger Embedded Studio 4.52 and developing on a nrf52840 development kit (pca_10056). I use the &amp;quot;configure nrf connect sdk project&amp;quot; for configuration. However, when I enable SPI 0 and try to build the project</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 Jun 2020 13:52:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60878/configuring-spi0---dt_nordic_nrf_spi_spi_0_irq_0_priority-undeclared" /><item><title>RE: Configuring SPI0 -  DT_NORDIC_NRF_SPI_SPI_0_IRQ_0_PRIORITY' undeclared</title><link>https://devzone.nordicsemi.com/thread/255293?ContentTypeID=1</link><pubDate>Tue, 16 Jun 2020 13:52:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00bd42ee-c039-4986-bffb-d3ea52192512</guid><dc:creator>Shaney</dc:creator><description>&lt;p&gt;As an update incase anyone else struggles with the same issue. The problem seem to have been the .dts file. The one for nrf52840 devkit that is included in ncs, nrf52840_pca10056 states the following:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;spi0 {
	compatible = &amp;quot;nordic,nrf-spi&amp;quot;;
	/* Cannot be used together with i2c0. */
	status = &amp;quot;okay&amp;quot;;
	sck-pin = &amp;lt;27&amp;gt;;
	mosi-pin = &amp;lt;26&amp;gt;;
	miso-pin = &amp;lt;29&amp;gt;;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Note the &amp;quot;compatible&amp;quot; filed only states nrf-spi and NOT nrf-spim. This resulted in not all files being generated, thus the error when trying to build .&lt;/p&gt;
&lt;p&gt;Adding compatible = &amp;quot;nrf-spim&amp;quot; at spi0,sp1 and spi2 fixed this. The same thing was needed for i2c, changing &amp;quot;nrf-twi&amp;quot; to &amp;quot;nrf-twim&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring SPI0 -  DT_NORDIC_NRF_SPI_SPI_0_IRQ_0_PRIORITY' undeclared</title><link>https://devzone.nordicsemi.com/thread/249589?ContentTypeID=1</link><pubDate>Wed, 13 May 2020 05:00:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3600a800-4864-4e71-b41b-265269dea22f</guid><dc:creator>Shaney</dc:creator><description>[quote userid="15146" url="~/f/nordic-q-a/60878/configuring-spi0---dt_nordic_nrf_spi_spi_0_irq_0_priority-undeclared/249533"]Could you double check that you are on NCS v1.2.0 ?[/quote]
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/8345.pastedimage1589345085412v1.png" alt=" " /&gt;&lt;/p&gt;
[quote userid="15146" url="~/f/nordic-q-a/60878/configuring-spi0---dt_nordic_nrf_spi_spi_0_irq_0_priority-undeclared/249533"]Make sure that you have board&amp;nbsp;nrf52840_pca10056 selected[/quote]
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/7762.pastedimage1589345127943v2.png" alt=" " /&gt;&lt;/p&gt;
[quote userid="15146" url="~/f/nordic-q-a/60878/configuring-spi0---dt_nordic_nrf_spi_spi_0_irq_0_priority-undeclared/249533"]Does this .hex file work on your DK?[/quote]
&lt;p&gt;Seems like it does&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="15146" url="~/f/nordic-q-a/60878/configuring-spi0---dt_nordic_nrf_spi_spi_0_irq_0_priority-undeclared/249533"]If it&amp;#39;s still not working, could you zip and upload&amp;nbsp;your&amp;nbsp;spi project build folder ?[/quote]
&lt;p&gt;Sure thing, here you go. It seems like it is some silly configuration I have missed, the question is just what. Would be great i I could get another set of eyes on if.&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/5611.build.zip"&gt;devzone.nordicsemi.com/.../5611.build.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring SPI0 -  DT_NORDIC_NRF_SPI_SPI_0_IRQ_0_PRIORITY' undeclared</title><link>https://devzone.nordicsemi.com/thread/249533?ContentTypeID=1</link><pubDate>Tue, 12 May 2020 14:48:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4321d30-df21-4d14-b16c-d2068ad3b688</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;1)&lt;/p&gt;
&lt;p&gt;Could you double check that you are on NCS v1.2.0 ?&lt;/p&gt;
&lt;p&gt;git status should return the following:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;C:\ncs\nrf&amp;gt;git status
HEAD detached at v1.2.0

C:\ncs\zephyr&amp;gt;git status
HEAD detached at ff214d637e&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;2)&lt;/p&gt;
&lt;p&gt;Make sure that you have board&amp;nbsp;nrf52840_pca10056 selected&lt;/p&gt;
&lt;p&gt;3)&lt;/p&gt;
&lt;p&gt;Does this .hex file work on your DK?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-c56e9086456347cca03cdcb3d5598cb1/zephyr.hex"&gt;devzone.nordicsemi.com/.../zephyr.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;4)&lt;/p&gt;
&lt;p&gt;If it&amp;#39;s still not working, could you zip and upload&amp;nbsp;your&amp;nbsp;spi project build folder ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring SPI0 -  DT_NORDIC_NRF_SPI_SPI_0_IRQ_0_PRIORITY' undeclared</title><link>https://devzone.nordicsemi.com/thread/249331?ContentTypeID=1</link><pubDate>Tue, 12 May 2020 05:14:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fb31ab2-d7e8-49ab-b5dc-545daef65b16</guid><dc:creator>Shaney</dc:creator><description>&lt;p&gt;I tried loading it up and I still get the same error:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting Zephyr OS build v2.1.99-ncs1  ***
SPIM Example
Could not get SPI_0 device&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And then the device just keeps restarting. I opened your example using file -&amp;gt; open nrf connect sdk project and selection CMakeLists.txt in the example. Then I built and uploaded via SES. Is there anything except i2c0 that can come in conflict with spi0?&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;This is my config:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1589265381565v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1589265420492v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1589265519706v4.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring SPI0 -  DT_NORDIC_NRF_SPI_SPI_0_IRQ_0_PRIORITY' undeclared</title><link>https://devzone.nordicsemi.com/thread/249128?ContentTypeID=1</link><pubDate>Mon, 11 May 2020 09:04:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:723736cb-51a6-459a-af45-ec6e63e7bdf7</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Works fine here when I test with NCS v1.2.0&lt;/p&gt;
&lt;p&gt;Here is the project I used for testing:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-c56e9086456347cca03cdcb3d5598cb1/spi.zip"&gt;devzone.nordicsemi.com/.../spi.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring SPI0 -  DT_NORDIC_NRF_SPI_SPI_0_IRQ_0_PRIORITY' undeclared</title><link>https://devzone.nordicsemi.com/thread/248057?ContentTypeID=1</link><pubDate>Tue, 05 May 2020 07:01:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ccaf157-f479-4737-8bc2-3d895028e993</guid><dc:creator>Shaney</dc:creator><description>&lt;p&gt;Hi, thank you for your answer.&lt;br /&gt;&lt;br /&gt;My .overlay is empty but my nrf52840_pca10056.dts has the following:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;spi0 {
	compatible = &amp;quot;nordic,nrf-spi&amp;quot;;
	/* Cannot be used together with i2c0. */
	status = &amp;quot;okay&amp;quot;;
	sck-pin = &amp;lt;27&amp;gt;;
	mosi-pin = &amp;lt;26&amp;gt;;
	miso-pin = &amp;lt;29&amp;gt;;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And my .conf has the following:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_NRFX_SPIM=y
CONFIG_NRFX_SPIM0=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The strangest thing is, it&amp;#39;s only seems like its SPI0 that isn&amp;#39;t working, I&amp;#39;ve managed to get both SPI1 &amp;amp; SPI3 to work with the same settings. But once I try SPI0, the device bind fails and the processor hard faults.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring SPI0 -  DT_NORDIC_NRF_SPI_SPI_0_IRQ_0_PRIORITY' undeclared</title><link>https://devzone.nordicsemi.com/thread/247933?ContentTypeID=1</link><pubDate>Mon, 04 May 2020 14:31:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e1c8945-182f-44eb-82bb-6c3e65f9edb2</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;How does your &lt;span&gt;nrf52840_pca10056.overlay&amp;nbsp;&lt;/span&gt;file look like? Try adding something like this to the file:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;spi0 {
	compatible = &amp;quot;nordic,nrf-spim&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
	sck-pin = &amp;lt;3&amp;gt;;
	mosi-pin = &amp;lt;4&amp;gt;;
	miso-pin = &amp;lt;28&amp;gt;;
	cs-gpios = &amp;lt;&amp;amp;gpio0 29 0&amp;gt;, &amp;lt;&amp;amp;gpio0 30 0&amp;gt;;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;In .conf, you need something like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_SPI=y
CONFIG_SPI_NRFX=y
CONFIG_SPI_0=y
CONFIG_SPI_0_NRF_SPIM=y&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring SPI0 -  DT_NORDIC_NRF_SPI_SPI_0_IRQ_0_PRIORITY' undeclared</title><link>https://devzone.nordicsemi.com/thread/247753?ContentTypeID=1</link><pubDate>Mon, 04 May 2020 05:38:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc896588-43c9-454c-b378-51d8de2433ed</guid><dc:creator>Shaney</dc:creator><description>&lt;p&gt;Update: I managed to get it to build by only enabling &amp;quot;SPIM_0&amp;quot; and skipping &amp;quot;SPI_0&amp;quot;. However, now everything crashes as soon as i run device_get_binding(&amp;quot;SPI_0&amp;quot;); &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>