Esp32 unknown device issue ?

I am just starting out in Iot using esp32 using arduino IDE but the code never compiles, the error I get is :

FQBN: esp32:esp32:esp32
Using board 'esp32' from platform in folder: C:\Users\godiv\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.7
Using core 'esp32' from platform in folder: C:\Users\godiv\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.7

cmd /c if exist "C:\IoT\sketch_sep25b\partitions.csv" COPY /y "C:\IoT\sketch_sep25b\partitions.csv" "C:\Users\godiv\AppData\Local\Temp\arduino\sketches\2C66E617AF30CEB1174097C4E8DDB5AC\partitions.csv"
exit status 1

Compilation error: exit status 1

I also have no clue why it shows unknown device when in the device manager the UART connection shows up at COM4, also when I disconnect at the bottom right it shows [Not Connected]

Any Help would be great since I have tried a lot of stuff and I am not able to start learning at all and have spent many days just trying to make it work

The board uses a generic serial-to-usb adapter (USB\VID_10C4&PID_EA60 - CP210x UART Bridge | Device Hunt). There are many different devices (not only Arduino or ESP32) that use that chip and the IDE will not be able to differentiate. It's not the cause of the issue you're experiencing.

Please post your sketch; please use code tags as described in https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum/679966#posting-code-and-common-code-problems.


Based on the FQBN you're not using an Arduino Nano ESP32 but an other ESP32 device; hence your topic has been moved.

PS
In future please post error messages using code tags as well.

1 Like

I get the same thing regardless of the sketch I try to compile. I even tried to follow the same installation steps at a pc at my college and it worked flawlessly, I have even tried different version of the ide without any success.

There are numerous vague failures when compiling for ESP32 based boards when using a PC with Windows. Is your college PC using Windows as well?

I can not really help.

Maybe a permission issue? Can you check if you have sufficient permisions for the directory C:\Users\godiv\AppData\Local\Temp\arduino\sketches and its sub directories? Note that the AppData directory might be hidden in which case you have to make it visible in Windows Explorer under (tools/)options.

A possible workaround might be to use a portable install of IDE 1.8.19 in the C: directory or on a memory stick.

I tried using various versions of Arduino IDE and the esp32 board manager files. However I get the same error.

In the college I tried on two computers, one running win 10 and another running windows 11, and both ran fine.

I also tried changing the board to different esp32 versions like Arduino nano esp32, and other esp32 variants and all of them give the same error, while other boards like Arduino UNO compile just fine.

The error don't even specify much except pointing out to cmd into some partition table csv, but it's already defined by default.

The same error is received on installing the ide for all users instead for the specific user.

I am trying to do the portable install and will notify if anything happens

You may find the advice and utilities I describe here useful

a few things I have tried when boards won't respond correctly

are you sure you have the correct COM port?
if you run the Device Manager does COM port appear/disappear as plug/unplug the microcontroller?
if not do you get any message, e.g. "USB device not recognized"
disconnect everything (sensors/relays etc) from the board
try a different USB port
try a different USB cable (some are charge only)

try EN / BOOT/ RST button combinations

pressing BOOT AND EN right after the connection begins and release ONLY EN few seconds after and finally release BOOT few other seconds after.

As I said, vague errors. The Espressif package is extremely good in not displaying the root cause of the error.

You can try to run the command on the command line; you might get a sensible error (or not) or the next compile might work.

@horace, this is a compilation issue, not an upload issue. Please see quote below

good point!
could the username "godiv" contain odd characters which are not displayed?

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