Skip to content

Investigate UART/CDC in all SoC #6765

Closed
@SuGlider

Description

@SuGlider

@SuGlider I've now tested ESP32 Arduino 2.0.3 with a number of ESP32 boards, using a benchmark that involves uploading a program of about 1400 characters to my uLisp interpreter and then running it. The results are as follows:

Board Upload using UART Upload using USB CDC Benchmark
Adafruit Feather ESP32 OK Not available 8.0 s
ESP32-S2-Soala-1 OK Not available 5.7 s
Adafruit Feather ESP32-S2 Not available OK 2.7 s
Adafruit QT-PY ESP32-S2 Not available OK 2.7 s
Unexpected Maker Feather S2 Not available OK 2.7 s
ESP32-S3-DevKitM-1 OK Serial hangs up 6.1 s (USB)
ESP32-C3-DevKit1 OK Not available 7.8 s
Adafruit QT-PY ESP32-C3 Not available Serial hangs up ??

Key observations:

  • Serial using UART works fine on all boards that support it.
  • Serial using USB CDC works fine on ESP32-S2, fails on ESP32-S3 and ESP32-C3.
  • Benchmark seems to run much slower if I've connected to the MCU via UART (eg 5.7s) compared to connecting to the same MCU via USB CDC (2.7s).

Any thoughts about why USB CDC is now OK on ESP32-S2 but not ESP32-S3 or ESP32-C3?

Also, any idea where there's such a difference in performance? My benchmark isn't making use of serial, except to print the result at the end.

Originally posted by @technoblogy in #6221 (comment)

Activity

self-assigned this
on May 17, 2022
SuGlider

SuGlider commented on May 17, 2022

@SuGlider
CollaboratorAuthor

@technoblogy
Let's continue it here.

technoblogy

technoblogy commented on May 17, 2022

@technoblogy

Thanks.

modified the milestone: 2.1.0 on May 18, 2022
egnor

egnor commented on Jul 14, 2022

@egnor
Contributor

probably unrelated? espressif/esp-idf#9318 (at a guess, that bug is user-app-specific, this bug is Arduino-runtime-specific)

SuGlider

SuGlider commented on Jul 14, 2022

@SuGlider
CollaboratorAuthor

Thanks @egnor for the reference. I'll take it into consideration for the S3 USB Serial JTAG interface.

added this to the 2.1.0 milestone on Jul 15, 2022
SuGlider

SuGlider commented on Nov 20, 2022

@SuGlider
CollaboratorAuthor

@ALL

Examples about UART controlling are at PR #7412

removed this from the 2.0.6 milestone on Nov 30, 2022

3 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Investigate UART/CDC in all SoC · Issue #6765 · espressif/arduino-esp32