Serial monitor for ESP32S3 issues after upgrade

Hi all,

I have been using ESP32S3 which has been running with no problems on version 2.1.0. Even running both cores. I decided to upgrade to latest software, 2.3.2 for some BLE related issues. Well, once I did this the serial monitor stoped working. Note, I am using the ESP32 direct connect connection to USB. Has been working this way forever. Doesn't seem to matter on the code. I have copied the lasest code below that it failed with:

/* The true ESP32 chip ID is essentially its MAC address.
This sketch provides an alternate chip ID that matches
the output of the ESP.getChipId() function on ESP8266
(i.e. a 32-bit integer matching the last 3 bytes of
the MAC address. This is less unique than the
MAC address chip ID, but is helpful when you need
an identifier that can be no more than a 32-bit integer
(like for switch...case).

created 2020-06-07 by cweinhofer
with help from Cicicok */

uint32_t chipId = 0;

void setup() {
  Serial.begin(115200);
}

void loop() {
  for (int i = 0; i < 17; i = i + 8) {
    chipId |= ((ESP.getEfuseMac() >> (40 - i)) & 0xff) << i;
  }

  Serial.printf("ESP32 Chip model = %s Rev %d\n", ESP.getChipModel(), ESP.getChipRevision());
  Serial.printf("This chip has %d cores\n", ESP.getChipCores());
  Serial.print("Chip ID: ");
  Serial.println(chipId);

  delay(3000);
}

Anybody have any ideas? Was there some new library I was supposed to install?

TIA

Hi @greg_hauck.

I'm not sure I understood correctly what you mean by "stoped working". Please provide a more detailed description of what you mean by this in a reply on this forum thread to help us to understand it, including:

  • What did you do?
  • What were the results you expected from doing that thing?
  • What were the results you observed that did not match your expectations?

Make sure to include the full and exact text of any error or warning messages you might have encountered.

Thank you for responding back so quickly. What the symptom was, it would download the code to my board through the USB port and seemed ok, but none of the Serial.print()'s I put into the code would be displayed. After some research, I found that when I updated the IDE to 2.3.2 and esp32 library 3.0.2, the USB CDC on Boot became disabled. All working now. Appreciate you willingness to help.

Regards,
Greg Hauck

Congratulations on finding the solution! I'm glad it is working now. Thank you for taking the time to share your findings. I'm sure the others who have similar problems and find this thread during their research will be very grateful.

Maybe you updated from a version older than 2.3.0 (e.g., 2.2.1)? An important bug fix was made in Arduino IDE 2.3.0:

This had an unfortunate side effect of causing the reset to defaults of the configuration data where the Tools menu selections for each sketch was stored. The default setting of the ESP32-S3 board's Tools > USB CDC On Boot menu is "Disabled".

:+1: