<?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>SPI1 salve configuration results in bus fault using NRF9160 DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119544/spi1-salve-configuration-results-in-bus-fault-using-nrf9160-dk</link><description>I&amp;#39;ve been using the following SPI2S pins and they&amp;#39;ve been working: 
 CLK -&amp;gt; P0.16 MOSI -&amp;gt; P0.17 MISO -&amp;gt; P0.19 CS -&amp;gt; P0.18 
 
 I want to use SPI1 instead but when I replace SPI2 with SPI1 I get a bus fault: 
 
 
 My device tree: 
 
 
 My project config</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 06 Mar 2025 15:44:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119544/spi1-salve-configuration-results-in-bus-fault-using-nrf9160-dk" /><item><title>RE: SPI1 salve configuration results in bus fault using NRF9160 DK</title><link>https://devzone.nordicsemi.com/thread/526224?ContentTypeID=1</link><pubDate>Thu, 06 Mar 2025 15:44:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13b4f246-2029-4b1b-b7d2-cd287b9ab3bb</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Glad to hear that it fixed it. All SPIM instances support the same frequency on the nrf9160 (up to 8MHz).&amp;nbsp;The register description&amp;nbsp;below show the supported frequencies.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1741275710229v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Ref.&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf9160/page/spim.html#ariaid-title33"&gt;FREQUENCY&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI1 salve configuration results in bus fault using NRF9160 DK</title><link>https://devzone.nordicsemi.com/thread/526058?ContentTypeID=1</link><pubDate>Wed, 05 Mar 2025 19:08:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33d76f5a-6619-4b2f-a7c5-0797de3faaa5</guid><dc:creator>heisenbug</dc:creator><description>&lt;p&gt;Yes! That works&lt;/p&gt;
&lt;p&gt;A follow-up question. Is there a difference in the clock frequency I can set for the various SPI peripherals? What are the frequency steps I can use? Is there a recommended frequency for SPI?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI1 salve configuration results in bus fault using NRF9160 DK</title><link>https://devzone.nordicsemi.com/thread/526022?ContentTypeID=1</link><pubDate>Wed, 05 Mar 2025 14:38:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97ebf844-a511-4623-bb8e-7f33c8fda70e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Please try to add&amp;nbsp;CONFIG_TFM_LOG_LEVEL_SILENCE=y (this should also disable&amp;nbsp;CONFIG_NRF_UARTE1_SECURE in the build) to your project configuration and see if you still get this busfault afterward.&amp;nbsp;TF-M has logging enabled on UART1 by default since SDK v2.6.0, which conflicts with SPIM1/SPIS1 if kept enabled.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/0083.pastedimage1741185237908v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>