If I2C protected again multible access

arnold.braun@gmx.de
Posts: 26
Joined: Wed Dec 20, 2017 9:39 am

If I2C protected again multible access

Postby arnold.braun@gmx.de » Sat May 11, 2019 3:11 am

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

arnold.braun@gmx.de
Posts: 26
Joined: Wed Dec 20, 2017 9:39 am

Re: If I2C protected again multible access

Postby arnold.braun@gmx.de » Sat May 11, 2019 3:58 pm

i´m using semaphore now and my problem is gone

User avatar
fly135
Posts: 606
Joined: Wed Jan 03, 2018 8:33 pm
Location: Orlando, FL

Re: If I2C protected again multible access

Postby fly135 » Mon May 13, 2019 7:08 pm

I believe the I2C is protected by a mutex for multi-threaded access, and a semaphore should not be necessary.

Who is online

Users browsing this forum: No registered users and 128 guests