Issue with flashing esp32 dev kit with Arduino IDE

Hi All,

I am having issue with flashing dev kit for ESP32. For some reason I was able to flash it for the firs time with Hello World serial.println but after that I am keep getting following error.

When I look at serial monitor it is keep populating Hello World..

This is strange as it looks like it is communicating but i cant upload anything...

I Would appreciate your help.

Here are details of the kit I am using.

https://www.aliexpress.com/item/1005004632953455.html?spm=a2g0o.order_list.order_list_main.11.51791802xvgh7Y

Regards,

D

Hi @sufit.

Please try this:

  1. Click the X icon on the "Serial Monitor" tab in the bottom panel of the Arduino IDE window to close Serial Monitor:
    image
  2. Try uploading again.

I don't have any specific reason to think Serial Monitor is the cause of the "Access is denied" error you got while uploading, but it is worth a try just in case.

The "Access is denied" error occurs when you try to upload while some other application or process has the COM3 port open. Serial Monitor is designed to automatically close the port when you start an upload so that it won't cause this error, however, there is a known bug that will cause this error when uploading to a board that has an FTDI FT232R USB chip. From the pictures on the Aliexpress listing, it appears your board has the WCH CH340 USB chip, which has never been reported to be affected by that bug (I've even tested it personally) so the problem maybe something completely different, but it's easy enough to run a quick experiment to be certain.

You were dead right !!! and I though I burned something cos I've soldered wires :slight_smile:

Thanks a lot...

You are welcome. I'm glad we identified the problem. For reference, here is the formal bug report used by the Arduino IDE developers to track this problem:

As I mentioned in my previous reply, I have only ever seen and experienced this fault when using boards with the FT232R USB chip. So your report is very interesting. Would you mind telling me whether or not your ESP32 board has a chip that looks like this on it?:

image

(note the "WCH" logo and the "CH340" model name marked on the chip)

Yes, this one looks exactly the same as the one I have.

If you are familiar with this board maybe I could ask for some info on wiring GPS Module SAM-M8Q and Rotary encoder KY-040. besides that I want to use P1 slot for powering it with battery but I will only use GND and V Pins still have Rx and Tx left for the GPS, I just wonder if will this work.

Regards,

Thanks for the information! That is very useful for me to know. Hopefully this bug in Arduino IDE will be fixed soon. Until then, you can use the workaround of closing the "Serial Monitor" tab before uploading, then if you need it, opening Serial Monitor again after that.

You might also experience the same interference if you have the Serial Plotter open when uploading. In this case, the procedure for freeing the port is a little more involved. It is explained here:

https://github.com/arduino/arduino-ide/issues/1783#serial-plotter

If you have a GitHub account, you can subscribe to that issue to get notifications of any new developments related to this subject.

Unfortunately I am not familiar with the board. I only took a quick look at the Aliexpress product listing you linked (the picture I posted is from one of the product reviews on that page).

Since it is unrelated to the original subject of this topic I recommend you create a new topic to ask this question. That will ensure the helpers here who are knowledgeable on the subject matter will see it.

Regards,
Per

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