<?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>blend micro SPI</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15895/blend-micro-spi</link><description>I want to access an SPI-only sensor device from a Blend Micro. 
 There is a need to avoid collisions between the two uses of the SPI port for the sensor and the nRF chip. I tried testing ble_busy() to see if I could avoid the conflict that way. However</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 25 Aug 2016 12:57:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15895/blend-micro-spi" /><item><title>RE: blend micro SPI</title><link>https://devzone.nordicsemi.com/thread/60635?ContentTypeID=1</link><pubDate>Thu, 25 Aug 2016 12:57:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a1c6544-a5c9-49c2-88b4-2b253a4b277a</guid><dc:creator>paul_tanner</dc:creator><description>&lt;p&gt;Thx David,&lt;/p&gt;
&lt;p&gt;It looks like this may be very difficult to fix given the way I am trying to build this using an Arduino IDE.  On the Blend Micro the BLE-via-SPI stuff is not explicitly loaded but is pulled in automatically by the IDE.  I therefore should look into other ways to do the build so the libraries can be adjusted.&lt;/p&gt;
&lt;p&gt;However, I think I might be better off working directly with the nRF chip.  The Blend Micro was supposed to be an easier way of doing this but I&amp;#39;m beginning to doubt that.&lt;/p&gt;
&lt;p&gt;Regards, Paul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: blend micro SPI</title><link>https://devzone.nordicsemi.com/thread/60634?ContentTypeID=1</link><pubDate>Thu, 25 Aug 2016 12:24:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4793259a-62b5-49b6-a659-dde99f3219a3</guid><dc:creator>David Edwin</dc:creator><description>&lt;p&gt;Sharing the SPI between the nRF8001 and other SPI slave devices is possible and many projects have successfully executed on that. However you do need to get control of the lines and not depend on a software that was not written for sharing the SPI lines.&lt;/p&gt;
&lt;p&gt;You will need to get control of the SPI driver that is controlling the lines and as Hung stated, keep the REQN line high when controlling the other SPI slave device.&lt;/p&gt;
&lt;p&gt;Related Questions:
&lt;a href="https://devzone.nordicsemi.com/question/6600/can-we-change-the-spibitorder-and-spidatamode-while-using-nrf8001-ble/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: blend micro SPI</title><link>https://devzone.nordicsemi.com/thread/60632?ContentTypeID=1</link><pubDate>Wed, 24 Aug 2016 15:08:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afb2b19f-272b-4df7-9309-3a69e77a42db</guid><dc:creator>paul_tanner</dc:creator><description>&lt;p&gt;Thx. I tried sending questions to RedBear but did not get a reply.  They have a forum for this sort of thing but my login is not working and the facility to reset that is broken.  Their last comment on the subject (see link above) was &amp;quot;ask Nordic&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: blend micro SPI</title><link>https://devzone.nordicsemi.com/thread/60631?ContentTypeID=1</link><pubDate>Wed, 24 Aug 2016 08:52:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22e91759-5a70-4697-a7f1-c0513dab298a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;OK, so you don&amp;#39;t have direct control over the REQN pin and have to use API provided by the system.&lt;/p&gt;
&lt;p&gt;From what I can see in the case you quoted, ble_busy() only tell if there is activity with the nRF8001 or not. It doesn&amp;#39;t seem that it will hold the REQN line high so you can do other task.&lt;/p&gt;
&lt;p&gt;I guess you would need to test with longer connection interval (for example 1 second) and see if ble_busy still return true or not.&lt;/p&gt;
&lt;p&gt;Again, I&amp;#39;m not the best to answer Arduino and blendmicro, I would suggest you to request help from RedbearLab.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: blend micro SPI</title><link>https://devzone.nordicsemi.com/thread/60630?ContentTypeID=1</link><pubDate>Wed, 24 Aug 2016 07:59:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:152bddc2-0ad2-4744-a378-f60c4abe4fa1</guid><dc:creator>paul_tanner</dc:creator><description>&lt;p&gt;Thx Hung Bui.  When using BLE you hand over control of REQN to the BLE subsystem using the ble_set_pins() call.  I think that&amp;#39;s why you need ble_busy() which &lt;em&gt;should&lt;/em&gt; effectively return control when there is nothing to transmit.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: blend micro SPI</title><link>https://devzone.nordicsemi.com/thread/60633?ContentTypeID=1</link><pubDate>Tue, 23 Aug 2016 09:13:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3473a444-3390-455b-b730-6931cc358c2a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Paul,&lt;/p&gt;
&lt;p&gt;To be honest, I&amp;#39;m not very familiar with the blend micro platform, but what happens if you keep the REQN pin high and then do your task with the SPI sensor?&lt;/p&gt;
&lt;p&gt;From my understanding if the REQN is held high, the NRF8001 won&amp;#39;t interact with the SPI interface.&lt;/p&gt;
&lt;p&gt;Is it possible to control REQN pin on the blendmicro ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>