<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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 communication issue (software problem)</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/86651/spi-communication-issue-software-problem</link><description>Hello, 
 
 I am developing a system with the nRF52832 and SPI peripherals. I have been trying unsuccessfully for a while to resolve a communication issue with one of the devices (Bosch BME280). The strange thing is that (1) when examined with a logic</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Thu, 07 Apr 2022 01:35:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/86651/spi-communication-issue-software-problem" /><item><title>RE: SPI communication issue (software problem)</title><link>https://test-devzone.nordicsemi.com/thread/362193?ContentTypeID=1</link><pubDate>Thu, 07 Apr 2022 01:35:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b06b7442-2c73-4107-8d3d-2c1b9839f8c3</guid><dc:creator>user65515</dc:creator><description>&lt;p&gt;Two issues most likely:&lt;/p&gt;
&lt;p&gt;1. The useful Rx data from the BME280 starts with the 2nd byte, not the first; the BME280 doesn&amp;#39;t know what to send until it receives the first byte, so the id appears in the 2nd received byte. The first byte received and reported&amp;nbsp; in this case is 0x00, the 2nd byte 0x60. (Ignore this comment if you are already reporting the 2nd Rx byte)&lt;/p&gt;
&lt;p&gt;2. The logic&amp;nbsp;probe is showing ideal signals which don&amp;#39;t match actual signals in most cases; improve performance by setting all outputs (SCK, MOSI, CS) (in CNF) to &lt;em&gt;H0H1&lt;/em&gt; drive strength&lt;em&gt;&amp;nbsp;immediately after&lt;/em&gt; initializing the SPI peripheral. When all is working well you can experiment by reducing drive strength but there is no real advantage to doing that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI communication issue (software problem)</title><link>https://test-devzone.nordicsemi.com/thread/362162?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2022 17:44:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce7d1e4c-51d3-4b44-b9a2-0a2d66c64860</guid><dc:creator>user103731</dc:creator><description>&lt;p&gt;SDK version:&amp;nbsp;nRF5_SDK_17.0.2_d674dde&lt;br /&gt;I&amp;#39;m not sure which nRF52832 - how would I check that? SoftDevice is S132.&lt;br /&gt;I did upload the logic analyzer trace, it&amp;#39;s in the post. I don&amp;#39;t have a trace with all of the signals together, but that one shows CLK &amp;amp; MISO. Here is one more that shows CLK &amp;amp; MOSI for the same command.&lt;/p&gt;
&lt;p&gt;&lt;img height="172" src="https://test-devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1649267267818v1.png" width="388" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI communication issue (software problem)</title><link>https://test-devzone.nordicsemi.com/thread/362120?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2022 13:55:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9e5ab14-f61b-4612-b92c-26f5771c3ff9</guid><dc:creator>user73165</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;Which SDK version are you using and what nRF52832 revision? Could you upload the trace from the logical analyzer?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>