DMA interrupt allocation of camera failed

pandian.nano
Posts: 2
Joined: Fri Apr 22, 2022 4:10 am

DMA interrupt allocation of camera failed

Postby pandian.nano » Thu Jan 04, 2024 2:56 am

I used the component library of esp32-camera(v2.0.6) on esp32s3(M5CoreS3) and added esp idf v5.0.2 with micropython v1.21.0. it is our projects

Problems:
DMA interrupt allocation of camera failed will occur. There might be a problem with the DMA interrupt configuration but I don't know how to fix it.

Debug Message:
D (19703) spi_master: device5 locked the bus
D (19735) spi_master: device5 release bus
D (19736) spi_master: device5 locked the bus
D (19768) spi_master: device5 release bus
I (19768) s3 ll_cam: DMA Channel=4
I (19769) cam_hal: cam init ok
D (19769) camera: Initializing SCCB
I (19772) sccb: pin_sda 12 pin_scl 11
I (19777) sccb: sccb_i2c_port=1
D (19781) intr_alloc: Connected src 43 to int 23 (cpu 0)
D (19786) camera: Searching for camera address
I (19800) camera: Detected camera at address=0x21
I (19801) ov7725: Mismatch PID=0xe8
I (19802) ov7760: Mismatch PID=0xe8
I (19805) gc032a: Mismatch PID=0xf302
I (19809) camera: Detected GC0308 camera
D (19813) gc0308: GC0308 Attached
I (19816) camera: Camera PID=0x9b VER=0x00 MIDL=0x00 MIDH=0x00
D (19823) camera: Doing SW reset of sensor
D (20011) gc0308: Camera defaults loaded
I (20091) s3 ll_cam: node_size: 3840, nodes_per_line: 1, lines_per_node: 6
I (20091) s3 ll_cam: dma_half_buffer_min: 3840, dma_half_buffer: 15360, lines_per_half_buffer: 24, dma_buffer_size: 30720
I (20099) cam_hal: buffer_size: 30720, half_buffer_size: 15360, node_buffer_size: 3840, node_cnt: 8, total_cnt: 10
I (20110) cam_hal: Allocating 153600 Byte frame buffer in PSRAM
I (20117) cam_hal: Allocating 153600 Byte frame buffer in PSRAM
E (20124) s3 ll_cam: DMA interrupt allocation of camera failed
E (20130) cam_hal: cam_config(401): cam intr alloc failed
E (20136) camera: Camera config failed with error 0xffffffff
E (20143) m5camera: Camera init Failed
E (20148) m5camera: Camera capture Failed
E (20152) m5camera: Camera capture Failed
E (20157) m5camera: Camera capture Failed
E (20161) m5camera: Camera capture Failed
E (20166) m5camera: Camera capture Failed
E (20171) m5camera: Camera capture Failed

file name(.c) function name sub-function name
esp_camera.c --> esp_camera_init() --> cam_config()
cam_hal.c --> cam_config() --> ll_cam_init_isr()
ll_cam.c --> ll_cam_init_isr() --> esp_intr_alloc_intrstatus()
intr_alloc.c --> esp_intr_alloc_intrstatus() --> get_available_int() [There are problems with this function]

Who is online

Users browsing this forum: ignisuti and 117 guests