xTaskCreatePinnedToCore not execute on core1

maggymtac
Posts: 30
Joined: Wed Aug 04, 2021 7:47 am

xTaskCreatePinnedToCore not execute on core1

Postby maggymtac » Fri Oct 01, 2021 8:18 pm

Dear,

I would like to use core1 and core2 with Thread with ESP32-C3, i define:

Code: Select all

  xTaskCreatePinnedToCore(
                    Task1code,   /* Task function. */
                    "Task1",     /* name of task. */
                    10000,       /* Stack size of task */
                    NULL,        /* parameter of the task */
                    1,           /* priority of the task */
                    &Task1,      /* Task handle to keep track of created task */
                    0);          /* pin task to core 0 */  
                    
                      xTaskCreatePinnedToCore(
                    Task2code,   /* Task function. */
                    "Task2",     /* name of task. */
                    10000,       /* Stack size of task */
                    NULL,        /* parameter of the task */
                    1,           /* priority of the task */
                    &Task2,      /* Task handle to keep track of created task */
                    1);          /* pin task to core 1 */  

Task1 and Task2 is executed on core0, have you an idea of my problem?

Thank you.

chegewara
Posts: 2364
Joined: Wed Jun 14, 2017 9:00 pm

Re: xTaskCreatePinnedToCore not execute on core1

Postby chegewara » Fri Oct 01, 2021 11:30 pm


maggymtac
Posts: 30
Joined: Wed Aug 04, 2021 7:47 am

Re: xTaskCreatePinnedToCore not execute on core1

Postby maggymtac » Sat Oct 02, 2021 9:37 am

chegewara wrote:
Fri Oct 01, 2021 11:30 pm
https://www.espressif.com/en/news/ESP32_C3

One clue: single core
Ok i understand now the problem.

Thank you.

Who is online

Users browsing this forum: No registered users and 80 guests