<?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>nRF5430 SPI sample code</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65072/nrf5430-spi-sample-code</link><description>Hi, 
 
 I tried to run the code which was used by another forum user: 
 https://devzone.nordicsemi.com/f/nordic-q-a/63149/nrf5340---p0-10-not-working-as-spim-miso-on-non-secure-build/257673#257673 
 
 I used zip file &amp;quot; spi-rallare-secure-working.zip </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 01 Sep 2020 10:47:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65072/nrf5430-spi-sample-code" /><item><title>RE: nRF5430 SPI sample code</title><link>https://devzone.nordicsemi.com/thread/267428?ContentTypeID=1</link><pubDate>Tue, 01 Sep 2020 10:47:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88c80df3-4fce-4022-8799-0dff60c6c593</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;You are welcome, Marta! &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&amp;nbsp;If you don&amp;#39;t have any further questions, I will close this ticket.&lt;/p&gt;
&lt;p&gt;Have a great day!&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5430 SPI sample code</title><link>https://devzone.nordicsemi.com/thread/267407?ContentTypeID=1</link><pubDate>Tue, 01 Sep 2020 09:20:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe024d5c-8a03-4f23-978e-f760f72dbd2b</guid><dc:creator>MartaOp</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;&amp;Oslash;yvind,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Sorry for slow response.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It works like a charm now! Thank you very much for your support :)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Marta&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5430 SPI sample code</title><link>https://devzone.nordicsemi.com/thread/267011?ContentTypeID=1</link><pubDate>Fri, 28 Aug 2020 12:57:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb97a18a-3043-459b-8b9a-28fe42197112</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hi Marta,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I&amp;#39;m truly sorry for this to have taken so long. Attached is a working version on the secure SPI sample:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-12befd9f890e41c2b19190ef82c345f4/spi_2D00_rallare_2D00_secure_2D00_working_2D00_NCS130.zip"&gt;devzone.nordicsemi.com/.../spi_2D00_rallare_2D00_secure_2D00_working_2D00_NCS130.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;First off all the overlay files were wrong, I completely missed that:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The name of the overlay was wrong. The overlay file should be named:&amp;nbsp;&lt;em&gt;nrf5340pdk_nrf5340_cpuapp.overlay (the same goes for non-secure)&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;The status field should &amp;quot;okay&amp;quot; and not &amp;quot;ok&amp;quot;. See below&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;&amp;amp;spi1 {
	compatible = &amp;quot;nordic,nrf-spim&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
	mosi-pin = &amp;lt;4&amp;gt;;
	miso-pin = &amp;lt;10&amp;gt;;	//&amp;lt;5&amp;gt;;
	sck-pin = &amp;lt;6&amp;gt;;
};

&amp;amp;spi2 {
	status = &amp;quot;disabled&amp;quot;;
};

&amp;amp;i2c1 {
    status = &amp;quot;disabled&amp;quot;;
};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The issue with board overlay file name will cause the compilation to not set correct SPI_1 configuration, leading to it not finding SPI_1 and giving the error &lt;em&gt;&amp;quot;Could not get SPI_1 device&amp;quot;.&lt;/em&gt;&amp;nbsp; Adding CONFING_RESET_ON_FATAL_ERROR=n will stop the device from going into boot loop.&lt;br /&gt;&lt;br /&gt;Here is the current project configuration I used:&amp;nbsp;&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;CONFIG_SERIAL=y

CONFIG_UART_INTERRUPT_DRIVEN=y

CONFIG_LOG=y
CONFIG_LOG_IMMEDIATE=y

# SPI
CONFIG_SPI=y
CONFIG_SPI_1=y

CONFIG_MAIN_STACK_SIZE=4096

CONFIG_RESET_ON_FATAL_ERROR=n&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Let me know how it works for you!&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5430 SPI sample code</title><link>https://devzone.nordicsemi.com/thread/266992?ContentTypeID=1</link><pubDate>Fri, 28 Aug 2020 11:58:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50ff74ef-19d5-44ab-9abb-efb346a7c5d3</guid><dc:creator>MartaOp</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;&amp;Oslash;yvind,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;m glad of that! ;)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you!&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Marta&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5430 SPI sample code</title><link>https://devzone.nordicsemi.com/thread/266990?ContentTypeID=1</link><pubDate>Fri, 28 Aug 2020 11:56:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81399cd2-5f65-46e1-a947-c438b11c268c</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hi Marta,&amp;nbsp;&lt;br /&gt;I can&amp;#39;t forget you, and have been thinking about you every day ;)&lt;br /&gt;&lt;br /&gt;Unfortunately, no response from our developers :( But I will try to make some progress today.&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5430 SPI sample code</title><link>https://devzone.nordicsemi.com/thread/266442?ContentTypeID=1</link><pubDate>Wed, 26 Aug 2020 10:53:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:449d7415-8b8f-4e78-aa94-1c58f7abba20</guid><dc:creator>MartaOp</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;&amp;Oslash;yvind,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;No worries. I was just making sure that you won&amp;#39;t forget about me ;)&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Marta&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5430 SPI sample code</title><link>https://devzone.nordicsemi.com/thread/266434?ContentTypeID=1</link><pubDate>Wed, 26 Aug 2020 10:21:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ca90ab6-0414-4712-a048-48fe8585afc7</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hi Marta,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;My apologies, I did write an answer to you on Monday, however, it was never sent.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I am able to reproduce the issue but have not found the root cause. Will discuss it with our developers and get back to you.&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5430 SPI sample code</title><link>https://devzone.nordicsemi.com/thread/266235?ContentTypeID=1</link><pubDate>Tue, 25 Aug 2020 12:33:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5931e94-8b61-4b5d-877b-a626c29d2e3a</guid><dc:creator>MartaOp</dc:creator><description>&lt;p&gt;Hi!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you have any update?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;
&lt;p&gt;Marta&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5430 SPI sample code</title><link>https://devzone.nordicsemi.com/thread/265796?ContentTypeID=1</link><pubDate>Fri, 21 Aug 2020 13:55:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3861b2a-e053-49fe-b805-0d128355f59d</guid><dc:creator>MartaOp</dc:creator><description>&lt;p&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5430 SPI sample code</title><link>https://devzone.nordicsemi.com/thread/265793?ContentTypeID=1</link><pubDate>Fri, 21 Aug 2020 13:50:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c1bad66-ed3e-499b-822b-e8c3bc4683c9</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hi Marta,&lt;br /&gt;&lt;br /&gt;I will have a look at your case later today or Monday. I&amp;#39;m sorry for the inconvenience this may cause.&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>