External vs internal ram management
Posted: Wed Jun 16, 2021 2:15 pm
Hi
I'm trying to add the esp32-camera to an existing project.
The camera example from esp-who works on one side (with external ram), and my existing project also works on its side (without external ram).
Now the problem I have is I run out of memory when trying to have them both in the same firmware.
Is there a way to tell all the standard libraries (wifi/mqtt/http/etc..., which is 90% of the existing app) to use the internal memory and reserve the external memory to the camera management (framebuffers mainly) only?
It seems that once the external ram is enabled everything goes to the external memory that can't seem to handle everything at once, while my existing project works perfectly on internal memory alone.
I'm trying to add the esp32-camera to an existing project.
The camera example from esp-who works on one side (with external ram), and my existing project also works on its side (without external ram).
Now the problem I have is I run out of memory when trying to have them both in the same firmware.
Is there a way to tell all the standard libraries (wifi/mqtt/http/etc..., which is 90% of the existing app) to use the internal memory and reserve the external memory to the camera management (framebuffers mainly) only?
It seems that once the external ram is enabled everything goes to the external memory that can't seem to handle everything at once, while my existing project works perfectly on internal memory alone.