<?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>How to use SPI on nRF9160DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/48197/how-to-use-spi-on-nrf9160dk</link><description>Hi! 
 I am trying to get this example to work on my nRF9160 board: https://github.com/Rallare/fw-nrfconnect-nrf/tree/nrf9160_samples/samples/nrf9160/spi/ 
 It compiles and flashes just fine, and it seems to boot and run correctly: 
 ***** Booting Zephyr</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 07 Jun 2019 10:45:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/48197/how-to-use-spi-on-nrf9160dk" /><item><title>RE: How to use SPI on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/191604?ContentTypeID=1</link><pubDate>Fri, 07 Jun 2019 10:45:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a846ab69-98c5-47cc-a8d9-54cd7bcc136a</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Linus,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is a very good spot. Thank you very much!&lt;/p&gt;
&lt;p&gt;I have no idea how I&amp;#39;ve managed to make this mistake, or how this sample has even worked at my end!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll correct it asap.&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><item><title>RE: How to use SPI on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/191570?ContentTypeID=1</link><pubDate>Fri, 07 Jun 2019 09:22:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c9f9b3c-c21b-43ca-a241-e6225862cbf2</guid><dc:creator>Linus</dc:creator><description>&lt;p&gt;I have the same tags in my repos. I have tried to rebuild everything, but the problem remained.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I tried to debug it using &amp;#39;west debug&amp;#39;, but for some reason the code refuses to run in the debugger.&lt;/p&gt;
&lt;p&gt;However, using printk() I found out that the SPI pins were not changed, even though the .overlay file in the SPI example was correct. Then I noticed that the symlink &amp;#39;nrf9160_pca10090_ns.overlay&amp;#39; doesn&amp;#39;t match the board name. I renamed it to &amp;#39;&lt;span&gt;nrf9160_pca10090ns.overlay&amp;#39;&amp;nbsp;&lt;/span&gt;and voila! Now it works!&lt;/p&gt;
&lt;p&gt;The question now is why it worked for you. Don&amp;#39;t you have the same overlays?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Linus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use SPI on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/191240?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2019 07:22:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ed8c6a8-e13f-4643-b375-aa65a2e19334</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Here&amp;#39;s my repo&amp;#39;s (atleast the one&amp;#39;s used in this example):&lt;/p&gt;
&lt;p&gt;&amp;quot;nrf&amp;quot; is checked out with tag &amp;quot;v0.4.0&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;quot;zephyr&amp;quot; is checked out with tag &amp;quot;v1.14.99-ncs1&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;quot;nrfxlib&amp;quot; is checked out with tag &amp;quot;v0.4.0&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&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: How to use SPI on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/191162?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2019 14:28:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:587d97b6-678b-49a8-bee8-7637542fb6fc</guid><dc:creator>Linus</dc:creator><description>&lt;p&gt;Thank you for the hex file. It turns out that it works fine with that one. Was that built with the v0.4.0 release?&lt;br /&gt;I&amp;#39;ll try to rebuild everything from scratch and see if that helps.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Linus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use SPI on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/191145?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2019 13:44:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0ae27d0-b07a-48b8-91be-14d1f07e97f5</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;That is strange. You haven&amp;#39;t changed the SPI pins right? If so, you might have to clean your build folder, then re-import / run cmake again.&lt;/p&gt;
&lt;p&gt;Could you see if its still silent using this hex?&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-cb6fb79be57b453f81d887b8f25d8fa9/merged.hex"&gt;devzone.nordicsemi.com/.../merged.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Note: it only sends one byte every sec, and CSN + MISO is floating. So, check the MOSI and CLK line if you&amp;#39;re going to scope something.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&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: How to use SPI on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/191102?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2019 12:24:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87ed3a9b-52ad-4f3f-83f0-c87ec893dfa6</guid><dc:creator>Linus</dc:creator><description>&lt;p&gt;That was the first thing I tried. When that didn&amp;#39;t work, I hooked up an oscilloscope and noticed that all the SPI pins are silent.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use SPI on nRF9160DK</title><link>https://devzone.nordicsemi.com/thread/191053?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2019 11:00:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c83ead13-bf09-4c6b-8eee-1d5e31ef7a5d</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Linus,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you connect MISO to MOSI (default P0.11 and P0.12) and see if it echo&amp;#39;es back the byte in the terminal?&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>