I need to work via USB with ACM device(GSM).
But I get an error when trying to include header files
"#include "usb/usb_host.h" #include "usb/cdc_acm_host.h
I am using the following project setup and IDF versions
[env:esp32-s3-R2-1]
platform = https://github.com/pioarduino/platform-espressif32/releases/download/53.03.13/platform-espressif32.zip
board = esp32-s3-R2-1
framework = arduino
monitor_speed = 115200
upload_port = COM6
monitor_port = COM6
board_build.mcu = esp32s3
upload_protocol = esptool
board_build.f_cpu = 240000000L
board_build.partitions = partitions.csv
board_build.menuconfig = true
monitor_filters = esp32_exception_decoder
lib_deps =
arduino-libraries/Arduino_JSON @ 0.1.0
esp32async/ESPAsyncWebServer@^3.7.0
The documentation for the IDF 5.3.2 framework contains an API for working with CDC devices, such as the GSM module.
But my framework doesn’t support them for some reason.
Tell me how can I make USB work with the ACM API?
As show here :esp-idf/examples/peripherals/usb/host/cdc/cdc_acm_host/main/usb_cdc_example_main.c at v5.3.2 · espressif/esp-idf · GitHub