mirror of
https://github.com/espressif/esp-idf
synced 2025-03-09 17:19:09 -04:00
examples: re-enable system/console/advanced_usb_cdc for ESP32-S3
Closes https://github.com/espressif/esp-idf/issues/9364
This commit is contained in:
parent
28e6b3565f
commit
3fca37dbcf
@ -21,10 +21,8 @@ examples/system/console/advanced:
|
|||||||
reason: lack of runners
|
reason: lack of runners
|
||||||
|
|
||||||
examples/system/console/advanced_usb_cdc:
|
examples/system/console/advanced_usb_cdc:
|
||||||
enable:
|
disable:
|
||||||
- if: IDF_TARGET == "esp32s2"
|
- if: SOC_USB_PERIPH_NUM == 0
|
||||||
temporary: true
|
|
||||||
reason: the other targets are not tested yet
|
|
||||||
|
|
||||||
examples/system/console/basic:
|
examples/system/console/basic:
|
||||||
disable:
|
disable:
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
| Supported Targets | ESP32-S2 |
|
| Supported Targets | ESP32-S2 | ESP32-S3 |
|
||||||
| ----------------- | -------- |
|
| ----------------- | -------- | -------- |
|
||||||
|
|
||||||
# USB_OTG CDC Console Example
|
# USB_OTG CDC Console Example
|
||||||
|
|
||||||
@ -14,7 +14,11 @@ The interactive shell implemented in this example contains a wide variety of com
|
|||||||
|
|
||||||
### Hardware Required
|
### Hardware Required
|
||||||
|
|
||||||
This example can run on an ESP32-S2 development board, with a USB cable connected to GPIO19 and GPIO20.
|
This example can run on an ESP32-S2 or ESP32-S3 development board with USB port attached to the built-in USB_OTG controller.
|
||||||
|
|
||||||
|
For more details about connecting and configuring USB_OTG (including pin numbers), see the IDF Programming Guide:
|
||||||
|
* [ESP32-S2 USB_OTG](https://docs.espressif.com/projects/esp-idf/en/stable/esp32s2/api-guides/usb-otg-console.html)
|
||||||
|
* [ESP32-S3 USB_OTG](https://docs.espressif.com/projects/esp-idf/en/stable/esp32s3/api-guides/usb-otg-console.html)
|
||||||
|
|
||||||
### Build and Flash
|
### Build and Flash
|
||||||
|
|
||||||
@ -36,7 +40,7 @@ idf.py -p PORT flash
|
|||||||
|
|
||||||
#### Flashing the project for the first time using USB
|
#### Flashing the project for the first time using USB
|
||||||
|
|
||||||
We can also use the ESP32-S2 built-in USB bootloader to flash the program for the first time.
|
We can also use the built-in USB bootloader in the ESP chip to flash the program for the first time.
|
||||||
|
|
||||||
1. Connect the development board using a USB breakout cable to the computer.
|
1. Connect the development board using a USB breakout cable to the computer.
|
||||||
2. Put the chip into bootloader (download) mode, by holding "Boot" button (connected to GPIO0) and pressing "Reset" button.
|
2. Put the chip into bootloader (download) mode, by holding "Boot" button (connected to GPIO0) and pressing "Reset" button.
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
# Build for ESP32-S2 by default
|
|
||||||
CONFIG_IDF_TARGET="esp32s2"
|
|
||||||
|
|
||||||
# Enable USB console
|
# Enable USB console
|
||||||
CONFIG_ESP_CONSOLE_USB_CDC=y
|
CONFIG_ESP_CONSOLE_USB_CDC=y
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user