shariltumin / esp32-cam-micropython

Micropython esp32-cam
87 stars 28 forks source link

I have problem with main.c #4

Open shownb opened 4 years ago

shownb commented 4 years ago

software: the newest Micropython ESPIDF_SUPHASH_V3 := 143d26aa49df524e10fb8e41a71d12e731b9b71d esp32-camera: https://github.com/tsaarni/esp32-camera-for-micropython (can not use newest esp32-camera from Espressif)

hardware: TTGO Camera Plus 8M spi ram.

if I complied the Micropython like that:

size_t mp_task_heap_size = 2 * 1024 * 1024;
void *mp_task_heap = malloc(mp_task_heap_size);

I can not use camera and webrepl together. it seems like that memory problem.

if I changed the main.c like original.it will be a little bit better.but I if I want to use webrepl,i still need to camera.deinit, otherwise I will halt at webrepl when I enter password.

I expect camera and webrepl work together. I expect even add one more st7789 module.