Other Parts Discussed in Thread: CC2640, CC2650
Hi all,
We are developing a smartwach, using CC2640 as secondary MCU, and connected as slave over SPI bus with a master MCU (Freescale MKL27).
We have implemented NPI, using the model provided in the SDK and demo samples. SPI is configured in non-blocking mode:
spiParams.transferMode = SPI_MODE_CALLBACK;
We have periodic transfers from slave (CC2640) to master. They go normally during some minutes, but then SPI transfer callback is not received for a transfer, and this blocks consecutive transfers (since SRDY line is deactivated in this callback, and consecutive transfers find bus busy. Also we are trying to disable SRDY and reuse SPI for consecutive transfers, but this is failing).
So, could anybody help us understand why SPI transfer callback stops being received? Our NPI implementation is almost 100% the one provided in the original ble sdk (configuring suitable pinout for our custom board, and not much more changes).
We are investigating some other ways, as configuring SPI in blocking mode, etc., since this is a blocking problem in our project.
Thank you very much.
Regards.