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 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