The problem occurs when i do NOT create a task pinned to a core.
Specifically the analogPollTask.
When i compile without it, i get resets every 3-4 seconds.
Plus for some reason when using TFT_eSPI (which i have to use) the debug output is complete gibberish so i have no idea what is going on.
In the Arduino environment you should always pin the task to a core as the Arduino's main task is also pinned.
You don't ask a question. You don't describe the problem in detail (does it occur if you start no additional task, if you don't start one specific task?). Is the NOT bound to the "pinned" word or to the "create" word (which would mean you do absolutely nothing, which doesn't make sense).
I'd guess you have to post your complete code to analyze the problem, as multitasking problems often are race conditions and they can originate from any code part.
In the Arduino environment you should always pin the task to a core as the Arduino's main task is also pinned
I delete the main loop task as it is shown in Main: vTaskDelete(NULL);
To my understanding this is what this line of code does.
You don't describe the problem in detail (does it occur if you start no additional task, if you don't start one specific task?)
The problem (getting resets every 3-4 seconds) occurs when i do NOT create the analogPollTask.
Is the NOT bound to the "pinned" word or to the "create" word
Since "NOT" is just before "create", it is bound to the word "create".
I'd guess you have to post your complete code to analyze the problem, as multitasking problems often are race conditions and they can originate from any code part.
Race conditions are presumably prevented since a semaphore is utilized, and in any case something like that would make sense if it occurred when I instantiated the analogPollTask, not when I omitted it completely from the codebase.
You don't ask a question
The question is: How do i avoid crashing the system, which i believe is deducible from what i provided. Being pedantic for the sake of being pedantic makes no sense. This is not stackoverflow