ESP32-based boards: how to recompile camera driver?

Hello everyone!

I have couple of ideas on how to improve esp_camera code. That one, used by ESP32Cam examples.

I think, there is a room for improvements, namely - cam_ll_memcpy(). But to experiment with it I would like to recompile it. However it is a part of ESP-IDF, which comes precompiled. Is there a way to somehow compile & use my (modified) code instead of binary lib?

May be sources of esp_camera can be somehow be placed in a sketch directory, with manually created sdkconfig.h?

Expert opinion needed.

PS: may be I can just override esp_camera’s functions using -lWrap linker/compiler flags?

I use the ESP32 CAM code a lot. Where is this binary?

Github for camera code is here;

https://github.com/espressif/esp32-camera

Yes, the source code for the ESP-IDF component. Has its own build system.

Now I want to make some changes and use it. How it could be done without recompiling the whole ESP-IDF?

it is installed along with precompiled ESP-IDF libraries. Only Arduino Core is shipped in (and compiled from ) sources.

I used vscode, esp has an extension for their IDF and you can use Arduino as a component.

Then yes, you can recompile everything.

bit of a learning curve but possible..

good luck.. ~q

1 Like

Post #3 has the answer.