Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wroom32 #416

Closed
tcpipchip opened this issue Jul 7, 2022 · 8 comments
Closed

Wroom32 #416

tcpipchip opened this issue Jul 7, 2022 · 8 comments

Comments

@tcpipchip
Copy link

Will this example works on Wroom 32 ?
(without psram)
?

@tcpipchip
Copy link
Author

tcpipchip commented Jul 8, 2022

How can i disable to use PSRAM on WROOM and use to low resolution image capture ?

See my execution connecting the WROOM to OV5640

I (233) cpu_start: Application information:
I (237) cpu_start: Project name: camera_example
I (243) cpu_start: App version: v2.0.1-3-g8575d75
I (249) cpu_start: Compile time: Jul 8 2022 09:25:44
I (255) cpu_start: ELF file SHA256: 5681d872e29f767a...
I (261) cpu_start: ESP-IDF: v4.4
I (266) heap_init: Initializing. RAM available for dynamic allocation:
I (273) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (279) heap_init: At 3FFB3E70 len 0002C190 (176 KiB): DRAM
I (285) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (291) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (298) heap_init: At 4008CF80 len 00013080 (76 KiB): IRAM
I (305) spi_flash: detected chip: generic
I (309) spi_flash: flash io: qio
I (313) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (328) gpio: GPIO[25]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:2
I (337) cam_hal: cam init ok
I (341) sccb: pin_sda 26 pin_scl 27
I (355) camera: Detected camera at address=0x3c
I (356) ov3660: Mismatch PID=0x5640
I (358) camera: Detected OV5640 camera
I (358) camera: Camera PID=0x5640 VER=0x00 MIDL=0x00 MIDH=0x00
I (1057) esp32 ll_cam: node_size: 2560, nodes_per_line: 1, lines_per_node: 1, dma_half_buffer_min: 2560, dma_half_buffer: 15360, lines_per_half_buffer: 6, dma_buffer_size: 30720, image_size: 153600
I (1064) cam_hal: buffer_size: 30720, half_buffer_size: 15360, node_buffer_size: 2560, node_cnt: 12, total_cnt: 10
I (1075) cam_hal: Allocating 153600 Byte frame buffer in PSRAM
E (1081) cam_hal: cam_dma_config(293): frame buffer malloc failed
E (1088) cam_hal: cam_config(377): cam_dma_config failed
E (1094) camera: Camera config failed with error 0xffffffff
E (1101) example:take_picture: Camera Init Failed

@github-actions
Copy link

github-actions bot commented Sep 7, 2022

This issue appears to be stale. Please close it if its no longer valid.

@jayavanth
Copy link

Had the same issue. Even if I had disabled PSRAM in the config I was getting this error. I added this line to camera_config and I was able to get past this issue

.fb_location = CAMERA_FB_IN_DRAM,

However, I'm facing a new issue

E (1067) sccb: W [3808]=01 0 fail

E (1068) ov5640: Setting framesize to: 320x240 failed
E (1073) camera: Failed to set frame size
E (1078) example:take_picture: Camera Init Failed

I'm not sure if this problem is related to the PSRAM

@jayavanth
Copy link

Solved it! After doing the above, just had to lower the frequency .xclk_freq_hz = 15000000. This is for Waveshare OV5640 Camera Board (B), so it might be different for your board

@tcpipchip
Copy link
Author

Are you using esp32 without psram ?

@jayavanth
Copy link

Using ESP32-S3 without PSRAM (ESP32-S3-DevKitC-1-N8)

@tcpipchip
Copy link
Author

Will work on esp32 wroom kit ?

@jayavanth
Copy link

@tcpipchip I don't have a ESP32 WROOM kit, but see if you can give it a try. It might work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants