Skip to content

No USB Serial port available. #4728

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
slaftos opened this issue Jan 17, 2021 · 17 comments
Closed

No USB Serial port available. #4728

slaftos opened this issue Jan 17, 2021 · 17 comments
Labels
Area: Peripherals API Relates to peripheral's APIs. Status: Solved

Comments

@slaftos
Copy link

slaftos commented Jan 17, 2021

Hardware:

Board: MAGTAG29_ESP32S2
Core Installation version: idf-release/v4.2
IDE name: Arduino CLI or Arduino IDE 8.1.13
Flash Frequency: build.flash_freq=80m
PSRAM enabled: Same results enabled or disabled
Upload Speed: 921600
Computer OS: Mac OS Mohave 10.14.6/Windows 10

Description:

After upload and reset USB serial port is not identified/found by OS.
Tested on Both Windows and Mac OS
Happens on a simple blink sketch, Serial.begin is called first line in setup.
Cloned a fresh release today where this was happening. Commit prior to below did not have this problem:

ESP-IDF update to 2bfdd036b and ESP-DSP

 idf-release/v4.2 (#4485) 

Code operates correctly (blinks) but no USB Serial port available.
Booting up ROM bootloader serial port comes up just fine /dev/cu.usbmodem01

Sketch:

// the setup function runs once when you press reset or power the board
void setup() {

  // initialize USB serial converter so we have a port created
  Serial.begin();

  // initialize built in LED pin as an output.
  pinMode(LED_BUILTIN, OUTPUT);}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);              // wait for a second
  digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);              // wait for a second
}

Debug Messages:

USB serial port not available
@slaftos slaftos changed the title No USB Serial port available on Mac OS No USB Serial port available. Jan 17, 2021
@SvenArke
Copy link

Syntax: Serial.begin(speed)

Serial.begin(9600);

Already tried ?

@slaftos
Copy link
Author

slaftos commented Jan 18, 2021

Yes even with a speed set it has the same result. The USB device is just not recognized, not a communication issue. It is more like a USB handshake issue, since neither windows nor Macos can recognize the device. But switching back to the previous commit of idf-release/v4.2 and it works correctly.

@rdmcmurray
Copy link

rdmcmurray commented Jan 29, 2021

I can confirm the issue. My Metro ESP32-S2 that will only appear as an available port when reset in boot loader mode. Just ran into this today with 4.2#4704

Board: Adafruit Metro ESP32-S2
Core Installation version: idf-release/v4.2
IDE name: Arduino CLI or Arduino IDE 8.1.13
Flash Frequency: build.flash_freq=80m
PSRAM enabled: Same results enabled or disabled
Upload Speed: 921600
Computer OS: Mac OS Big Sur

@dwriggles
Copy link

dwriggles commented Feb 25, 2021

I am having this issue as well. Same board and config but with Mac OS Catalina.

@friggeri
Copy link

friggeri commented Mar 7, 2021

I am having the same issue as @rdmcmurray, same OS and configuration

@StarWitch
Copy link

Having the same issue with the UnexpectedMaker Feather S2 (ESP32-S2). Switching back to the stale esp32s2 branch fixes it.

@shlomozippel
Copy link

shlomozippel commented Mar 16, 2021

Finally figured this out. The bug is in IDF 4.2, not the arduino core. This is just a bandaid until espressif fix it for real

shlomozippel@593515c

The bug is on this line: https://github.com/espressif/esp-idf/blob/release/v4.2/components/tinyusb/port/esp32s2/src/tinyusb.c#L89

Although, I should note: this "fixes" the USB in the sense that you can flash and monitor serial over the built in USB peripheral. You can't really do anything else though since tinyusb uses hardcoded descriptors and ignores anything you do e.g USB.VID() etc.

@ssilverman
Copy link

This fix looks like it's in the latest master, but I still don't see a serial port over USB. Is there a new fix?

@stale
Copy link

stale bot commented Jun 18, 2021

[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Status: Stale Issue is stale stage (outdated/stuck) label Jun 18, 2021
@ssilverman
Copy link

Is this fixed? Pinging to keep the issue alive.

@stale
Copy link

stale bot commented Jun 18, 2021

[STALE_CLR] This issue has been removed from the stale queue. Please ensure activity to keep it openin the future.

@stale stale bot removed the Status: Stale Issue is stale stage (outdated/stuck) label Jun 18, 2021
@stale
Copy link

stale bot commented Aug 21, 2021

[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Status: Stale Issue is stale stage (outdated/stuck) label Aug 21, 2021
@ssilverman
Copy link

Pinging to keep the issue alive.

@stale
Copy link

stale bot commented Aug 21, 2021

[STALE_CLR] This issue has been removed from the stale queue. Please ensure activity to keep it openin the future.

@stale stale bot removed the Status: Stale Issue is stale stage (outdated/stuck) label Aug 21, 2021
@thedevleon
Copy link

Having the same issue. Did this ever get fixed or did you find a fix @ssilverman?

@VojtechBartoska
Copy link
Contributor

Hello folks, are you able to test your issue on development version 2.0.3-RC1 to check if this is still valid?

Take a look on Docs where is explained how to choose development release version in Arduino IDE.

@VojtechBartoska VojtechBartoska added the Resolution: Awaiting response Waiting for response of author label Apr 7, 2022
@slaftos
Copy link
Author

slaftos commented Apr 10, 2022

This is resolved. I tested with 2.0.2 and 2.0.3-RC1. both work correctly.

@slaftos slaftos closed this as completed Apr 10, 2022
@VojtechBartoska VojtechBartoska added Area: Peripherals API Relates to peripheral's APIs. Status: Solved and removed Resolution: Awaiting response Waiting for response of author labels Apr 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Peripherals API Relates to peripheral's APIs. Status: Solved
Projects
None yet
Development

No branches or pull requests

10 participants