<?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>SPI MOSI &amp;amp; MISO problems</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/70718/spi-mosi-miso-problems</link><description>Hi! 
 I have a custom board with a NRF52840 and some extra sensors for my application. I&amp;#39;m trying to comunicate with one SPI sensor but I have a little extrange behavior. I put my osciloscope on the MOSI, MISO and SCK pins and I don&amp;#39;t have any signal</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 21 Jan 2021 17:38:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/70718/spi-mosi-miso-problems" /><item><title>RE: SPI MOSI &amp; MISO problems</title><link>https://devzone.nordicsemi.com/thread/290602?ContentTypeID=1</link><pubDate>Thu, 21 Jan 2021 17:38:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1bf031ee-483b-4218-9272-07cd58446432</guid><dc:creator>Franco Fischer</dc:creator><description>&lt;p&gt;Thanks for your help! I found the error, the pin 6 is used by the UART in the nrf_log of the SDK.&lt;/p&gt;
&lt;p&gt;I disabled the nrf_log and the UART in the sdk_config.h and works fine!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for your time and help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI MOSI &amp; MISO problems</title><link>https://devzone.nordicsemi.com/thread/290597?ContentTypeID=1</link><pubDate>Thu, 21 Jan 2021 16:49:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8f6e967-6ae1-42e7-927e-c99510cda845</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Most likely you have a pin defined elsewhere, often some kind of default serial port. A tip is to search for all pins in all projects using the typical &lt;em&gt;sdk_config.h&lt;/em&gt; format:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define BLAH_BLAH_PIN   6
                      ^
                      |
variable number of spaces and tabs&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You can search for all these in SES using a &lt;em&gt;regular expression&lt;/em&gt; search; in the search box (ctrl-shift-f) check the &amp;quot;&lt;em&gt;Regular Expression&lt;/em&gt;&amp;quot; and &amp;quot;&lt;em&gt;Search Dependencies&lt;/em&gt;&amp;quot; boxes then search for the following:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;_PIN[ *\t*]6&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This will list all definitions where pin 6 is used by ignoring multiple spaces and tabs between _PIN and the pin number you are checking, 6 in this case.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;blahblah\sdk_config.h:#define HCI_UART_TX_PIN 6&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Edit: Also maybe search for &amp;quot;_PIN_MAP&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI MOSI &amp; MISO problems</title><link>https://devzone.nordicsemi.com/thread/290590?ContentTypeID=1</link><pubDate>Thu, 21 Jan 2021 16:19:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:388cf632-a61d-408a-b628-f4de9013c153</guid><dc:creator>Franco Fischer</dc:creator><description>&lt;p&gt;I do more measuraments. I&amp;#39;m seeing a extrange behavior on MOSI pin, in the oscilloscope I see that the MOSI pin toggle at low frequency (about 16kHz). I disconnect my sensor and I see the same behavior. I attach the oscilloscope capture:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/2625.png" /&gt;&lt;/p&gt;
&lt;p&gt;If I use another pin (I try with P1.09) works fine. I attach the oscilloscope capture:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/003.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI MOSI &amp; MISO problems</title><link>https://devzone.nordicsemi.com/thread/290503?ContentTypeID=1</link><pubDate>Thu, 21 Jan 2021 12:22:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f8c85b0-4c41-4cc8-b1c1-ef456a94d60a</guid><dc:creator>Franco Fischer</dc:creator><description>&lt;p&gt;Hi! I have a define on custom_board.h:&lt;/p&gt;
&lt;p&gt;#define LED_1 NRF_GPIO_PIN_MAP(1, 10) // Blue&lt;/p&gt;
&lt;p&gt;I have a little experience on Nordic, but I never use the SPI...&lt;/p&gt;
&lt;p&gt;The example need extra configuration on the sdk_config.h ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI MOSI &amp; MISO problems</title><link>https://devzone.nordicsemi.com/thread/290423?ContentTypeID=1</link><pubDate>Thu, 21 Jan 2021 09:45:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7656a4e6-77f6-46d8-9773-b15a58f5dd73</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;That seems fine, I&amp;#39;d double check the pin mappings though.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;What pin is&amp;nbsp;LED_1 configured to use?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>