Hi,
I'm using Ti CC2540 for BLE. In the application cc2540 needs to send periodic updated at 4sec rate. The data is received from SPI master which is STM32F4
on SPI. However I'm facing some issues with SPI integration. As soon as I starts my SPI task, the BLE radio behavior changes, I 'm not able to discover it
from BTool. I've to reboot it 2-3 times and quickly issues scan request. to discover else I'm not able to discover it. Even when the device is discovered I'm not able to connect to it. I've to again power cycle it to establish connection.
However If I switch off my SPI task the device works perfectly, I'm able to discover it in one go and also able to connect without rebooting. All the messages are perfectly received.
I think BLE link layer timings are getting affected by the SPI task. But I'm still not able to figure out.
For initial test the SPI transaction happens once in ever 2 seconds with 10 bytes exchange which is not much. In actual application there will more than 40 bytes exchange at 4seconds rate which further worries me.
I've used SimplePeripheral_BLE as my starting code base. and my SPI communication framework is based on hal_uart_spi example provider with HAL driver.
However I'm using SPI in interrupt mode without DMA and synchronization is carried using external GPIO pins.
The SPI is running at 1.5MHz clock.
Please someone provide some suggestion or direction where I'm going wrong.
Thanks and Regards,
Pradeep