<?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 and openthread on nRF52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/41079/spi-and-openthread-on-nrf52840</link><description>Hi, 
 I am new to openthread development. My goal is to distribute measured values received from the SPI Bus over a thread network. I am using a nRF52840-DK Board, SDK for Thread and Zigbee 2.0 together with Segger Embedded Studio on Windows 10. 
 For</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 07 Dec 2018 12:57:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/41079/spi-and-openthread-on-nrf52840" /><item><title>RE: SPI and openthread on nRF52840</title><link>https://devzone.nordicsemi.com/thread/160738?ContentTypeID=1</link><pubDate>Fri, 07 Dec 2018 12:57:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9a47570-001a-41d6-88b2-4cdc11841c39</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Glad to hear that it worked,&lt;/p&gt;
&lt;p&gt;SPI typically works this way, you have two data lines, MOSI and MISO, so that the devices can both send and receive data.&lt;/p&gt;
&lt;p&gt;I am not familiar with that sensor specificaly. They usually need some setup commands (over SPI). It should be described in the datasheet. See if you can find something in the datasheet, or if you can find a driver which you can port to fit the nRF.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI and openthread on nRF52840</title><link>https://devzone.nordicsemi.com/thread/160617?ContentTypeID=1</link><pubDate>Thu, 06 Dec 2018 14:50:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bb8a06f-3966-452f-a0ff-5e3b26df5b3a</guid><dc:creator>Marco</dc:creator><description>&lt;p&gt;Hi Edvin, thank you very much for the quick response and sorry for the late reply.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I sorted it out. I had some conflicts between prs, spi and uart in the sdk_config file. Setting all of them to anything other than 0, I managed to compile and run the SPIM Driver.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Unfotunately, I still have some questions regarding the behaviour of the driver. I hope it is OK to ask them in this context. If not please feel free to move the topic.&lt;/p&gt;
&lt;p&gt;I need to address a 4 Channel AD Converter from TI with the follwoing sequence.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/AD_5F00_Seq.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;The SPIM Driver seem to send and receive at the same time as shown in the screenshot below.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is there a way to init a sequential write/read?&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/IMG_5F00_5069_5F00_kl.JPG" /&gt;&lt;/p&gt;
&lt;p&gt;Thank you in advance&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Marco&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI and openthread on nRF52840</title><link>https://devzone.nordicsemi.com/thread/159732?ContentTypeID=1</link><pubDate>Fri, 30 Nov 2018 14:23:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cff049dc-dd2e-483f-8acd-81bdb5b1b906</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Sorry that there are multiple replies here, but I found something more:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you check the SDK\external\openthread\project\readme.txt, it says:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;OpenThread libraries projects are based on the following commit of OpenThread: 704511c96e0d093139e4b80ef0739ed2d701afb1&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;If you pull this commit, then you shouldn&amp;#39;t have to change anything in the example, as it is the version used to make the SDK.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI and openthread on nRF52840</title><link>https://devzone.nordicsemi.com/thread/159727?ContentTypeID=1</link><pubDate>Fri, 30 Nov 2018 14:14:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74bab351-e108-488f-b56a-462fd7727ef1</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;The same goes with UART0, by the way. This is taken by the openthread build, but you can use the others.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI and openthread on nRF52840</title><link>https://devzone.nordicsemi.com/thread/159724?ContentTypeID=1</link><pubDate>Fri, 30 Nov 2018 14:11:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a24e5ea0-2872-4a1d-b8e8-778ea46862bb</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Marco,&lt;/p&gt;
&lt;p&gt;Since openthread is an external library, and in continuous change, it is difficult to keep the documentation up to date at all times. The SDK and it&amp;#39;s examples works with the openthread version that is used when it was developed, but if you compile a later version, you may have to configure the examples as well. This is mentioned in the &lt;a href="https://www.nordicsemi.com/en/DocLib/Content/SDK_Doc/Thread_SDK/v2-0-0/thread_intro?12#thread_qsg_libraries"&gt;SDK documentation&lt;/a&gt;:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Note: &lt;/em&gt;&lt;br /&gt;&lt;em&gt;OpenThread is still in prerelease phase and its API changes frequently. Keep in mind that when the API changes, the examples might not compile with the latest OpenThread version right away without fixes.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;What do you need for your project? You want to add an SPI, right? Have you tried to add the SPI as it is done in the &amp;quot;normal&amp;quot; SDK examples? I don&amp;#39;t think you need to update the openthread library. As long as you don&amp;#39;t use SPIS0 it should work.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>