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.

RTOS/CC2650: SPI Stop working

Part Number: CC2650

Tool/software: TI-RTOS

Hello

I use a cc2650 with 2 device in SPI (Accelerometer and flash)

Me code work for a small time but sometimes he stop working. BLE continue to work but me task use SPI stop working

I open the SPI with

bspSpiOpen();

And he lock on

bspSpiRead(vData,wLength);

Only one task use spi.

do you have an idea?

Thanks

  • Hi,

    It's a bit difficult to know what the problem might be. I would recommend you to follow our software developer's guide section 9 : Development and Debugging. Please provide more information after you have exercised all the provided debug steps, so we can better assist you.
  • Is hard to debug why  is a random bug but and i never have this bug when jtag is conneced

    I have found a fix but i don't like this fix

    the fix is add Power_SB_DISALLOW and Power_IDLE_PD_DISALLOW during spi transfer

    Exemple

    Power_setConstraint(Power_SB_DISALLOW);
    Power_setConstraint(Power_IDLE_PD_DISALLOW);
    
    int ret = SPI_transfer(spiHandle, &masterTransaction) ? 0 : -1;
    
    Power_releaseConstraint(Power_SB_DISALLOW);
    Power_releaseConstraint(Power_IDLE_PD_DISALLOW);

    Is there another solution?