Здравствуйте!
Visual Studio Code, расширение ESP-IDF для VSCode, ESP-IDF 6.02, плата ESP32-S3-N16R8. При создание образа прошивки появляются следующие ошибки:
excess elements in struct initializer [-Werror]
unknown type name 'usb_host_msc_event_t'; did you mean 'usb_host_client_event_t'?
request for member 'event' in something not a structure or union
'USB_HOST_MSC_EVENT_DEV_ATTACHED' undeclared (first use in this function)
request for member 'dev_handle' in something not a structure or union
'USB_HOST_MSC_EVENT_DEV_DETACHED' undeclared (first use in this function); did you mean 'USB_HOST_CLIENT_EVENT_DEV_RESUMED'?
'USB_HOST_MSC_EVENT_ENUMERATED' undeclared (first use in this function)
'usb_host_config_t' has no member named 'dev_strategy'
'USB_HOST_DEVICE_STRATEGY_AUTO' undeclared (first use in this function)
'usb_host_config_t' has no member named 'd_plus_gpio'
'GPIO_NUM_20' undeclared (first use in this function)
'usb_host_config_t' has no member named 'd_minus_gpio'
'GPIO_NUM_19' undeclared (first use in this function)
'usb_host_config_t' has no member named 'host_controller'
'USB_OTG_HS_CONTROLLER' undeclared (first use in this function)
'usb_host_config_t' has no member named 'vbus_monitor_gpio'
excess elements in struct initializer [-Werror]
'usb_host_config_t' has no member named 'task_stack_size'
excess elements in struct initializer [-Werror]
'usb_host_config_t' has no member named 'task_core_id'
unknown type name 'usb_host_msc_config_t'; did you mean 'usb_host_config_t'?
field name not in record or union initializer
initialization of 'int' from 'void (*)(const int *)' makes integer from pointer without a cast [-Wint-conversion]
implicit declaration of function 'usb_host_msc_install'; did you mean 'usb_host_uninstall'? [-Wimplicit-function-declaration]
Предложения по исправлению этих ошибок ИИ не привели к результатам. В документации Espressif я также не нашел описание параметров структур, которые нужно использовать для работы с USB. Может быть кто-нибудь пытался решить эту же задачу и поможет исправить ошибки?
Visual Studio Code, расширение ESP-IDF для VSCode, ESP-IDF 6.02, плата ESP32-S3-N16R8. При создание образа прошивки появляются следующие ошибки:
excess elements in struct initializer [-Werror]
unknown type name 'usb_host_msc_event_t'; did you mean 'usb_host_client_event_t'?
request for member 'event' in something not a structure or union
'USB_HOST_MSC_EVENT_DEV_ATTACHED' undeclared (first use in this function)
request for member 'dev_handle' in something not a structure or union
'USB_HOST_MSC_EVENT_DEV_DETACHED' undeclared (first use in this function); did you mean 'USB_HOST_CLIENT_EVENT_DEV_RESUMED'?
'USB_HOST_MSC_EVENT_ENUMERATED' undeclared (first use in this function)
'usb_host_config_t' has no member named 'dev_strategy'
'USB_HOST_DEVICE_STRATEGY_AUTO' undeclared (first use in this function)
'usb_host_config_t' has no member named 'd_plus_gpio'
'GPIO_NUM_20' undeclared (first use in this function)
'usb_host_config_t' has no member named 'd_minus_gpio'
'GPIO_NUM_19' undeclared (first use in this function)
'usb_host_config_t' has no member named 'host_controller'
'USB_OTG_HS_CONTROLLER' undeclared (first use in this function)
'usb_host_config_t' has no member named 'vbus_monitor_gpio'
excess elements in struct initializer [-Werror]
'usb_host_config_t' has no member named 'task_stack_size'
excess elements in struct initializer [-Werror]
'usb_host_config_t' has no member named 'task_core_id'
unknown type name 'usb_host_msc_config_t'; did you mean 'usb_host_config_t'?
field name not in record or union initializer
initialization of 'int' from 'void (*)(const int *)' makes integer from pointer without a cast [-Wint-conversion]
implicit declaration of function 'usb_host_msc_install'; did you mean 'usb_host_uninstall'? [-Wimplicit-function-declaration]
Предложения по исправлению этих ошибок ИИ не привели к результатам. В документации Espressif я также не нашел описание параметров структур, которые нужно использовать для работы с USB. Может быть кто-нибудь пытался решить эту же задачу и поможет исправить ошибки?
