<?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>Enabling SPI in nRF9160 using overlay file</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60301/enabling-spi-in-nrf9160-using-overlay-file</link><description>Hello, 
 I have followed the tutorial series of nRF Connect SDK Tutorial and now I have basic understanding on how the ncs works. 
 I&amp;#39;m trying to enable SPI0 in the nRF9160 DK using overlay file (project attached in the end) 
 My overlay file: nrf9160_pca10090ns</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Apr 2020 13:47:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60301/enabling-spi-in-nrf9160-using-overlay-file" /><item><title>RE: Enabling SPI in nRF9160 using overlay file</title><link>https://devzone.nordicsemi.com/thread/245862?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2020 13:47:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a81edac-476b-473d-8169-79ef555629a5</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;Thank you for your patience, it took longer than I expected to figure that out.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;There are a few minor errors with your code that I have cleared up, an incorrect GPIO definition and the name for SPI_0 is just &amp;quot;SPI_0&amp;quot;. The main issue was that SPI0 and UART0 use the same resources so you have to disable UART0 for SPI0 to work, so I removed&amp;nbsp;CONFIG_UART_0_NRF_UARTE=y. Since Zephyr&amp;#39;s logging uses UART 0, you have to disable logging in your sample (CONFIG_SERIAL=n) as well. And since you&amp;#39;re building for the non-secure board and therefore using SPM, you need to add this to the SPM sample too.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So when trying out the .zip, make sure to go into ncs/nrf/samples/nrf9160/spm/prj.conf and add CONFIG_SERIAL=n first.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-91ee8d88e6b64017a2b9ceff899a72dd/hello_5F00_world_5F00_248016_5F00_DZ.zip"&gt;devzone.nordicsemi.com/.../hello_5F00_world_5F00_248016_5F00_DZ.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Heidi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>