while loop in app_main, outside freeRTOS task scope

manoj15
Posts: 8
Joined: Mon Apr 22, 2019 6:40 pm

while loop in app_main, outside freeRTOS task scope

Postby manoj15 » Sun Sep 08, 2019 8:55 pm

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

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: while loop in app_main, outside freeRTOS task scope

Postby WiFive » Mon Sep 09, 2019 1:59 am

App_main is already inside a task

manoj15
Posts: 8
Joined: Mon Apr 22, 2019 6:40 pm

Re: while loop in app_main, outside freeRTOS task scope

Postby manoj15 » Mon Sep 09, 2019 5:51 pm

aha where can i read about is ? I want to know how it's being called and what are the parameters


Who is online

Users browsing this forum: No registered users and 412 guests