esp32-s3编译例程“tusb_sample_descriptor”报错如何解决?

wanzhilin88
Posts: 25
Joined: Sat Jan 08, 2022 3:11 am

esp32-s3编译例程“tusb_sample_descriptor”报错如何解决?

Postby wanzhilin88 » Wed Jan 26, 2022 7:29 am

你好,
当我选择芯片esp32-s3然后编译例程:esp-idf\examples\get-started\tusb_sample_descriptor
编译不通过。有如下错误:
esp-idf\components\tinyusb\tinyusb\examples\device\audio_4_channel_mic\src\tusb_config.h:39:2: error:
#error CFG_TUSB_MCU must be defined

esp-idf/components/tinyusb/additions/include/tusb_config.h:56: warning: "CFG_TUSB_RHPORT0_MODE" redefined
#define CFG_TUSB_RHPORT0_MODE OPT_MODE_DEVICE | OPT_MODE_FULL_SPEED

esp-idf\components\tinyusb\tinyusb\examples\device\audio_4_channel_mic\src\tusb_config.h:45: note: this is the location of the previous definition
#define CFG_TUSB_RHPORT0_MODE OPT_MODE_DEVICE

esp-idf/components/tinyusb/additions/include/tusb_config.h:57: warning: "CFG_TUSB_OS" redefined
#define CFG_TUSB_OS OPT_OS_FREERTOS

esp-idf/components/tinyusb/additions/include/tusb_config.h:89: warning: "CFG_TUD_CDC" redefined
#define CFG_TUD_CDC CONFIG_TINYUSB_CDC_ENABLED

esp-idf\components\tinyusb\tinyusb\examples\device\audio_4_channel_mic\src\tusb_config.h:83: note: this is the location of the previous definition
#define CFG_TUD_CDC 0

esp-idf\components\tinyusb\tinyusb\examples\device\audio_4_channel_mic\src\tusb_config.h:84: note: this is the location of the previous definition
#define CFG_TUD_MSC 0

esp-idf/components/tinyusb/additions/include/tusb_config.h:91: warning: "CFG_TUD_HID" redefined
#define CFG_TUD_HID CONFIG_TINYUSB_HID_ENABLED

esp-idf/components/tinyusb/additions/include/tusb_config.h:92: warning: "CFG_TUD_MIDI" redefined
#define CFG_TUD_MIDI CONFIG_TINYUSB_MIDI_ENABLED

不知道该如何解决呢?求助!

ESP_ICY
Posts: 404
Joined: Mon Aug 23, 2021 11:10 am

Re: esp32-s3编译例程“tusb_sample_descriptor”报错如何解决?

Postby ESP_ICY » Wed Jan 26, 2022 11:35 am

我这边编译时没有问题的,麻烦提供一下你这边使用的 idf 版本

Who is online

Users browsing this forum: No registered users and 29 guests