<?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>The slave communication problem of ble SPI Slave</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76810/the-slave-communication-problem-of-ble-spi-slave</link><description>SDK 版本nRF5_SDK_17.0.2_d674dde 
 斯特姆32斯皮大师52840尖尖奴隶 
 nRF5_SDK_17.0.2_d674d_示例=外围\spis，可以正常通信 
 我将spis代码复制到nRF5_SDK_17.0.2_d674d_示例]ble_peripheral\ble_app_blinky无通信</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 05 Jul 2021 21:14:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76810/the-slave-communication-problem-of-ble-spi-slave" /><item><title>RE: The slave communication problem of ble SPI Slave</title><link>https://devzone.nordicsemi.com/thread/318705?ContentTypeID=1</link><pubDate>Mon, 05 Jul 2021 21:14:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8864a4fd-a575-48e6-b159-2d396a16b1a7</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Trump,&lt;/p&gt;
&lt;p&gt;It seems that you did not use the &lt;span&gt;examples\peripheral\spis codes to handle the interrupt? Is there any reason for that? Did you make the spis sample work?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you are new to BLE, I have some very good tutorials for you to get start:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/bluetooth-low-energy/posts/ble-advertising-a-beginners-tutorial"&gt;Bluetooth low energy Advertising, a beginner&amp;#39;s tutorial - Bluetooth low energy - nRF5 SDK guides - Nordic DevZone (nordicsemi.com)&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/bluetooth-low-energy/posts/ble-services-a-beginners-tutorial"&gt;(+) Bluetooth low energy Services, a beginner&amp;#39;s tutorial - Bluetooth low energy - nRF5 SDK guides - Nordic DevZone (nordicsemi.com)&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/bluetooth-low-energy/posts/ble-characteristics-a-beginners-tutorial"&gt;(+) Bluetooth low energy Characteristics, a beginner&amp;#39;s tutorial - Bluetooth low energy - nRF5 SDK guides - Nordic DevZone (nordicsemi.com)&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The last tutorial provides one solution which is almost close to your need, you just need to replace the timer with spi slave. It uses a timer to trigger MCU temperature updates. The temperature updating codes are inside the timer interrupt handler. What you need to do is to replace the configuration, interrupt functions of the timer with spis in the&amp;nbsp;examples\peripheral\spis.&lt;br /&gt;I have adapted the code for&amp;nbsp;nRF5_SDK_17.0.2, just share it here with you for your reference. It also provides solutions for the last two challenges.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_template_5F00_characteristic.zip"&gt;devzone.nordicsemi.com/.../ble_5F00_app_5F00_template_5F00_characteristic.zip&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please provide more detail if you need further help.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Charlie&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The slave communication problem of ble SPI Slave</title><link>https://devzone.nordicsemi.com/thread/318502?ContentTypeID=1</link><pubDate>Sat, 03 Jul 2021 07:03:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0827c7d4-a8d4-48e9-8f6b-5574d57c3a12</guid><dc:creator>Trump</dc:creator><description>&lt;p&gt;I tried as you suggested, but I still don&amp;#39;t understand。&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1625295695227v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Still can&amp;#39;t produce interrupt, go executing afore-mentioned function&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The slave communication problem of ble SPI Slave</title><link>https://devzone.nordicsemi.com/thread/318424?ContentTypeID=1</link><pubDate>Fri, 02 Jul 2021 11:43:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1a49de9-d283-49fb-8df6-5b9be6e7239d</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;I suggest you start with learning the following two examples and replace UART with SPI slave.&lt;/p&gt;
&lt;p&gt;examples\ble_peripheral\ble_app_uart&lt;/p&gt;
&lt;p&gt;examples\peripheral\spis&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The slave communication problem of ble SPI Slave</title><link>https://devzone.nordicsemi.com/thread/318329?ContentTypeID=1</link><pubDate>Fri, 02 Jul 2021 05:53:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a93e3439-fe9d-465c-bca6-282c3b8bafca</guid><dc:creator>Trump</dc:creator><description>&lt;div class="trans-left"&gt;
&lt;div class="trans-input-wrap"&gt;
&lt;div class="input-wrap" dir="ltr"&gt;
&lt;div class="input-operate"&gt;&lt;a class="operate-btn op-sound data-hover-tip" href="https://fanyi.baidu.com/translate?aldtype=16047&amp;amp;query=&amp;amp;keyfrom=baidu&amp;amp;smartresult=dict&amp;amp;lang=auto2zh###"&gt;&lt;span class="icon-sound"&gt;&lt;/span&gt;&lt;/a&gt;
&lt;div class="op-favor-container"&gt;&lt;span class="icon-favo"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="trans-right"&gt;
&lt;div class="output-wrap"&gt;
&lt;div class="output-mod ordinary-wrap"&gt;
&lt;div class="output-bd" dir="ltr"&gt;
&lt;p class="ordinary-output target-output clearfix"&gt;&lt;span class=""&gt;I have a question about SPI slave communication.SPI slave can not receive data and generate interrupt under Bluetooth protocol stack。I don&amp;#39;t know how to transplant SPI slave device with Bluetooth protocol stack&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The slave communication problem of ble SPI Slave</title><link>https://devzone.nordicsemi.com/thread/317438?ContentTypeID=1</link><pubDate>Mon, 28 Jun 2021 10:50:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7244e503-35c8-4158-9644-0b6439131ba4</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi liu123,&lt;/p&gt;
&lt;p&gt;Some suggestions to you:&lt;/p&gt;
&lt;p&gt;1. Try to use English so other people can understand your questions and offer help. If it is challenging for you, using translation tools may be a good start.&lt;/p&gt;
&lt;p&gt;2. A detailed question description could be very helpful for us to understand your problem. Can you provide more information like what you did to add the SPI driver and what kind of error reports did you see?&lt;/p&gt;
&lt;p&gt;3. Please search the keywords&amp;nbsp;&amp;quot;SPI BLE&amp;quot;. You will find several related discussions which may give you inspiration, for example,&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/30373/spi-nrf52832"&gt;SPI nrf52832&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;We also have local sales and FAE can give you direct help. You can connect them through&amp;nbsp;&lt;a href="https://www.nordicsemi.com/About-us/Contact-Us"&gt;this page&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The slave communication problem of ble SPI Slave</title><link>https://devzone.nordicsemi.com/thread/317364?ContentTypeID=1</link><pubDate>Mon, 28 Jun 2021 00:58:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0eb3461-07e1-42a9-a115-bd087e06b03f</guid><dc:creator>Trump</dc:creator><description>&lt;p&gt;谁能回答我&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>