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
If I2C protected again multible access
-
- Posts: 26
- Joined: Wed Dec 20, 2017 9:39 am
-
- Posts: 26
- Joined: Wed Dec 20, 2017 9:39 am
Re: If I2C protected again multible access
i´m using semaphore now and my problem is gone
Re: If I2C protected again multible access
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 70 guests