xSemaphoreCreateBinary does not work across two cpu

snahmad75
Posts: 445
Joined: Wed Jan 24, 2018 6:32 pm

xSemaphoreCreateBinary does not work across two cpu

Postby snahmad75 » Tue Feb 05, 2019 10:52 am

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?

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

Re: xSemaphoreCreateBinary does not work across two cpu

Postby ESP_Sprite » Thu Feb 07, 2019 5:47 am

What esp-idf version do you use?

snahmad75
Posts: 445
Joined: Wed Jan 24, 2018 6:32 pm

Re: xSemaphoreCreateBinary does not work across two cpu

Postby snahmad75 » Thu Feb 07, 2019 10:01 am

2 months old master branch version=3.2

Who is online

Users browsing this forum: Bing [Bot] and 188 guests