static memory I2C?
Posted: Fri Oct 01, 2021 12:12 am
Is there an alternate esp32 I2C driver that does not use malloc?
we have an ESP32 application with contained memory and it seems to fail sometimes because of malloc failing to allocate memory for I2C.
I haven't looked deeper to see if this is a heap fragmentation issue (is that even a thing in FreeRTOS?), memory leak, etc. But given the heavy use of the I2C (dedicated task), it seems more reliable to use an MCU based I2C driver as opposed to RTOS.
short of bit-banging a soft I2C driver, looking for a tested alternate esp32 I2C driver.
we have an ESP32 application with contained memory and it seems to fail sometimes because of malloc failing to allocate memory for I2C.
I haven't looked deeper to see if this is a heap fragmentation issue (is that even a thing in FreeRTOS?), memory leak, etc. But given the heavy use of the I2C (dedicated task), it seems more reliable to use an MCU based I2C driver as opposed to RTOS.
short of bit-banging a soft I2C driver, looking for a tested alternate esp32 I2C driver.