<?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>nrf52832 Not receiving from Arduino In SPI communication</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77422/nrf52832-not-receiving-from-arduino-in-spi-communication</link><description>This is the second time I am posting here related issue on nrf52832 SPI communication. I am still not able to get the response from the sensor. Here I am testing my SPI is working properly or not in NRF board. so I have tested with Arduino board .What</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 17 Aug 2021 10:22:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77422/nrf52832-not-receiving-from-arduino-in-spi-communication" /><item><title>RE: nrf52832 Not receiving from Arduino In SPI communication</title><link>https://devzone.nordicsemi.com/thread/325262?ContentTypeID=1</link><pubDate>Tue, 17 Aug 2021 10:22:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0111de40-7b6a-47c0-b76e-2037e47cc786</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again,&lt;br /&gt;&lt;br /&gt;Great, that is very helpful. This seems all right to me - the character &amp;#39;N&amp;#39; is being sent on both MOSI and MISO. This is what you are trying to do, is it not? Does this mean that your issue is resolved?&lt;br /&gt;&lt;br /&gt;Please see all the questions in my previous comment as well.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 Not receiving from Arduino In SPI communication</title><link>https://devzone.nordicsemi.com/thread/322347?ContentTypeID=1</link><pubDate>Thu, 29 Jul 2021 06:18:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:712f37dc-dbad-483f-97ef-1e56cf8c19e5</guid><dc:creator>KM123</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;&amp;nbsp;@Karl Ylvisaker&lt;br /&gt;&lt;br /&gt;I have checked with logic analyzer&lt;br /&gt;here is signal which I am getting from logic analyzer.&lt;br /&gt;&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Screenshot-_2800_476_2900_.png" /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 Not receiving from Arduino In SPI communication</title><link>https://devzone.nordicsemi.com/thread/320280?ContentTypeID=1</link><pubDate>Thu, 15 Jul 2021 13:32:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84d186df-d838-46c9-97e8-3bdea2c1414f</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Please provide logs as text files, not screenshots.&lt;br /&gt;Please answer the question about the Arduino code&amp;#39;s origin in my previous ticket.&lt;br /&gt;&lt;br /&gt;I think the issue is with your Arduino code here.&lt;br /&gt;Where exactly in your arudino code are you specifying what to send to the nRF?&lt;br /&gt;Is it through the printf lines? If so, what exactly will the println(33,DEC) line queue for sending, is it the value 33 encoded as an integer, or a single byte? If I recall correctly the println function will also append a newline character to your output, which you might not be expecting.&lt;br /&gt;&lt;br /&gt;I also notice that you are not setting a pinmode for MOSI, not only for MISO, is this specified elsewhere? How does your aruduino know which pins to read the MOSI signals from? Or the SS signal, for that matter.&lt;br /&gt;&lt;br /&gt;Please review your Arduino code, or try to find an official Arduino SPI example to work off of.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 Not receiving from Arduino In SPI communication</title><link>https://devzone.nordicsemi.com/thread/320233?ContentTypeID=1</link><pubDate>Thu, 15 Jul 2021 11:42:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c096f86-7481-4e2b-9e95-995678d7a072</guid><dc:creator>KM123</dc:creator><description>&lt;p&gt;Hi @Karl Ylvisaker ,&lt;/p&gt;
&lt;p&gt;Here is output , I am getting.&lt;/p&gt;
&lt;p&gt;Here is NRF Output.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Screenshot-_2800_448_2900_.png" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Here is Arduino Output.&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Screenshot-_2800_447_2900_.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 Not receiving from Arduino In SPI communication</title><link>https://devzone.nordicsemi.com/thread/320031?ContentTypeID=1</link><pubDate>Wed, 14 Jul 2021 12:57:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d30edda-ad27-476e-9368-21f8bad17787</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again,&lt;/p&gt;
[quote user="KM123"]We have checked in the serial port in Arduino IDE that thing. Because we have Rx variable mentioned in the Arduino code to receive . So we just transfer random data from from NRF and we can see that it shows on the serial port of Arduino IDE.[/quote]
&lt;p&gt;Thank you for clarifying. Could you show me what these logs look like on either side, when you try to communicate back and forth?&lt;br /&gt;&lt;br /&gt;The issue might very well be with the Arduino side of the code here. I suspect that it is, since you are basing your nRF application on the SPI example, and are able to successfully send data from the nRF and receive it in the Arduino.&lt;br /&gt;&lt;br /&gt;Please see my previous question about the origin of the Arduino program.&lt;/p&gt;
[quote user="KM123"]No we don&amp;#39;t have that access to use scope or analyzer.[/quote]
&lt;p&gt;That is unfortunate, as these are excellent tools to use for these types of issues.&lt;br /&gt;Logical analyzers are fortunately getting cheaper and better all the time, so I highly recommend that you acquire one in the future, if you intend to work a lot with serial interfaces.&lt;br /&gt;&amp;nbsp;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 Not receiving from Arduino In SPI communication</title><link>https://devzone.nordicsemi.com/thread/319923?ContentTypeID=1</link><pubDate>Wed, 14 Jul 2021 04:16:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88e07351-5d20-4bd1-b5fa-b425002c3305</guid><dc:creator>KM123</dc:creator><description>&lt;div class="c-virtual_list__item" id="1626235944.000100"&gt;
&lt;div class="c-message_kit__background p-message_pane_message__message c-message_kit__message"&gt;
&lt;div class="c-message_kit__hover"&gt;
&lt;div class="c-message_kit__actions c-message_kit__actions--default"&gt;
&lt;div class="c-message_kit__gutter"&gt;
&lt;div class="c-message_kit__gutter__right"&gt;
&lt;div class="c-message_kit__blocks c-message_kit__blocks--rich_text"&gt;
&lt;div class="c-message__message_blocks c-message__message_blocks--rich_text"&gt;
&lt;div class="p-block_kit_renderer"&gt;
&lt;div class="p-block_kit_renderer__block_wrapper p-block_kit_renderer__block_wrapper--first"&gt;
&lt;div class="p-rich_text_block" dir="auto"&gt;
&lt;div class="p-rich_text_section"&gt;Hi @Karl Ylvisaker,&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class="p-rich_text_section"&gt;&amp;nbsp;We have checked in the serial port in Arduino IDE that thing. Because we have Rx variable mentioned in the Arduino code to receive . So we just transfer random data from from NRF and we can see that it shows on the serial port of Arduino IDE.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="c-virtual_list__item" id="1626235983.000300"&gt;
&lt;div class="c-message_kit__background c-message_kit__background--hovered p-message_pane_message__message c-message_kit__message"&gt;
&lt;div class="c-message_kit__hover c-message_kit__hover--hovered"&gt;
&lt;div class="c-message_kit__actions c-message_kit__actions--above"&gt;
&lt;div class="c-message_kit__gutter"&gt;
&lt;div class="c-message_kit__gutter__right"&gt;
&lt;div class="c-message_kit__blocks c-message_kit__blocks--rich_text"&gt;
&lt;div class="c-message__message_blocks c-message__message_blocks--rich_text"&gt;
&lt;div class="p-block_kit_renderer"&gt;
&lt;div class="p-block_kit_renderer__block_wrapper p-block_kit_renderer__block_wrapper--first"&gt;
&lt;div class="p-rich_text_block" dir="auto"&gt;
&lt;div class="p-rich_text_section"&gt;No we don&amp;#39;t have that access to use scope or analyzer.&lt;br /&gt;&lt;br /&gt;Thanks!&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 Not receiving from Arduino In SPI communication</title><link>https://devzone.nordicsemi.com/thread/319851?ContentTypeID=1</link><pubDate>Tue, 13 Jul 2021 14:04:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:beaab1d4-6076-42e5-bfa0-221897491e75</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]What I am getting that data is transferred clearly from nrf52 to the Arduino board but when I am trying to get the data from Arduino to nrf52 it is not responding.&amp;nbsp;[/quote][quote user=""]I am in doubt that the problem is in hardware or software. Please help me sort the problem out .[/quote]
&lt;p&gt;If you are able to transfer data from the nRF52 to the other device, we know that the hardware connection is ok.&lt;br /&gt;Could you elaborate how you verify that the Arduino is receiving the data from the nRF52 properly?&lt;br /&gt;What happens when you attempt to send data from the Arduino to the nRF52?&lt;br /&gt;Do you have access to a oscilloscope or a logical analyzer, so we may see what is happening on the lines when you try to send data from the Arduino? A logical analyzer is a very powerful tool to wield when debugging serial interfaces.&lt;/p&gt;
[quote user=""]Here is main.c for Arduino code mentioned below.[/quote]
&lt;p&gt;We do not support Arduino, and unfortunately I have very little personal experience with Arduino, so it is hard for me to know what to look for here, sorry. What have you based your Arduino code on, is there a SPI example or similar that you have used as reference?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>