<?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>nRF8001 Setup Question</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5854/nrf8001-setup-question</link><description>Hello, 
 Working on my own code to integrate an arm chip with the nRF8001, after I read the device status, which says it&amp;#39;s in Setup-mode, I&amp;#39;m sending the setup configuration to the device, as specified in services.h generated by nrf go studio. First</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 Jun 2015 14:24:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5854/nrf8001-setup-question" /><item><title>RE: nRF8001 Setup Question</title><link>https://devzone.nordicsemi.com/thread/20432?ContentTypeID=1</link><pubDate>Tue, 02 Jun 2015 14:24:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:895447c3-b644-4729-90ad-6faacc032fd5</guid><dc:creator>Adrian</dc:creator><description>&lt;p&gt;Has there been an update/breakthrough on this issue? Did the above suggestion help clear it up?
I&amp;#39;m seeing a similar issue and I&amp;#39;m wondering if this is timing related????&lt;/p&gt;
&lt;p&gt;I ported the Arduino driver over to TI&amp;#39;s Tiva C microcontroller series and it is working just fine. I&amp;#39;m using freeRTOS and the BLE driver has its own task. Everything is working just fine, no issues at all. That is, until I add more tasks. That&amp;#39;s when I run into the same issue as above. If I don&amp;#39;t start all tasks, it works again.
This tells me that this is not a driver issue (the BLE task is the only one that has access to the SPI interface), but rather a timing issue. However, this is odd and sort of unexpected as the actual SPI transactions happens in the ISR.&lt;/p&gt;
&lt;p&gt;It sounds like you&amp;#39;re using your own driver implementation for the nRF8001 and NOT the provided library?
When I stepped through the code I found that the device actually returns error status 0x83 (Device State Invalid) and I think a few other 0x8X errors. The driver keeps sending the rest of the messages but will return with an error code. The main loop will then pick up the &amp;quot;Continue Transaction&amp;quot; status that are triggered by the few messages that are accepted by the chip.&lt;/p&gt;
&lt;p&gt;Another thing I wanted to bring up is that there is a comment in the driver library that mentions the need of a delay when you fill the driver&amp;#39;s buffer. I&amp;#39;ve increased this to no avail, but it&amp;#39;s worth looking into it (if you&amp;#39;re using the Nordic library).&lt;/p&gt;
&lt;p&gt;I&amp;#39;m really curious what the solution to the above state problem was and I am willing to collaborate on a solution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF8001 Setup Question</title><link>https://devzone.nordicsemi.com/thread/20431?ContentTypeID=1</link><pubDate>Wed, 04 Mar 2015 09:47:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b6fd251-f71a-44a9-8fd8-ec943718a791</guid><dc:creator>David Edwin</dc:creator><description>&lt;p&gt;I would suggest that you first verify your SPI driver by  sending the Echo command and then verify that the Echo Event arrives. Do this for varying length echo commands so you verify your driver first.&lt;/p&gt;
&lt;p&gt;Send the Test Command.
Wait for the Device Started Event with the nRF8001 in Test state.
Send the Echo command and verify the Echo Response Event.&lt;/p&gt;
&lt;p&gt;Once you verify this you can attempt the Setup sequence.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>