# ESP32 IPC

#### Old

github.com/pycom/esp-idf-2.0/blob/master/components/esp32/ipc.c

void esp_ipc_init()
{
s_ipc_mutex = xSemaphoreCreateMutex();
s_ipc_ack = xSemaphoreCreateBinary();
const char* task_names[2] = {"ipc0", "ipc1"};
for (int i = 0; i < portNUM_PROCESSORS; ++i) {
s_ipc_sem[i] = xSemaphoreCreateBinary();
}
}


### Forum 1

ipc1,ipc0 tasks are auxiliary tasks used during flash operations. If code on CPU0 is doing flash operation, then ipc1 task runs for the duration of the operation; and vice versa. In the log you have posted, it says that IDLE task on CPU0 has not been running for a while. It means that the task on CPU0 did not yield to IDLE task for that duration of time. Ipc1 task is running on CPU1, so it is not itself responsible for the problem. It just happens to be running on CPU1 at the moment when the task watchdog is printing this message.

### Forum 2

Task watchdog getting triggered when opening OTA partition #3775

[Switching to thread 9 (Thread 1073446484)]
#0 0x40083df2 in spi_flash_op_block_func (arg=0x0) at esp-idf/components/spi_flash/cache_utils.c:82
#1 0x40082c6a in ipc_task (arg=0x0) at esp-idf/components/esp32/ipc.c:62