Have simplified problem as follows: Create and run two simple tasks with for loops and vTaskDelays from a file called main.cpp. When I try to create and execute those same tasks from within an object, the program goes off into the weeds. Note I’m able to to create the tasks and within certain conditions they will run. If appears that if I make any API call from within a task or the scheduler runs, that that is when the program fails.
For example task A has priority 2, task B has priority 3. If I have a while loop within Task B that updates a counter, all works fine. If I add a vTaskDelay() within that loop, the program fails when this function is entered.
If I create Task A and B both with the same priority, the programs fails. I can put a breakpoint in the tasks and one task will start, my guess is that when the scheduler goes to start the other task, the program fails.
Before I go doing into this much further to find out where I screwed up things, wondering if there’s something fundamentally wrong with creating tasks from within an object.