espressif / esp-box

The ESP-BOX is a new generation AIoT development platform released by Espressif Systems.
Apache License 2.0
781 stars 183 forks source link

Running Detect and Feed Task on the same core #54

Closed babadue closed 1 year ago

babadue commented 1 year ago

Can you set these two tasks to run on the same core? I have tried either both are on core 0 or core 1, but to no avail.

xTaskCreatePinnedToCore(&feed_Task, "feed", 8 1024, (void)afe_data, 5, NULL, 0); xTaskCreatePinnedToCore(&detect_Task, "detect", 8 1024, (void)afe_data, 5, NULL, 1);

espressif2022 commented 1 year ago

I've tried it, set them on the same core, it ok.

babadue commented 1 year ago

You are right. I got it to work!