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.
static memory I2C?
-
- Posts: 9766
- Joined: Thu Nov 26, 2015 4:08 am
Re: static memory I2C?
FWIW, we're adding support for static memory to ESP-IDF; I'm not sure when that will show up on Github, though.
Re: static memory I2C?
@ESP_Sprite
@vonnieda: Thanks for the link. Will look into it. Was hoping for a cleaner solution, though this by definition is what I asked for
thanks for the heads up. Do you see an issue with using the HAL or LL layer version of I2C?adding support for static memory to ESP-IDF
@vonnieda: Thanks for the link. Will look into it. Was hoping for a cleaner solution, though this by definition is what I asked for
Who is online
Users browsing this forum: ok-home and 70 guests