Statically-Allocated I2C Component
Posted: Mon Sep 06, 2021 8:17 pm
Hey All!
In a recent project, I was having issues with jitter caused by all of the ESP-IDF I2C driver's heap allocations. It looks like there's currently work going into updating this driver to allow static allocation in the ESP-IDF repo, but unfortunately I'm stuck on ESP-IDF 4.3 right now so I can't use it. To work around this, I created a simple (~100loc) component that allows for statically-allocated use of the existing I2C driver. You can find it here https://github.com/therealergo/i2c_esp32_static if that sounds like something you'd find handy.
In a recent project, I was having issues with jitter caused by all of the ESP-IDF I2C driver's heap allocations. It looks like there's currently work going into updating this driver to allow static allocation in the ESP-IDF repo, but unfortunately I'm stuck on ESP-IDF 4.3 right now so I can't use it. To work around this, I created a simple (~100loc) component that allows for statically-allocated use of the existing I2C driver. You can find it here https://github.com/therealergo/i2c_esp32_static if that sounds like something you'd find handy.