Page 1 of 1

while loop in app_main, outside freeRTOS task scope

Posted: Sun Sep 08, 2019 8:55 pm
by manoj15
Hi, I wonder how a non freeRTOS tasks could affect a freeRTOS tasks.

Eg : in app_main() i could write smtg like

xTaskCreate(test_task, "someTasks", 4096, NULL, 5, NULL);

while(1)
{
printf("hello");
}

technically printf should block test_task from running at all ? or how what will happen ?




btw my experience :
I am a firmware coder but all the while been doing with bare-metal way so i have least experience with freeRTOS

Re: while loop in app_main, outside freeRTOS task scope

Posted: Mon Sep 09, 2019 1:59 am
by WiFive
App_main is already inside a task

Re: while loop in app_main, outside freeRTOS task scope

Posted: Mon Sep 09, 2019 5:51 pm
by manoj15
aha where can i read about is ? I want to know how it's being called and what are the parameters

Re: while loop in app_main, outside freeRTOS task scope

Posted: Tue Sep 10, 2019 5:30 am
by WiFive