Other Parts Discussed in Thread: CC2640
Hello! I have a problem with operation of SPI on cc2640r2f.
After powering my device is able to operate as should (reacts on buttons, flashes leds and send data over SPI bus). When I trying to set connection with smartphone, cc2640 freezes, don’t reacts on buttons pressing, and I cannot connect from smartphone.
Basic project – Project Zero.
While debugging I could see that undesiradle behavior occurs when I try to do SPI_init() and SPI_open(). when these functions are commented (i.e. SPI is disabled) it is possible to set connection between smartphone and cc2640.
This https://e2e.ti.com/support/wireless_connectivity/bluetooth_low_energy/f/538/t/518760 , this https://e2e.ti.com/support/embedded/tirtos/f/355/t/585359?RTOS-LAUNCHXL-CC2650-Trying-to-Configure-SPI-with-the-CC2650-LAUNCHXL and this https://e2e.ti.com/support/wireless_connectivity/bluetooth_low_energy/f/538/t/612208?CC2640R2F-can-t-open-SPI did not helped me.
SPI initialization code is:
SPI_Handle spi;
SPI_Params spiParams;
SPI_Transaction spiTransaction;
uint8_t ( * transmitBuffer)[14];
uint8_t receiveBuffer[14];
bool transferOK;
spiParams.dataSize = 8; // 8-bit data size
SPI_init();
SPI_Params_init(&spiParams);
spi = SPI_open(Board_SPI0, &spiParams);