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.

CCS: cc2640r2f Multirole DEFAULT SPINLOCK!

Tool/software: Code Composer Studio

Hello.


Again I'm back here with this very sad and bad issue...


I 've modified Multirole example for my appliication.
I need to connect to 4 peripheral devices and 1 central (phone/tablet).
I 've performed all the discovery filter and connection, everything seems working well.
Device with multirole automatically connects to 4 devices and holds connection well.
During some interval it performs reading GATT from devices.
But after some time if connected to from 2 to 4, DEFAULT SPINLOCK appears after unexpected period of time.
Or if I connect to the multirole with phone.

If 4 devices connected and I connect by phone, I get immediately SPINLOCK.
If 3 devices connected and I connect by phone, I get iSPINLOCK at some times, not regularry, can perform some readings and chars cloning.
If 2 devices connected and I connect by phone, again after some time holding connection I get SPINLOCK...

My MAX_BLE_CONNS set to 5 ( as much devices I expect to hold connection with). If I change it to more 6,7,8,
I can't connect to some devices or can't discover service even, while it was discovered on MAX_BLE_CONNS was set to 5.

CACHE_AS_RAM gives no effect.

I 've tried this on all SDK from 1.40 to 3.20.
The most stable work now is on 1.40.
On 3.20 (which is the newest) app can't even discover chars of 1st connected device....Such a strange... Not even read smth and get spinlock...

Please, give me some true recommendations, not about some heap researches and so on, cause I've tried all of this.
I can say even more, increasing stack size for multirole thread more than 100-200 bytes causes unexpected issues on service and params recognition...

I really expect a qualified help... I 've put a lot of time on building pretty robust working project and really get totally confuzed at the end by this spinlock.
It 'll be hard to switch platform now to some equal like nrf52, so I really need your help here!

All my best regards.
Ivan.