Greetings Alice,
I will examine the example you said, thanks, but do you know if it also sends the board to LLS? (I'm curious because that is particulary what I'm looking for: Tickless FreeRTOS and the ability to send the board to LLS);
regarding my three questions:
1) this can now be ignored because of the following answer in 2)
2) I mentioned that I couldn't make to work the hook function from the idle task, I've successfully perfomed that.
The new problem is that, even in such callback (and no current "running" task, all "Suspended" (as seen in the Task List tab) ), when I call my sleep function (which manually takes the board from RUN to VLPR to LLS), then the Tickless functions aren't called (I've tested placing a breakpoint where usually it ended before this callback, and the sentence name was somehow related to Tickless; if I continued step by step, eventually I reached where the portSUPPRESS_TICK_AND_SLEEP() was called).
3) I'm conscious of what you are explaining, thanks, I understood the same from the link I mentioned; the problem is, that after sending all my tasks (in this case, 2) to "suspended" state, the core enters TIckless operation, and I know it is supposed to put a task in "Running" after the amount of Ticks defined in the FreeRTOSConfig.h, which I set to 1 sec; but, running in debug, the program appears to stay for ever in Tickless operation (as it doesn't resume any task), and the only steps (when pressing F6) are related to such Tickless operation.
For further information, one of my two tasks do the following:
void test_task(){
uint16_t counter = 0;
for(;;)
{
PRINTF("\nTEST %d ", counter);
counter++;
vTaskDelay(pdMS_TO_TICKS(1000));
}
}
So, in theory, my program should sleep for 1 sec, and then resume this task (as the other doesn't has a loop, and thus ends, because I delete it with vTaskDelete(NULL) )
Thanks,
Gabriel