<?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>Problem with MISO pin SPI</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/44966/problem-with-miso-pin-spi</link><description>I am using SPI to transfer data between an ADC and my NRF52 (the spi master) on a custom made pcb device. I call the SPI data transfer in a BLE_UART example (from the SDK 15.2, in Embedded Studio) because I need to use the ble_uart&amp;#39;s ble_nus_data_send</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 27 May 2019 17:29:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/44966/problem-with-miso-pin-spi" /><item><title>RE: Problem with MISO pin SPI</title><link>https://devzone.nordicsemi.com/thread/189408?ContentTypeID=1</link><pubDate>Mon, 27 May 2019 17:29:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65538afb-aafd-4f30-bbea-e09b6bc043a2</guid><dc:creator>noob_with_ucontrollers</dc:creator><description>&lt;p&gt;For reference of other people who might have this issue with NRF52 ble data sending it reads from a peripheral device,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;A friend was kind enough to help me with this, and it turned out the issue I was facing was that I was trying to send BLE data too fast for the ADC... adding a delay function at the end of the code in main while () loop gave NRF enough time to read from ADC then transmit to the app...&lt;br /&gt;Thank you everyone!&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with MISO pin SPI</title><link>https://devzone.nordicsemi.com/thread/178278?ContentTypeID=1</link><pubDate>Tue, 26 Mar 2019 09:51:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77245abd-4887-4cb9-a36a-d47c9b6f1a20</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Have you tried scoping the pins to see if there&amp;#39;s anything happening on the pins? Does SPI work if you run the example in the sdk/examples/peripheral/spi?&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: Problem with MISO pin SPI</title><link>https://devzone.nordicsemi.com/thread/178172?ContentTypeID=1</link><pubDate>Mon, 25 Mar 2019 15:44:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e31cd19-88df-4bd4-b94e-2ccdfb475f2b</guid><dc:creator>noob_with_ucontrollers</dc:creator><description>&lt;p&gt;I get this when I run that command&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/960x720/__key/communityserver-discussions-components-files/4/pastedimage1553528387867v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;So I think the UICR is being set properly and my pins 9,10 are set as gpios by the software.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is there anything else that I should check to make sure pin 9,10 is in fact being used by SPI...&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And I do not think I need the hardware reconfiguration stated in the manual for using NFCT as gpios because my nrf52 is on a PCB stand alone custom chip.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with MISO pin SPI</title><link>https://devzone.nordicsemi.com/thread/178006?ContentTypeID=1</link><pubDate>Mon, 25 Mar 2019 08:08:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e98f5801-32d8-42ae-b7ba-fc33e11c3f69</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Please install the nrf5x command line tools in order to&amp;nbsp;install nrfjprog:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF5-Command-Line-Tools"&gt;https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF5-Command-Line-Tools&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&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: Problem with MISO pin SPI</title><link>https://devzone.nordicsemi.com/thread/177977?ContentTypeID=1</link><pubDate>Mon, 25 Mar 2019 00:46:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2343ab06-7fb7-4cf1-bd3f-9d1a94854200</guid><dc:creator>noob_with_ucontrollers</dc:creator><description>&lt;p&gt;when I am running the command in the command prompt this is what I get:&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I am not sure if this is what you meant though. I have not used this command to view registers before.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/960x720/__key/communityserver-discussions-components-files/4/pastedimage1553474745124v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with MISO pin SPI</title><link>https://devzone.nordicsemi.com/thread/177255?ContentTypeID=1</link><pubDate>Wed, 20 Mar 2019 09:13:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51e187bf-2c6f-472a-b4ea-c93d5c2adb04</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;The command to run is already stated:&lt;/p&gt;
&lt;p&gt;nrfjprog --memrd&amp;nbsp;&lt;span&gt;0x1000120C&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Run it from a cmd.exe prompt and see if the read out content is as expected.&lt;/p&gt;
&lt;p&gt;After that, if you see any issues, scope the SPI lines to see if there&amp;#39;s any problems.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&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: Problem with MISO pin SPI</title><link>https://devzone.nordicsemi.com/thread/176815?ContentTypeID=1</link><pubDate>Mon, 18 Mar 2019 18:55:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf08ee41-2dfb-4fcc-a6fd-f81d19ada354</guid><dc:creator>noob_with_ucontrollers</dc:creator><description>&lt;p&gt;I tried using another pin for MISO (pin P0.17 and then pin P0.3) but the MISO behaves strangely even with these pins. I don&amp;#39;t think the problem is that the NFC config is still there.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;When I configured pin 17 and 3 as MISO (I converted my set up to the Dev Kit) the MISO is pegged to 1.25 V instead (in case of both pins). Which is unnatural for the spi miso. I receive a data array of &lt;strong&gt;&amp;quot;0x-OC-00-00-00-00-FF-FF-FF-FF&amp;quot;&lt;/strong&gt; instead.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;When I use SPI MODE_0 instead of MODE 1. I get &amp;quot;0x7FFFF&amp;quot; as data. (but&amp;nbsp; I am sure the ADC is not compatible with modd 0)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with MISO pin SPI</title><link>https://devzone.nordicsemi.com/thread/176811?ContentTypeID=1</link><pubDate>Mon, 18 Mar 2019 17:43:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e5aa2b4-b979-4457-9810-ffea2cea8691</guid><dc:creator>noob_with_ucontrollers</dc:creator><description>&lt;p&gt;I do not know how or where to run the&amp;nbsp;&lt;span&gt;nrfjprog command?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;However, I guessed you were asking me to see if the UICR reg for NFC was set correctly like this guy in this post said&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/22909/repurposing-nfc-pins-for-spi-issues"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/22909/repurposing-nfc-pins-for-spi-issues&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/960x720/__key/communityserver-discussions-components-files/4/pastedimage1552930895467v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;so I used to debugger instead of nrfjprog.&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When I debug my program. The program does not get as far as the 0x100020C reg it stops here and gives me this.&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/960x720/__key/communityserver-discussions-components-files/4/pastedimage1552930975595v2.png" alt=" " /&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with MISO pin SPI</title><link>https://devzone.nordicsemi.com/thread/176797?ContentTypeID=1</link><pubDate>Mon, 18 Mar 2019 16:11:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afcbff3e-f4ab-47e1-bec7-aa183e946a9d</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>[quote user="noob_with_ucontrollers"]What does power cycling the device mean?&amp;nbsp;[/quote]
&lt;p&gt;&amp;nbsp;Power it off, and then on again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with MISO pin SPI</title><link>https://devzone.nordicsemi.com/thread/176791?ContentTypeID=1</link><pubDate>Mon, 18 Mar 2019 15:59:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74a06bb1-1e56-402d-9548-2c16a4cc7780</guid><dc:creator>noob_with_ucontrollers</dc:creator><description>&lt;p&gt;Okay, I will make sure of these things. I am running the code on a custom PCB..&amp;nbsp;&lt;br /&gt;What does power cycling the device mean?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with MISO pin SPI</title><link>https://devzone.nordicsemi.com/thread/176787?ContentTypeID=1</link><pubDate>Mon, 18 Mar 2019 15:32:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfd4c6c7-7a68-4cf3-9e27-612d4549765f</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;Are you using the nRF52-DK, or are you developing on a custom board?&lt;/p&gt;
&lt;p&gt;If you want to use these pins on a nRF52-DK, you need to move two resistors:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52/dita/nrf52/development/nrf52_dev_kit/hw_nfc.html?cp=2_1_4_5_10"&gt;http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52/dita/nrf52/development/nrf52_dev_kit/hw_nfc.html?cp=2_1_4_5_10&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can verify the readback content using nrfjprog to see if this was properly set:&lt;/p&gt;
&lt;p&gt;nrfjprog --memrd 0x1000120C&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Note that you need to power cycle the device in order for the &amp;quot;&lt;span&gt;CONFIG_NFCT_PINS_AS_GPIOS&amp;quot; define to be latched properly.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Håkon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>