Other Parts Discussed in Thread: CC2541
Basically, I've got two OSAL application tasks, and whichever one has the lower priority never seems to process events.
I've got a CC2541 that I'm working with, and I believe my project started life as the SimpleBLEPeripheral. The main application task sets up all the bluetooth stuff and then calls osal_set_event on itself to start advertising after initialization. It was working fine until I added a second application task to handle blinking LEDs and whatnot.
Added the ProcessEvent function to tasksArr[], and added the Init function to osalInitTasks(), making sure they were both in the same order, right above the main application task in priority. Again, at the end of the init function, the task calls osal_set_event on itself to light an LED signifying that the board has started up.
At this point, the LED worked, but bluetooth never started advertising. If I swapped priority on the task list (in both the array and the Init calls), then bluetooth would advertise properly, but the light would never come on. It's not a matter of either task never completing, because the board continues to process events at later times. And since both work on their own, I don't understand why it's like the second one doesn't exist when they're both present in the code.
Can anyone tell me what's going on?