<?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 MISO seems to be pulled down in NCS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75550/spi-miso-seems-to-be-pulled-down-in-ncs</link><description>Hello. I migrated my code from nRF5 SDK for Thread and Zigbee to nRF Connect SDK (NCS) . After that SPI code stopped working :( After debugging with the oscilloscope, I found that SS and MOSI signals are correct, the ADCxx1Sxx1 chip is sending the correct</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 May 2021 09:21:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75550/spi-miso-seems-to-be-pulled-down-in-ncs" /><item><title>RE: SPI MISO seems to be pulled down in NCS</title><link>https://devzone.nordicsemi.com/thread/311375?ContentTypeID=1</link><pubDate>Tue, 25 May 2021 09:21:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4072a10e-a98c-4c6b-ab4f-e6a8cc48bf25</guid><dc:creator>Mandrii</dc:creator><description>&lt;p&gt;We fixed the problem.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;It was completely on our&amp;nbsp;software side: second&amp;nbsp;SPI CS pin was active in the new firmware,&amp;nbsp;while I tested&amp;nbsp;another pin.&lt;br /&gt;&lt;br /&gt;Thanks for your help anyway&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f64f_2D00_1f3fb.svg" title="Pray tone1"&gt;&amp;#x1f64f;&amp;#x1f3fb;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI MISO seems to be pulled down in NCS</title><link>https://devzone.nordicsemi.com/thread/311364?ContentTypeID=1</link><pubDate>Tue, 25 May 2021 08:50:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04980a65-f6b4-47d5-ad81-3fa856a9ee42</guid><dc:creator>Mandrii</dc:creator><description>[quote userid="2115" url="~/f/nordic-q-a/75550/spi-miso-seems-to-be-pulled-down-in-ncs/311345#311345"]For no pull, remove the &amp;quot;miso-pull-*&amp;quot; in your DT overlay, and recompile.[/quote]
&lt;p&gt;Tried that. Originally, there were no &amp;quot;miso-pull&amp;quot; options in&amp;nbsp;my DTS file.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="2115" url="~/f/nordic-q-a/75550/spi-miso-seems-to-be-pulled-down-in-ncs/311345#311345"]its important that you verify this by reading the register:[/quote]
&lt;p&gt;I am getting:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;$ nrfjprog --memrd 0x1000120c -f nrf52
0x1000120C: FFFFFFFE&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;ndash; looks&amp;nbsp;correct.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="2115" url="~/f/nordic-q-a/75550/spi-miso-seems-to-be-pulled-down-in-ncs/311345#311345"]Have you tried reducing the frequency of the SPIM to see if this has an impact on the read data?[/quote]
&lt;p&gt;Yes, SPI clock speed is at&amp;nbsp;the minimum (125 kHz).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="2115" url="~/f/nordic-q-a/75550/spi-miso-seems-to-be-pulled-down-in-ncs/311345#311345"]are you using the nRF52840-DK for testing?[/quote]
&lt;p&gt;No, we are using our&amp;nbsp;custom board with MS88SF2 v1.0 module.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="2115" url="~/f/nordic-q-a/75550/spi-miso-seems-to-be-pulled-down-in-ncs/311345#311345"]Does this issue happen on more than one board?[/quote]
&lt;p&gt;Unfortunately, we have only one custom dev board of this kind for now. Because it works fine with different firmware (the one&amp;nbsp;compiled with nRF5 SDK&amp;nbsp;for Thread and Zigbee) we didn&amp;#39;t think that the board&amp;nbsp;could have an issue. But we&amp;nbsp;will&amp;nbsp;look into that too.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI MISO seems to be pulled down in NCS</title><link>https://devzone.nordicsemi.com/thread/311345?ContentTypeID=1</link><pubDate>Tue, 25 May 2021 08:15:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e98d9294-20cc-454d-8930-33947107cd28</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;
[quote user=""]Is there a fix for this? Can I disable pulldown? Is there a &amp;quot;no pull&amp;quot; option for MISO in NCS?[/quote]
&lt;p&gt;For no pull, remove the &amp;quot;miso-pull-*&amp;quot; in your DT overlay, and recompile.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]&lt;span&gt;&lt;span&gt;For MISO, I am using pin P0.09. (&lt;/span&gt;&lt;/span&gt;&lt;span&gt;CONFIG_NFCT_PINS_AS_GPIOS=y is set in prj.conf.)&lt;/span&gt;[/quote]
&lt;p&gt;its important that you verify this by reading the register:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/uicr.html?cp=4_0_0_3_4_0_5#register.NFCPINS"&gt;https://infocenter.nordicsemi.com/topic/ps_nrf52840/uicr.html?cp=4_0_0_3_4_0_5#register.NFCPINS&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;via nrfjprog:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog --memrd 0x1000120c -f nrf52&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]nRF52840 side is reading all zeroes (ADC chip is separated from nRF by a digital&amp;nbsp;isolator ISO772x).&amp;nbsp;When I connect VCC to MISO with a wire however, the software can read all ones instead of zeroes (so SPI is working).&amp;nbsp;[/quote]
&lt;p&gt;&amp;nbsp;This is quite strange. Have you tried reducing the frequency of the SPIM to see if this has an impact on the read data?&lt;/p&gt;
&lt;p&gt;Does this issue happen on more than one board?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;PS: are you using the nRF52840-DK for testing? If yes, then the P0.09/P0.10 GPIOs are not routed by-default to the pin headers. You then need to connect some solder bridges:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrf52840_dk/UG/dk/hw_nfc_if.html?cp=4_0_4_7_10"&gt;https://infocenter.nordicsemi.com/topic/ug_nrf52840_dk/UG/dk/hw_nfc_if.html?cp=4_0_4_7_10&lt;/a&gt;&amp;nbsp;&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>