Re: Bluetooth, multiple tasks and forwarding events

2016-07-12 Thread Christopher Collins
On Tue, Jul 12, 2016 at 09:10:41AM -0700, Christopher Collins wrote: > I believe I have reproduced this issue. I'll send an update when I > have more information. It appears my exuberance at finding a bug exceeds my skills as a debugger. I thought I was seeing the behavior you observed, but it

Re: Bluetooth, multiple tasks and forwarding events

2016-07-05 Thread Wayne Keenan
Hi Chris, Thanks for the clarification. What I'm seeing in the 2 task case is that the device hangs when a BLE GATT request comes in. I need to put together a (relatively) simple case as a fair chunk of RAM is being used up even before adding a 2nd task; I thought I was keeping it within limits

Re: Bluetooth, multiple tasks and forwarding events

2016-07-05 Thread Christopher Collins
On Mon, Jul 04, 2016 at 02:48:30PM +0100, Wayne Keenan wrote: > Hi, > > I have 2 tasks: > > > Task 1 > > Is the 'app_task_handler' > It is the 'host parent task' that calls 'bl_hs_start' and > It dispatches the OS_EVENT_T_TIMER events. > That's all. > > Task 2 > > Makes calls to

Bluetooth, multiple tasks and forwarding events

2016-07-04 Thread Wayne Keenan
Hi, I have 2 tasks: Task 1 Is the 'app_task_handler' It is the 'host parent task' that calls 'bl_hs_start' and It dispatches the OS_EVENT_T_TIMER events. That's all. Task 2 Makes calls to 'ble_gatts_register_svcs' and 'ble_gap_adv_start' Registers callbacks that will be dispatched by