how to make an application run on a core

phuockal
Posts: 5
Joined: Tue Oct 31, 2017 4:23 am

how to make an application run on a core

Postby phuockal » Tue Oct 31, 2017 4:38 am

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

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

Re: how to make an application run on a core

Postby ESP_Sprite » Tue Oct 31, 2017 4:59 pm

You can use xCreateTaskPinnedToCore(...., 1) to start a task on the app CPU.

phuockal
Posts: 5
Joined: Tue Oct 31, 2017 4:23 am

Re: how to make an application run on a core

Postby phuockal » Wed Nov 01, 2017 2:11 am

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

Who is online

Users browsing this forum: No registered users and 53 guests