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.

CC2640R2F: SPI operations conflict with BLE Stack ?

Part Number: CC2640R2F

Tool/software:

Hi Fam,

I am using two SPI interfaces in my design. One is to fetch data and other is to store and retrieve the data. My design needs to transfer live data over BLE. So both SPI interfaces should be operative all the time. 

I am experiencing firmware hangs occasionally and my application couldn't be able to recover again. So I need to power cycle my device. 

Is there a possibility using two SPI (SSI0 and SSI1) interfaces continuously conflicts with BLE stack operations in any way which causes the firmware hang? 

In that case, how to properly handle the scenario? 

Thanks in advance.

Best

Lakshmi

  • Hi Lakshmi, 

    Thank you for reaching out. 

    To me you may be experiencing one of the two following issues (potentially both):

    • You run out of available RAM, leading the software to crash
    • The timing is altered by too long operations during the SPI interrupts 

    To further debug and identify the issue, I would recommend to connect the debugger to a device that has crashed (see here). You can then use the ROV to check the state of the heap and stacks (see here). Last but not least, getting a sense of where the program is crashed could help you, either to recover (e.g. triggering a reset), or to have more insights to debug.

    I hope this will help, let us know if we can further help,

    Best regards,