Page 1 of 1

If I2C protected again multible access

Posted: Sat May 11, 2019 3:11 am
by arnold.braun@gmx.de
Hello,

i have 3 Task. They all try to access I2C.
Currently if this happen i get
CORRUPT HEAP: Bad head at 0x3ffece18. Expected 0xabba1234 got 0x3ffed320
assertion "head != NULL" failed: file "/Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/heap/multi_heap_poisoning.c", line 214, function: multi_heap_free
abort() was called at PC 0x400f789b on core 1

Do i have to avoid multible access with semaphore ?. Or is this already implemented in I2C driver

thanks

Re: If I2C protected again multible access

Posted: Sat May 11, 2019 3:58 pm
by arnold.braun@gmx.de
i´m using semaphore now and my problem is gone

Re: If I2C protected again multible access

Posted: Mon May 13, 2019 7:08 pm
by fly135
I believe the I2C is protected by a mutex for multi-threaded access, and a semaphore should not be necessary.