乐鑫技术交流
直播中

云中云

8年用户 948经验值
私信 关注
[问答]

USB摄像头例程无法正常运行是什么原因导致的?

使用的开发板:esp32-s2-kaluga-1
运行的示例程序:usb_camera_lcd_display
摄像头无法正常工作,屏幕无法显示摄像头图像。(屏幕已验证可以正常显示运行)
控制台信息输出如下:
ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3ffe6100,len:0x17d8
load:0x4004c000,len:0xcec
load:0x40050000,len:0x2d88
entry 0x4004c230
I (21) boot: ESP-IDF v4.4-dev-2533-g83956ebba-dirty 2nd stage bootloader
I (21) boot: compile time 05:59:40
I (22) boot: chip revision: 0
I (26) qio_mode: Enabling default flash chip QIO
I (31) boot.esp32s2: SPI Speed      : 80MHz
I (36) boot.esp32s2: SPI Mode       : QIO
I (41) boot.esp32s2: SPI Flash Size : 4MB
I (45) boot: Enabling RNG early entropy source...
I (51) boot: Partition Table:
I (54) boot: ## Label            Usage          Type ST Offset   Length
I (62) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (69) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (77) boot:  2 factory          factory app      00 00 00010000 00177000
I (84) boot:  3 storage          Unknown data     01 82 00187000 001f4000
I (92) boot: End of partition table
I (96) esp_image: segment 0: paddr=00010020 vaddr=3f000020 size=0ec20h ( 60448) map
I (115) esp_image: segment 1: paddr=0001ec48 vaddr=3ffbf360 size=013d0h (  5072) load
I (116) esp_image: segment 2: paddr=00020020 vaddr=40080020 size=3dcf0h (253168) map
I (164) esp_image: segment 3: paddr=0005dd18 vaddr=3ffc0730 size=00b64h (  2916) load
I (165) esp_image: segment 4: paddr=0005e884 vaddr=40022000 size=0d354h ( 54100) load
I (182) esp_image: segment 5: paddr=0006bbe0 vaddr=50000000 size=00010h (    16) load
I (189) boot: Loaded app from partition at offset 0x10000
I (189) boot: Disabling RNG early entropy source...
I (204) ca<��f<� �3?��truction cache   : size 8KB, 4Ways, cache line size 32Byte
I (204) cpu_start: Pro cpu up.
I (215) cpu_start: Pro cpu start user code
I (215) cpu_start: cpu freq: 240000000
I (215) cpu_start: Application information:
I (220) cpu_start: Project name:     uvc_mjpeg_lcd
I (226) cpu_start: App version:      1
I (230) cpu_start: Compile time:     Sep 10 2021 11:00:09
I (236) cpu_start: ELF file SHA256:  33a8f8c09e6d4057...
I (242) cpu_start: ESP-IDF:          v4.4-dev-2533-g83956ebba-dirty
I (249) heap_init: Initializing. RAM available for dynamic allocation:
I (256) heap_init: At 3FF9E000 len 00002000 (8 KiB): RTCRAM
I (263) heap_init: At 3FFC1EE0 len 0003A120 (232 KiB): DRAM
I (269) heap_init: At 3FFFC000 len 00003A10 (14 KiB): DRAM
I (275) spi_flash: detected chip: generic
I (280) spi_flash: flash io: qio
I (284) cpu_start: Starting scheduler on PRO CPU.
I (289) spi_bus: SPI2 bus created
I (289) spi_bus: SPI2 bus device added, CS=11 Mode=0 Speed=40000000
I (499) lcd st7789: MADCTL=60
I (499) uvc_demo: Screen name:ST7789 | width:320 | height:240
I (659) UVC_STREAM: UVC Streaming Config Succeed
I (709) UVC_STREAM: UVC Streaming Starting
I (989) UVC_STREAM: line 352 HCD_PORT_EVENT_CONNECTION
I (989) UVC_STREAM: Resetting Port
I (1049) UVC_STREAM: Port=0x3ffe7f78 init succeed
I (1049) UVC_STREAM: Port speed = 1
I (1049) UVC_STREAM: Set Device Addr = 1
I (1049) UVC_STREAM: Set Device Addr Done
I (1049) UVC_STREAM: Set Device Configuration = 1
I (1059) UVC_STREAM: Set Device Configuration Done
I (1059) UVC_STREAM: SET_CUR Probe
I (1069) UVC_STREAM: SET_CUR Probe Done
I (1069) UVC_STREAM: GET_CUR Probe
bmHint: 0001
bFormatIndex: 2
bFrameIndex: 3
dwFrameInterval: 666666
wKeyFrameRate: 0
wPFrameRate: 0
wCompQuality: 0
wCompWindowSize: 0
wDelay: 0
dwMaxVideoFrameSize: 614400
dwMaxPayloadTransferSize: 944
dwClockFrequency: 0
bmFramingInfo: 0
bPreferredVersion: 0
bMinVersion: 0
bMaxVersion: 0
bInterfaceNumber: 0
I (1099) UVC_STREAM: GET_CUR Probe Done, actual_num_bytes:26
I (1109) UVC_STREAM: SET_CUR COMMIT
I (1119) UVC_STREAM: SET_CUR COMMIT Done
I (1119) UVC_STREAM: Set Device Interface = 1, Alt = 3
I (1129) UVC_STREAM: Set Device Interface Done
I (1129) UVC_STREAM: Sample processing task started
I (1189) UVC_STREAM: Camera Start Streaming
                                                                                                                                                                     

回帖(1)

硕达科讯

2024-6-28 16:46:45

1. 硬件问题:请确保您的摄像头和屏幕连接正确,并且摄像头与开发板之间的接口兼容。检查摄像头和屏幕的电源是否正常。

2. 驱动问题:确保您已经正确安装了适用于ESP32-S2的摄像头驱动。如果驱动不兼容或未正确安装,摄像头可能无法正常工作。

3. 示例程序问题:检查示例程序是否适用于您的开发板和摄像头。有时候,示例程序可能需要根据硬件进行一些修改才能正常运行。

4. 配置问题:检查您的开发环境和ESP-IDF配置是否正确。确保您的开发环境支持ESP32-S2,并正确配置了相关的硬件和软件设置。

5. 固件问题:您提到的ESP-IDF版本是v4.4-dev,这是一个开发版本,可能存在一些不稳定因素。尝试使用稳定版本的ESP-IDF,如v4.2或v4.3,看看问题是否得到解决。


举报

更多回帖

发帖
×
20
完善资料,
赚取积分