<?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 declaration</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86968/spi-declaration</link><description>Hi all, 
 
 I&amp;#39;m using an nRF52-DK for testing the connections of pressure sensors (BME/BMP280), I tested first with arduino, and then I&amp;#39;m using the same code with Platformio in VScode. 
 The connection and code are the same so I&amp;#39;m not sure what is failing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 20 Apr 2022 13:35:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86968/spi-declaration" /><item><title>RE: SPI declaration</title><link>https://devzone.nordicsemi.com/thread/363966?ContentTypeID=1</link><pubDate>Wed, 20 Apr 2022 13:35:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0efeab52-0e31-4e26-adf9-380941cce00b</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again,&lt;/p&gt;
[quote user="pgonzaleztrucorp"]I&amp;#39;m using Platformio in VScode so the code is the exact same.[/quote]
&lt;p&gt;I am unfortunately not familiar with Platformio either, as this is not a Nordic product nor something we support.&lt;br /&gt;Looking at the attached code it seems to me that your call to&amp;nbsp;bmp.begin() fails, and so you should check with Platformio which drivers it is using behind the scenes, to determine why it is unable to find the sensor.&lt;br /&gt;Which input parameters should the begin function be called with?&lt;br /&gt;From your commented out line of code it seems that you should provide the device address to the begin call, while you do not in the failing function call. I cant see that you are providing this address elsewhere either.&lt;br /&gt;Is this the exact code that worked on the Arduino, or did you change anything in-between?&lt;br /&gt;&lt;br /&gt;Could you also detail your connection between the sensor and the nRF device, and confirm that you have checked the nRF module&amp;#39;s datasheet to see if the pins you are attempting to use are available?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI declaration</title><link>https://devzone.nordicsemi.com/thread/363766?ContentTypeID=1</link><pubDate>Wed, 20 Apr 2022 07:27:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18314d92-ca71-4a1e-8888-83643b5d23d9</guid><dc:creator>pgonzaleztrucorp</dc:creator><description>&lt;p&gt;I&amp;#39;m using Platformio in VScode so the code is the exact same. The board is an nRF52-DK (PCA10040) using SDK 17.1, or a customized board with the nRF52832. I don&amp;#39;t have any errors from the code, the problem is that it doesn&amp;#39;t detect the pressure sensors.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI declaration</title><link>https://devzone.nordicsemi.com/thread/363603?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2022 13:07:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c60ce312-e5e9-44b6-85fe-fa4c93bdd86c</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]&lt;p&gt;In Arduino IDE using Arduino UNO it woks.&lt;/p&gt;
&lt;p&gt;In VScode with the nRF52-DK, the Terminal will show&amp;nbsp;&amp;quot;Could not find a valid BMP280 sensor, check wiring or &amp;quot;&lt;br /&gt; &amp;quot;try a different address!&amp;quot;&lt;/p&gt;[/quote]
&lt;p&gt;I am not familiar with the Arduino UNO or how this can be done in Arudino, unfortunately. Could you show me how you attempted to do this in VScode for the nRF52-DK?&lt;br /&gt;Could you also clarify if you are using the nRF5 SDK, or the NCS SDK? Which version are you working with?&lt;br /&gt;Did you get any errors from the nRF52-DK? If so, what did they read?&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>