esp32-cam driver
Posted: Sun Sep 19, 2021 10:14 am
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?
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?