esp-arduino-libs / ESP32_USB_Stream

Arduino library of driving USB stream for the ESP32-S2 and ESP32-S3
Apache License 2.0
38 stars 4 forks source link

Both UVC & UAC getting start doesn't want to compile for ESP32-S3 #2

Closed joyel24 closed 3 months ago

joyel24 commented 4 months ago
Compiling core...
/usr/bin/env bash -c "echo -DARDUINO_CORE_BUILD > '/var/folders/kg/wxdt75kd0lvcb91rmqvck1f40000gn/T/arduino_build_15691/file_opts'"
Using precompiled core: /var/folders/kg/wxdt75kd0lvcb91rmqvck1f40000gn/T/arduino_cache_245035/core/core_4b6716b556e99d089fdbecee560f77aa.a
/usr/bin/env bash -c ": > '/var/folders/kg/wxdt75kd0lvcb91rmqvck1f40000gn/T/arduino_build_15691/file_opts'"
Linking everything together...
/Users/joel/Library/Arduino15/packages/esp32/tools/esp-xs3/2302/bin/xtensa-esp32s3-elf-g++ @/Users/joel/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-442a798083/esp32s3/flags/ld_flags @/Users/joel/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-442a798083/esp32s3/flags/ld_scripts -Wl,--Map=/var/folders/kg/wxdt75kd0lvcb91rmqvck1f40000gn/T/arduino_build_15691/GettingStartUVC.ino.map -L/Users/joel/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-442a798083/esp32s3/lib -L/Users/joel/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-442a798083/esp32s3/ld -L/Users/joel/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-442a798083/esp32s3/qio_qspi -Wl,--wrap=esp_panic_handler -Wl,--start-group /var/folders/kg/wxdt75kd0lvcb91rmqvck1f40000gn/T/arduino_build_15691/sketch/GettingStartUVC.ino.cpp.o /var/folders/kg/wxdt75kd0lvcb91rmqvck1f40000gn/T/arduino_build_15691/libraries/ESP32_USB_STREAM/USB_STREAM.cpp.o /var/folders/kg/wxdt75kd0lvcb91rmqvck1f40000gn/T/arduino_build_15691/libraries/ESP32_USB_STREAM/original/descriptor.c.o /var/folders/kg/wxdt75kd0lvcb91rmqvck1f40000gn/T/arduino_build_15691/libraries/ESP32_USB_STREAM/original/usb_host_helpers.c.o /var/folders/kg/wxdt75kd0lvcb91rmqvck1f40000gn/T/arduino_build_15691/libraries/ESP32_USB_STREAM/original/usb_stream.c.o /var/folders/kg/wxdt75kd0lvcb91rmqvck1f40000gn/T/arduino_cache_245035/core/core_4b6716b556e99d089fdbecee560f77aa.a @/Users/joel/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-442a798083/esp32s3/flags/ld_libs -Wl,--end-group -Wl,-EL -o /var/folders/kg/wxdt75kd0lvcb91rmqvck1f40000gn/T/arduino_build_15691/GettingStartUVC.ino.elf
/Users/joel/Library/Arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: /var/folders/kg/wxdt75kd0lvcb91rmqvck1f40000gn/T/arduino_build_15691/libraries/ESP32_USB_STREAM/original/usb_stream.c.o:(.literal.usb_streaming_start+0x34): undefined reference to `mps_limits_default'
/Users/joel/Library/Arduino15/packages/esp32/tools/esp-xs3/2302/bin/../lib/gcc/xtensa-esp32s3-elf/12.2.0/../../../../xtensa-esp32s3-elf/bin/ld: /var/folders/kg/wxdt75kd0lvcb91rmqvck1f40000gn/T/arduino_build_15691/libraries/ESP32_USB_STREAM/original/usb_stream.c.o:(.literal.usb_streaming_start+0x6c): undefined reference to `mps_limits_bias_rx'
collect2: error: ld returned 1 exit status

Highlights on 2 errors: undefined reference to 'mps_limits_bias_rx' undefined reference to 'mps_limits_default'

Criminal-9527 commented 4 months ago

我也遇到了同样的问题:

undefined reference to `mps_limits_default'
undefined reference to `mps_limits_bias_rx'

我的板子是ESP32-S3-LCD-EV-Board,在usb->start()这个函数调用的时候出现了这个问题 奇怪的是我发现这个问题是在将arduino的开发板管理器中将esp32板子的版本号升级到v3.0.2之后出现的这个问题,之前我用v2.x跑的时候是没问题的,可能是升级后改变了函数接口

Criminal-9527 commented 4 months ago

@alibukharai @Lzw655 ,抱歉以这样的方式at你们,但我真的很需要这个头文件,

joyel24 commented 2 weeks ago

I'll do the same test later with the UVC & UAC getting start example with the same module and same usb peripheral to see how it works now...