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/LAUNCHXL-CC2640R2: DEFAULT SPINLOCK! While Calling "SimplePeripheral_performPeriodicTask" Function Frequently

Part Number: LAUNCHXL-CC2640R2

Tool/software: TI-RTOS

My CCS Ver: 8.3.0.00009 

My SDK Ver: 3.10.0.15

Hi,

I try to configure blestack/OAD_Off_Chip example for my project and in my project, for some reason, I need to send lots of data in a small limited time. 

To do that, I wanted to use directly characteristic 4 in that example and I did SIMPLEPROFILE_CHAR4_LEN' s value (it is data len value of characteristic 4) 240 and there was no problem. It worked and I observed 240-len-data on a 3rd party BLE application.

After that, to make it faster, I changed SBP_PERIODIC_EVT_PERIOD variable from 5000 to 100 (in ms).  When I did that, I got spinlock error. If I changed the value to 1000 for example, it worked again but when I tried to make it faster, I got the error.

Also, I tried that; SIMPLEPROFILE_CHAR4_LEN = 32 and SBP_PERIODIC_EVT_PERIOD = 85 (in ms), it worked again.

I think BLE stack was stuck while trying to send lots of data in a small time. But, I did see that; with BTool in OAD process, MCU can send 244 bytes in each 100ms. I just want to get close to this throughput.

Thanks.