<?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>Unable to Configure SPI 1 with nrf9160ns setting</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/70438/unable-to-configure-spi-1-with-nrf9160ns-setting</link><description>I am integrating a sensor on SPI 1 with cellular but device get stuck in CPU idle when first transaction of SPI is made? 
 I am using nrf9160dk_nrf9160ns as board configuration and CONFIG_SPI and CONFIG_SPI_1 is enabled in project configuration. 
 I am</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 Jan 2021 11:38:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/70438/unable-to-configure-spi-1-with-nrf9160ns-setting" /><item><title>RE: Unable to Configure SPI 1 with nrf9160ns setting</title><link>https://devzone.nordicsemi.com/thread/289169?ContentTypeID=1</link><pubDate>Thu, 14 Jan 2021 11:38:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e87f299-d5d4-4ac4-8f9e-84cff69c28d1</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;I&amp;#39;m glad to hear this!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to Configure SPI 1 with nrf9160ns setting</title><link>https://devzone.nordicsemi.com/thread/289143?ContentTypeID=1</link><pubDate>Thu, 14 Jan 2021 10:53:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9f5551e-32b4-442d-ab03-ba5fd82bb978</guid><dc:creator>Pirate Panda</dc:creator><description>&lt;p&gt;Hi H&amp;aring;kon,&lt;/p&gt;
&lt;p&gt;Thanks for the help. This update has solved the problem.&lt;/p&gt;
&lt;p&gt;Best Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to Configure SPI 1 with nrf9160ns setting</title><link>https://devzone.nordicsemi.com/thread/289116?ContentTypeID=1</link><pubDate>Thu, 14 Jan 2021 10:07:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c10bb7c-8b8f-4f87-a14a-59c6dd319cad</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This could be because of secure region (SPM) enabling the serial drivers uart0 and uart1.&lt;/p&gt;
&lt;p&gt;Could you try to add this to the CMakeLists.txt file (&lt;strong&gt;just below the cmake_minimum_required(..) &lt;/strong&gt;line):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;if (EXISTS &amp;quot;${CMAKE_CURRENT_SOURCE_DIR}/spm.conf&amp;quot;)
  set(spm_CONF_FILE
    prj.conf
    ${CMAKE_CURRENT_LIST_DIR}/spm.conf
  )
endif()

if (EXISTS &amp;quot;${CMAKE_CURRENT_SOURCE_DIR}/mcuboot.conf&amp;quot;)
  set(mcuboot_CONF_FILE
    prj.conf
    ${CMAKE_CURRENT_LIST_DIR}/mcuboot.conf
  )
endif()

if (EXISTS &amp;quot;${CMAKE_CURRENT_SOURCE_DIR}/${BOARD}.overlay&amp;quot;)
  set(mcuboot_DTC_OVERLAY_FILE &amp;quot;${CMAKE_CURRENT_SOURCE_DIR}/${BOARD}.overlay&amp;quot;)
endif()&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Then you create a $(BOARD).overlay (&lt;span&gt;nrf9160dk_nrf9160ns.overlay in this case)&amp;nbsp;&lt;/span&gt;file holding:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;uart1 {
    status = &amp;quot;disabled&amp;quot;;
};

/* rest of your overlay configurations here */&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can also create a file &amp;quot;spm.conf&amp;quot; where you can disable serial if you&amp;#39;d like:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_SERIAL=n&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You typically want this to enter idle mode with low power consumption.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>