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无通信
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无通信
Hi liu123,
Some suggestions to you:
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.
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?
3. Please search the keywords "SPI BLE". You will find several related discussions which may give you inspiration, for example, SPI nrf52832.
We also have local sales and FAE can give you direct help. You can connect them through this page.
Best regards,
Charlie
I suggest you start with learning the following two examples and replace UART with SPI slave.
examples\ble_peripheral\ble_app_uart
examples\peripheral\spis
Best regards,
Charlie
I suggest you start with learning the following two examples and replace UART with SPI slave.
examples\ble_peripheral\ble_app_uart
examples\peripheral\spis
Best regards,
Charlie
I tried as you suggested, but I still don't understand。

Still can't produce interrupt, go executing afore-mentioned function
Hi Trump,
It seems that you did not use the examples\peripheral\spis codes to handle the interrupt? Is there any reason for that? Did you make the spis sample work?
If you are new to BLE, I have some very good tutorials for you to get start:
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 examples\peripheral\spis.
I have adapted the code for nRF5_SDK_17.0.2, just share it here with you for your reference. It also provides solutions for the last two challenges.
ble_app_template_characteristic.zip
Please provide more detail if you need further help.
Best regards,
Charlie