[Q] pp 1 in the log and xTaskCreatePinnedToCore opposite to xTaskCreate

User avatar
rudi ;-)
Posts: 1214
Joined: Fri Nov 13, 2015 3:25 pm

[Q] pp 1 in the log and xTaskCreatePinnedToCore opposite to xTaskCreate

Postby rudi ;-) » Tue Sep 27, 2016 7:54 pm

hi guys
[no hurry]


determines it is written somewhere,
determined we known this before,
I'm sorry if I have to ask now:

which means in the log


pp 1


second is:
have we a list about priority tasks and what meaning they have and when each should be used
example
xTaskCreatePinnedToCore .|. xTaskCreate

thank you
best wishes
rudi;-)
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

ESP_Sprite
Posts: 1762
Joined: Thu Nov 26, 2015 4:08 am

Re: [Q] pp 1 in the log and xTaskCreatePinnedToCore opposite to xTaskCreate

Postby ESP_Sprite » Wed Sep 28, 2016 2:02 am

I think the 'pp 1' is a debugging line that accidentally ended up in master. One of the next pushes will probably kill it.

xTaskCreatePinnedToCore can expicitly create a task that runs on one of the two CPU cores (last argument = 0 or 1) or without any affinity (=the core that has the least work to do will pick up the task). For now, pinning a task to a core probably is the best thing to do, we still have one or two small issues with tasks without affinity. I think xTaskCreate creates tasks without affinity.

clarkster
Posts: 46
Joined: Sat Sep 23, 2017 12:36 pm

Re: [Q] pp 1 in the log and xTaskCreatePinnedToCore opposite to xTaskCreate

Postby clarkster » Mon Apr 23, 2018 5:00 pm

@ESP_Sprite
Should we still default to pinning to core?

ESP_Sprite
Posts: 1762
Joined: Thu Nov 26, 2015 4:08 am

Re: [Q] pp 1 in the log and xTaskCreatePinnedToCore opposite to xTaskCreate

Postby ESP_Sprite » Tue Apr 24, 2018 1:08 am

As far as I'm aware you should happily be able to create 'floating' tasks. Only exception are tasks that use the FPU: because we don't support moving the FPU registers around (because of some innate details on how the Xtensa coprocessor registers are handled) these will get automatically pinned to the core they run on when they execute their first FPU instruction.

Who is online

Users browsing this forum: mikemoy and 6 guests