Part Number: BOOSTXL-CC2650MA
Other Parts Discussed in Thread: SYSBIOS
Starting with the updated SPP_BLE_Server example from Github, I have two separate tasks I've added, one of which loops with a variable delay for Task_sleep() blocking it for a bit at the end. Each time through, it checks a static file-scope flag to see if the connection state has changed.
When sppbleserver.c:SPPBLEServer_processStateChangeEvt() gets the GAPROLE_CONNECTED case, it calls a function that sets said flag. Once it does this, the task in question enters a "terminated" state, according to the classic ROV.
I had initially forgotten to make the flag variable volatile, but correcting this didn't help, and the debugger started to complain at breakpoints, "Cortex_M3_0: Error: (Error -1170 @ 0x0) Unable to access the DAP." I also tried queuing the information for better synchronization, but then all I see in the Debug panel when I halt after the "flag" function is called are:
* ti_sysbios_hal_Hwi_HwiProxy_Object__delete__S_mangled__(),
and
* ti_sysbyos_knl_Task_SupportProxy_swap__E__mangled__(),
and it's now SPPBLEServer_taskFxn is the one that's terminated.
Also according to ROV, stackPeak is not exceeding stackSize, so I'm a bit puzzled. Still new to the TI-RTOS environment, so not sure what additional info to provide up front.