This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Accelerometer BMA250 in CC2650

Other Parts Discussed in Thread: CC2538

Hi Everybody,

I´m with some problems when try to use the SmartRF06 and integrate my source code with some examples that I saw in the TI documentation and some examples in the forum.

I would like to use the example used to cc2538 (acc_srf06eb.c and acc_bma250.h), but I cannot integrate it.

Maybe the root problem is my SPI connection, I tried to change many thing for debug it.

First: I tried to use these files (acc_srf06eb.c and bma250.h) without any changes, I noticed they used SSI.

It always hang in:

"while(SSIBusy(ACC_SSI_BASE))"

After I put/get some data, I don´t know how do it works (SSI). I never used and I didn´t find many documentations about it.

Second: I tried to use changing the way of write data to SPI using below:

int bspSpiWrite(const uint8_t *buf, size_t len)
{
SPI_Transaction masterTransaction;

masterTransaction.count = len;
masterTransaction.txBuf = (void*)buf;
masterTransaction.arg = NULL;
masterTransaction.rxBuf = NULL;

return SPI_transfer(spiHandle, &masterTransaction) ? 0 : -1;
}

But always hang when "materTransaction.count" is receiving "len".

It also very strange for me, I tried to change the initialization of SPI (adding SPI_init, because I noticed it when I read the source code), I tried to set the clock for SSI (this I don´t know how do it works) and try to configure the IO with "IOCPinTypeSpis".

So, if somebody can help me I will appreciate. If there is some documentation regarding SSI, I also appreciate.

Best Regards,

Jody.