<?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 Slave readout returns always 0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54236/spi-slave-readout-returns-always-0</link><description>Hi, 
 
 i&amp;#39;m trying to readout the who_am_i register of SPI slave ST lis2hh12 (a MEMS sensor). I followed the spi-example found in examples/peripheral/spi of SDK 15.3.0. 
 I modified the parameters of spi_config, but it has no effect at all: 
 
 The rx_buf</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 11 Nov 2019 14:59:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54236/spi-slave-readout-returns-always-0" /><item><title>RE: SPI Slave readout returns always 0</title><link>https://devzone.nordicsemi.com/thread/219519?ContentTypeID=1</link><pubDate>Mon, 11 Nov 2019 14:59:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8dce557-6565-4cff-b5ce-17dff081cef7</guid><dc:creator>Neum_d</dc:creator><description>&lt;p&gt;Thank you very much! I borrowed a 2-channel oscilloscope from a friend and as i started to connect the oscilloscope-channels to the pins CS and SCK, i saw that i used the wrong pins!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI Slave readout returns always 0</title><link>https://devzone.nordicsemi.com/thread/219461?ContentTypeID=1</link><pubDate>Mon, 11 Nov 2019 12:40:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17d57792-0cc9-4a66-8669-1934d10b353d</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I recommend to get a logic analyzer and/or oscilloscope so you may observe the physical pins. For test if you connect MISO to MOSI, you likely will see that&amp;nbsp;&lt;span&gt;m_rx_buf ==&amp;nbsp;m_tx_buf.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI Slave readout returns always 0</title><link>https://devzone.nordicsemi.com/thread/219452?ContentTypeID=1</link><pubDate>Mon, 11 Nov 2019 12:06:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:009a5c58-aedb-4b81-9767-532b37dc57a5</guid><dc:creator>Neum_d</dc:creator><description>&lt;p&gt;I populate m_rx_buf[] to see, if its content changes. Yes, the content changes. Unfortunately, I do not have a logic analyzer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI Slave readout returns always 0</title><link>https://devzone.nordicsemi.com/thread/219448?ContentTypeID=1</link><pubDate>Mon, 11 Nov 2019 12:00:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e92bd915-49d7-449d-8153-f723863cf67a</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Not sure why you are populating&amp;nbsp;m_rx_buf[] with values, since that is the values received on MISO. Do you have a logic analyzer to observe data on the SPI lines?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>