Nano ESP32: Incorrect board name and can't find COM port

Hi, I'm having a whole lot of trouble flashing firmware to my Arduino Nano ESP32-S3 through the Arduino IDE.

A few days ago, I successfully flashed nearly identical firmware to the same board, with the same USB cable, and with what I believe to be the same IDE settings. The only difference is that the pins were empty the first time, and now I have the board installed into my circuit.

First, I get this error when I connect the IDE to the board with USB and click Upload:

No DFU capable USB device available 
Failed uploading: uploading error: exit status 74

A really weird thing happens too. I check Tools --> "Get board info" and I get this:

image

when a few days ago (when flashing worked correctly) it looked like this:

image

Then someone recommended that I try this:

  1. Short pins B1 and GND
  2. While shorted, hit the reset button
  3. Remove short
  4. In IDE: Sketch --> "Upload Using Programmer" (with the Esptool programmer selected)
  5. After upload, hit the reset button

I got to step 4, but then I got this error message:

A fatal error occurred: Could not open COM4, the port doesn't exist
Failed programming: uploading error: exit status 2

And now when I unplug/replug the board into my computer, Windows gives me a "USB device not recognized" message, and the board won't show up in Device Manager. Someone recommended that I double tap the reset button on the board, which seemed to temporarily get the COM to be recognized, but now I'm going in circles.

Does anyone know what may be wrong? I'm bewildered especially by the incorrect board name.

you have to be careful which pins you connect external devices to, e.g. some pins are strapping pins used during the boot process
have a look at ESP32-S3 GPIO summary

Hi Horace, thank you for the suggestion. I looked and I did have something connected to A2 (GPIO3), so I've cut that wire and the power wire for the arduino for future testing. However, this didn't seem to have much of a change. In fact, now I'm getting all sorts of weird colors on the RGB LED (called DL1 on the board), and I can't find a key to figure out what they mean. I'm getting solid red, solid green, solid red+green, flashing green, aqua, flashing rainbow, and sometimes it's continuously cycling between several of these at once.

The power LED and the RGB LED also flicker (get dim) seemingly at random, and I hear the connect/disconnect sound on Windows at random, so something bad is definitely going on. I don't know if it's a cable problem or a board problem at this point, so I'm going to buy another data cable first and see if that has any effect.

If that doesn't work, I might try to reset the bootloader, though I don't know what that actually means yet. If there's any other way to try to give the board a factory reset or something, I'm open to suggestions. I don't think clearing the EEPROM will work, at least not through firmware, since I can't upload any firmware.

If anyone knows where I could find the key to the RGB LED light colors, that may help. Thanks again!

what did you have connected to A2?
what else have you connected to the device? what pins?
remember the ESP32-S3 uses 3.3V logic
do not connect any 5V logic directly to the device you may damage the board

Here's my schematic. Battery, 5-V stepdown converter, two motor drivers, four motors, and four rotary encoders.

You're right @horace , from the datasheet: "All digital & analog pins on the Nano ESP32 are 3.3 V. Do not connect any higher voltage devices to any of the pins as it will risk damaging the board." Unfortunately, I didn't realize this was a 3.3-V board, and the encoders are operating at 5 V. So I'm just going to assume the board is damaged and buy another.

I'm really inexperienced with electronics; do you know of a way I can step down the voltage to 3.3 V from all 8 of the encoder logic inputs to the arduino, without needing something like an individual voltage divider for each one?

you require some means over converting 5V logic to 3.3V logic - potential dividers or level converters
could you give a link to the encoders? possibly they will operate at 3.3V??

This datasheet says 3.5 V minimum input:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.