Page 1 of 1

how to make an application run on a core

Posted: Tue Oct 31, 2017 4:38 am
by phuockal
Hello friends, experts,

I am using ESP_WROM_32 module with VS code included PlatformIO as the IDE.

As the data sheet, the ESP_WROM_32 has 2 core: 1 core called PRO_CPU and the other called APP_CPU.

For my application, I intend to use PRO_CPU to handle wireless stack such as: Bluetooth, Wifi... and the APP_CPU is used to read sensor, control motor and do some other things.

May I ask in the IDE, how can I configure to do like that.

Best regards,
Phuoc

Re: how to make an application run on a core

Posted: Tue Oct 31, 2017 4:59 pm
by ESP_Sprite
You can use xCreateTaskPinnedToCore(...., 1) to start a task on the app CPU.

Re: how to make an application run on a core

Posted: Wed Nov 01, 2017 2:11 am
by phuockal
Thank you for your reply.
What is the default value for function xCreateTaskPinnedToCore()? Is that core 0 or core 1?
Are there any utility to check what task is running on each core and how many percentage of CPU is used at a time.

Best regards