<?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 master RX problem with reception</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17264/spi-master-rx-problem-with-reception</link><description>Hi, 
 I use SPI Master driver to communicate with a flash memory. 
 I use SDK 12 and i use nrf_drv_spi_transfer(...); to write and read over SPI. 
 My problem is the following : I write 4 bytes of command and 2 bytes of reception.
I received 6bytes</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 26 Oct 2017 10:43:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17264/spi-master-rx-problem-with-reception" /><item><title>RE: SPI master RX problem with reception</title><link>https://devzone.nordicsemi.com/thread/66310?ContentTypeID=1</link><pubDate>Thu, 26 Oct 2017 10:43:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9fa342f-9f90-45b6-ad2e-3a2f3af919ef</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;A nice! :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI master RX problem with reception</title><link>https://devzone.nordicsemi.com/thread/66303?ContentTypeID=1</link><pubDate>Wed, 25 Oct 2017 15:34:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c9d96a0-623f-4c87-9dfa-a7e4e8e5b73f</guid><dc:creator>jean.oriano</dc:creator><description>&lt;p&gt;My first choice because of the price. today, visual studio + gdb is about 700 €. and it&amp;#39;s a performent IDE.
I think for more complex embedded system, keil or iar are most efficient but for my entreprise application&amp;#39;s it is more than sufficient.
the second thing is that i use xamarin to developp my BLE application on android &amp;amp; IOS.
So for 1 IDE byu and his extension, i can develop my smartphone application and my embedded program.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI master RX problem with reception</title><link>https://devzone.nordicsemi.com/thread/66302?ContentTypeID=1</link><pubDate>Mon, 23 Oct 2017 07:56:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fce33f3c-932b-4d1a-b731-c9e56b871e2b</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Jean. I&amp;#39;ve never used GDB myself, maybe it&amp;#39;s time to check it out^^&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI master RX problem with reception</title><link>https://devzone.nordicsemi.com/thread/66309?ContentTypeID=1</link><pubDate>Mon, 23 Oct 2017 07:32:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6691bb04-0ce8-4356-b827-52cae34b8f9a</guid><dc:creator>jean.oriano</dc:creator><description>&lt;p&gt;haakonsh : it&amp;#39;s not a real time visualisation, u can update the value automaticly all the 10ms. Today, i d&amp;#39;ont need more. It&amp;#39;s simple to use and no need extra installation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI master RX problem with reception</title><link>https://devzone.nordicsemi.com/thread/66308?ContentTypeID=1</link><pubDate>Mon, 23 Oct 2017 07:30:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3f266f4-eecf-4d76-b873-687b91697e41</guid><dc:creator>jean.oriano</dc:creator><description>&lt;p&gt;hey MainOFF, i use VisualStudio and his extension VisualGDB. U can use spy windows to show all the variable you want. you just need to be carefull about the life cycle of the variable.
For show in &amp;quot;real time&amp;quot; you need to show the live variable window. Same, be carefull about life cycle of variable.
To show this windows, go to menu &amp;quot;debug&amp;quot;-&amp;gt;&amp;quot;windows&amp;quot;-&amp;gt;&amp;quot;live variables&amp;quot; or &amp;quot;debug&amp;quot;-&amp;gt;&amp;quot;windows&amp;quot;-&amp;gt;&amp;quot;spy&amp;quot;-&amp;gt;&amp;quot;spy 1&amp;quot;&lt;/p&gt;
&lt;p&gt;yes it&amp;#39;s works on NRF52 :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI master RX problem with reception</title><link>https://devzone.nordicsemi.com/thread/66307?ContentTypeID=1</link><pubDate>Fri, 20 Oct 2017 10:49:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c558f9c-9b88-476e-9ccc-0ab4b405104e</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;For real-time debugging you need to use &lt;a href="https://devzone.nordicsemi.com/tutorials/6/"&gt;Segger RTT&lt;/a&gt; or &lt;a href="https://devzone.nordicsemi.com/blogs/909/debugging-nrf52-series-devices-using-trace/"&gt;ETM/ITM trace&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI master RX problem with reception</title><link>https://devzone.nordicsemi.com/thread/66306?ContentTypeID=1</link><pubDate>Fri, 20 Oct 2017 10:25:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2700806e-7249-4006-b913-f296c0566f72</guid><dc:creator>MainOFF</dc:creator><description>&lt;p&gt;I was working with stm32 MCU. debug monitor of them very good! I can see value of variable with realtime. Can I do that with nrf52?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI master RX problem with reception</title><link>https://devzone.nordicsemi.com/thread/66304?ContentTypeID=1</link><pubDate>Fri, 20 Oct 2017 08:10:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82a924b5-fcb4-453c-b56d-9c2eb3ced9b2</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;You need to set a break point in the SPI event handler. The m_rx_buf should appear as a variable in the Call Stack once you hit that break point. You can also add m_rx_buf to Watch or Memory by right clicking on it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI master RX problem with reception</title><link>https://devzone.nordicsemi.com/thread/66305?ContentTypeID=1</link><pubDate>Fri, 20 Oct 2017 06:21:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b2b79e0-e645-4e2d-a04e-1aff58afb1f0</guid><dc:creator>MainOFF</dc:creator><description>&lt;p&gt;hey brother. How can you show value of m_rx_buf in the monitor ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI master RX problem with reception</title><link>https://devzone.nordicsemi.com/thread/66311?ContentTypeID=1</link><pubDate>Tue, 25 Oct 2016 09:03:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7a415c7-908e-4cbe-939e-a7a8f3a5c7f3</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Hey Jean,&lt;/p&gt;
&lt;p&gt;This is a feature of the SPI protocol. SPI is a simple generic full-duplex serial protocol. There are no preamble, headers or error correction mechanisms built in. There is only a Rx buffer and a Tx buffer which is accessed one SPI word at a time, usually one byte.&lt;/p&gt;
&lt;p&gt;For every SPI clock cycle, one bit is transmitted from the Tx buffer, and one bit is received in the Rx buffer. The HW SPI peripheral or the SPI driver does not know that while you are transmitting, for instance, a control byte followed by a couple of address bytes, you are actually not interested in what you receive, they care only that you DO receive something, even if its 0x00.&lt;/p&gt;
&lt;p&gt;You will have to implement a method for reading the Rx buffer yourself. You can either get the data you want by directly accessing m_rx_buf[4] or[5], or you can create an array pointer and point to the address of m_rx_buf[4]. Then your data would start in element 0 of the array pointer.&lt;/p&gt;
&lt;p&gt;Cheers,
Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>