I am trying to get the esp32-cam driver to work on mp.
There is a github repository which explains how to do this: https://github.com/lemariva/micropython-camera-driver
When following this with the latest version of mp, I get an error when the driver tries to allocate the frame buffer memory on PSRAM:
I (21283) cam_hal: buffer_size: 32768, half_buffer_size: 4096, node_buffer_size: 2048, node_cnt: 16, total_cnt: 93
I (21283) cam_hal: before heap_caps_calloc, frame_cnt: 1
Guru Meditation Error: Core 0 panic'ed (LoadStoreAlignment). Exception was unhandled.
I see that in sdkconfig.spiram CONFIG_SPIRAM_USE_MEMMAP is set while in sdkconfig.esp32cam you have CONFIG_SPIRAM_USE_MALLOC=y
The firmware.bin included in the repository works fine, however I am not able to re-create me own version from the sources. Did anybody have more success with this than me?
esp32-cam driver
Re: esp32-cam driver
Feels like they updated their repo and have some more instructions. I'm gonna give it a try, although it'd be better to have it in the main project at some point.
Re: esp32-cam driver
Hello, I was able to compile my own without a problem. You can checkout my github link. In addition I have added ST7789 LCD Driver.
https://github.com/e135193/MicroPython-ESP32-CAM
https://github.com/e135193/MicroPython-ESP32-CAM
uraich wrote: ↑Sun Sep 19, 2021 10:14 amI am trying to get the esp32-cam driver to work on mp.
There is a github repository which explains how to do this: https://github.com/lemariva/micropython-camera-driver
When following this with the latest version of mp, I get an error when the driver tries to allocate the frame buffer memory on PSRAM:
I (21283) cam_hal: buffer_size: 32768, half_buffer_size: 4096, node_buffer_size: 2048, node_cnt: 16, total_cnt: 93
I (21283) cam_hal: before heap_caps_calloc, frame_cnt: 1
Guru Meditation Error: Core 0 panic'ed (LoadStoreAlignment). Exception was unhandled.
I see that in sdkconfig.spiram CONFIG_SPIRAM_USE_MEMMAP is set while in sdkconfig.esp32cam you have CONFIG_SPIRAM_USE_MALLOC=y
The firmware.bin included in the repository works fine, however I am not able to re-create me own version from the sources. Did anybody have more success with this than me?