esp32-cam driver

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
uraich
Posts: 56
Joined: Tue Mar 26, 2019 12:24 pm

esp32-cam driver

Post by uraich » 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?

acute
Posts: 6
Joined: Sat Jan 23, 2021 10:59 pm

Re: esp32-cam driver

Post by acute » Tue Jul 26, 2022 11:43 pm

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.

TRMrNo
Posts: 15
Joined: Fri May 28, 2021 9:24 pm

Re: esp32-cam driver

Post by TRMrNo » Sat Aug 06, 2022 11:44 am

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

uraich wrote:
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?

Post Reply