<?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>Error after transmit complete event in SPI + SoftDevice enabled</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4683/error-after-transmit-complete-event-in-spi-softdevice-enabled</link><description>Hello, 
 I am really new to using the Nordic nRF51822 and I&amp;#39;m having problems making SPI work with the S110 SoftDevice. I was able to combine the sample codes spi_master_example and ble_app_hrs. I created some custom service and wish to read some data</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 05 Feb 2018 04:19:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4683/error-after-transmit-complete-event-in-spi-softdevice-enabled" /><item><title>RE: Error after transmit complete event in SPI + SoftDevice enabled</title><link>https://devzone.nordicsemi.com/thread/119660?ContentTypeID=1</link><pubDate>Mon, 05 Feb 2018 04:19:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5498003-6295-4f2c-8ca4-20b3397b41b4</guid><dc:creator>danimalia</dc:creator><description>&lt;p&gt;SPI interrupt is set to&amp;nbsp;APP_IRQ_PRIORITY_LOW, and so is the RTC:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;#define RTC1_IRQ_PRI&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; APP_IRQ_PRIORITY_LOW&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;#define SWI0_IRQ_PRI&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; APP_IRQ_PRIORITY_LOW&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;How to use the scheduler to call from the main loop?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error after transmit complete event in SPI + SoftDevice enabled</title><link>https://devzone.nordicsemi.com/thread/119658?ContentTypeID=1</link><pubDate>Mon, 05 Feb 2018 03:05:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d102ccab-b282-4d74-a7e5-830324d5c048</guid><dc:creator>Hein</dc:creator><description>&lt;p&gt;This sounds like an interrupt priority issue, make sure that the SPI interrupt priority is at least the same as the timer priority, or alternatively, call the SPI transfer from the main loop instead of interrupt. (Can be done with the scheduler)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error after transmit complete event in SPI + SoftDevice enabled</title><link>https://devzone.nordicsemi.com/thread/119653?ContentTypeID=1</link><pubDate>Sun, 04 Feb 2018 22:17:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37c457dc-193f-465a-804d-6f3634c5dde0</guid><dc:creator>danimalia</dc:creator><description>&lt;p&gt;Sorry to resurrect an old thread but I have run into the same problem, and have followed the code suggested above.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;the problem for me is that I am not sure where to call send_data().&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am wanting to read data from an accelerometer periodically, and have tried to call send_data in&amp;nbsp;rsc_meas_timeout_handler().&amp;nbsp;&lt;/p&gt;
&lt;p&gt;however, when I do this the&amp;nbsp;&lt;span class="n"&gt;spi_master_event_handler() never gets called, so I think something is either blocking the interrupt somewhere or it has been disabled but I can&amp;#39;t find where...&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error after transmit complete event in SPI + SoftDevice enabled</title><link>https://devzone.nordicsemi.com/thread/16611?ContentTypeID=1</link><pubDate>Thu, 18 Dec 2014 06:55:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6a04756-1e45-467f-a9be-4fa01dd49908</guid><dc:creator>Annim</dc:creator><description>&lt;p&gt;what problem? do let us know with error  code or so if you can.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error after transmit complete event in SPI + SoftDevice enabled</title><link>https://devzone.nordicsemi.com/thread/16610?ContentTypeID=1</link><pubDate>Wed, 17 Dec 2014 23:50:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63a0d045-4dbd-4ac9-ba65-a1513f26006e</guid><dc:creator>mira67</dc:creator><description>&lt;p&gt;can you provide what&amp;#39;s your error in the code? I am having similar problem with you?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error after transmit complete event in SPI + SoftDevice enabled</title><link>https://devzone.nordicsemi.com/thread/16609?ContentTypeID=1</link><pubDate>Wed, 03 Dec 2014 14:31:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17fd4834-581b-482d-9a51-c8b4b5a06a44</guid><dc:creator>leo b.</dc:creator><description>&lt;p&gt;Thank you so much.  I was able to find the cause of my problem by referencing your sample code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error after transmit complete event in SPI + SoftDevice enabled</title><link>https://devzone.nordicsemi.com/thread/16608?ContentTypeID=1</link><pubDate>Tue, 02 Dec 2014 09:28:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3145da78-ea62-445f-8679-046c58ad2ad2</guid><dc:creator>Annim</dc:creator><description>&lt;p&gt;Try this code out.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Make sure you call SPI init procedures after ble_stack_init() call.
Take the code piece by piece, this code works for me.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Take a look on this link for simple source code:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://paste.ubuntu.com/9342369/"&gt;PasteBin S110+SPI&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error after transmit complete event in SPI + SoftDevice enabled</title><link>https://devzone.nordicsemi.com/thread/16607?ContentTypeID=1</link><pubDate>Tue, 02 Dec 2014 09:15:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bea191c2-ec7e-428d-a9d0-a033246defa8</guid><dc:creator>Annim</dc:creator><description>&lt;p&gt;While working with SPI and SoftDevice Enabled. Do make Sure that you have initiated SPI related steps after ble_stack_init(). Then it will not stuck. Will post one clean sample for SPI + S110 in a while.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>