Page 1 of 1

xSemaphoreCreateBinary does not work across two cpu

Posted: Tue Feb 05, 2019 10:52 am
by snahmad75
Hi,

I am running this example

https://github.com/espressif/esp-idf/bl ... ple_main.c

Driver uninstalled never gets executed.

If I use CPU=1

xTaskCreatePinnedToCore(tx_task, "CAN_tx", 4096, NULL, TX_TASK_PRIO, NULL, 1);
xTaskCreatePinnedToCore(ctrl_task, "CAN_ctrl", 4096, NULL, CTRL_TASK_PRIO, NULL, 1);

It works. but with same cpu = 0 . This examples also does not work.

xTaskCreatePinnedToCore(tx_task, "CAN_tx", 4096, NULL, TX_TASK_PRIO, NULL, 0);
xTaskCreatePinnedToCore(ctrl_task, "CAN_ctrl", 4096, NULL, CTRL_TASK_PRIO, NULL, 0);


Any idea?

Re: xSemaphoreCreateBinary does not work across two cpu

Posted: Thu Feb 07, 2019 5:47 am
by ESP_Sprite
What esp-idf version do you use?

Re: xSemaphoreCreateBinary does not work across two cpu

Posted: Thu Feb 07, 2019 10:01 am
by snahmad75
2 months old master branch version=3.2