Skip to content

ESP32 {S2, S3} CDC and HID stall when using simultaneously #10307

@ChrGri

Description

@ChrGri

Board

ESP32 S3 dev and S2 mini

Device Description

Hardware Configuration

USB-OTG port used

Version

latest master (checkout manually)

IDE Name

PlatformIO

Operating System

Win 11

Flash frequency

PSRAM enabled

yes

Upload speed

Description

This issue was found during investigation of this ticket. I've opened this ticket, to clean up the issue tracking.

The issue is, that when sending signals over CDC (serial data) and HID (game controller output) at the same time, at least one of the channels will stall after a while and therefore isn't sending data to the PC anymore.

The steps to reproduce this issue:

  1. take ESP32 S2 mini or ESP32 S3 (other boards might behave similar)
  2. upload the software with simultaneous CDC and HID output from here
    https://github.com/ChrGri/DIY-Sim-Racing-FFB-Pedal/tree/develop/Validation/Joystick_Serial_test
  3. restart the ESP
  4. windows game controller output app to check the change in HID output
  5. open a serial monitor
  6. the ESPs output will stall now after a while, if not, please reduce the delay
    https://github.com/ChrGri/DIY-Sim-Racing-FFB-Pedal/blob/e2798eca295c65b02d2448eeabd65c69a27d08bd/Validation/Joystick_Serial_test/src/Joystick_Serial_test.ino#L54

The expected behaviour is that CDC and HID output streams are stable and don't collapse.

Sketch

See link above.

Debug Message

-

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

Labels

Status: Needs investigationWe need to do some research before taking next steps on this issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions