ESP32 wont flash

Annex for ESP32
User avatar
TrevorB
Posts: 15
Joined: Tue Jul 06, 2021 10:32 am
Been thanked: 1 time

ESP32 wont flash

Post by TrevorB »

OK need some help just Bought an ESP 32 and I cannot get it to flash, seems it cannot open Com4 but that the only one in the dropdown...
User avatar
cicciocb
Site Admin
Posts: 1900
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 407 times
Been thanked: 1271 times
Contact:

Re: ESP32 wont flash

Post by cicciocb »

Hi TrevorB,
in order to help you, could you precise the version of the toolkit that you are trying to use?

Are you working on windows or linux ?
User avatar
TrevorB
Posts: 15
Joined: Tue Jul 06, 2021 10:32 am
Been thanked: 1 time

Re: ESP32 wont flash

Post by TrevorB »

Thanks Sorry Annex+32 Toolkit V 1.11 I think thats the latest version ?

does this help

EXTRACT FILES FROM ZIP FILE
Create SPIFFS bin file
/bar-graph.js.gz
/gauge.min.js.gz
/html/mixed.html
/knob-full.js.gz
/program/74595_1.bas
/program/8574_2.bas
/program/adc.bas
/program/ajax1.bas
/program/ajax3.bas
/program/bcd.bas
/program/checkboxes1.bas
/program/css1.bas
/program/data1.bas
/program/default_switch.bas
/program/default_timer.bas
/program/demo1.bas
/program/demo2.bas
/program/demo3.bas
/program/directory1.bas
/program/directory2.bas
/program/distance.bas
/program/div.bas
/program/div2.bas
/program/file2.bas
/program/for.bas
/program/format.bas
/program/fortest.bas
/program/function.bas
/program/gauges1.bas
/program/gauges2.bas
/program/gauges3.bas
/program/gauges4.bas
/program/gauges5.bas
/program/gauges6.bas
/program/graph1.bas
/program/graph2.bas
/program/graph3.bas
/program/graph4.bas
/program/html1.bas
/program/html10.bas
/program/html10b.bas
/program/html11.bas
/program/html12.bas
/program/html13.bas
/program/html14.bas
/program/html15b.bas
/program/html2.bas
/program/html3.bas
/program/html4.bas
/program/html5.bas
/program/html6.bas
/program/html8.bas
/program/html9.bas
/program/html_lcd1.bas
/program/i2c_scan.bas
/program/infrared.bas
/program/infrared1.bas
/program/infrared2.bas
/program/infrared_keyes.bas
/program/input.bas
/program/instr.bas
/program/interrupt.bas
/program/io1.bas
/program/io_test1.bas
/program/javascript1.bas
/program/knob.bas
/program/knob2.bas
/program/knob3.bas
/program/lcd_1.bas
/program/lcd_2.bas
/program/lcd_3.bas
/program/loops.bas
/program/neopixel1.bas
/program/neoscroll4.bas
/program/not1.bas
/program/onurlmsg1.bas
/program/onurlmsg2.bas
/program/onurlmsg3.bas
/program/onurlmsg4.bas
/program/onurlmsg4b.bas
/program/onurlmsg5.bas
/program/pca9685.bas
/program/pca9685_tilt.bas
/program/ping.bas
/program/select.bas
/program/select3.bas
/program/serial.bas
/program/servo1.bas
/program/servo2.bas
/program/settings1.bas
/program/speedtest1.bas
/program/speedtest2.bas
/program/speedtest3.bas
/program/spi.bas
/program/spi_test1.bas
/program/squash.bas
/program/squash2.bas
/program/synth_new.bas
/program/temperature1.bas
/program/temperature2.bas
/program/timer4.bas
/program/timer5.bas
/program/tm1638.bas
/program/tutorial1.bas
/program/tutorial2.bas
/program/tutorial3.bas
/program/tutorial4.bas
/program/tutorial5.bas
/program/tutorial6.bas
/program/tutorial7.bas
/program/tutorial8.bas
/program/tutorial9.bas
/program/udp1.bas
/program/udp2.bas
/program/udp3.bas
/program/wifi.bas
/program/wifi_scan.bas
/program/words.bas
/segment-display.min.js.gz
/xy.min.js.gz
config.ini
esptool.py v2.6
Serial port COM4
Traceback (most recent call last):
File "esptool.py", line 2959, in <module>
File "esptool.py", line 2952, in _main
File "esptool.py", line 2652, in main
File "esptool.py", line 222, in __init__
File "site-packages\serial\__init__.py", line 88, in serial_for_url
File "site-packages\serial\serialwin32.py", line 62, in open
serial.serialutil.SerialException: could not open port 'COM4': WindowsError(5, 'Access is denied.')
Failed to execute script esptool
User avatar
cicciocb
Site Admin
Posts: 1900
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 407 times
Been thanked: 1271 times
Contact:

Re: ESP32 wont flash

Post by cicciocb »

You are not using the latest version.
However, the message indicates a problem on the serial port, probably it is not valid or it is already open by another tool (like a serial terminal, for example)
User avatar
TrevorB
Posts: 15
Joined: Tue Jul 06, 2021 10:32 am
Been thanked: 1 time

Re: ESP32 wont flash

Post by TrevorB »

thanks I will investigate..do you have a link to thelatest version of the tool kit
(i used this version to re-flash all my ESP8266's yesterday and all went well love the new editor)
User avatar
cicciocb
Site Admin
Posts: 1900
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 407 times
Been thanked: 1271 times
Contact:

Re: ESP32 wont flash

Post by cicciocb »

Should not be hard to find latest version.
It is simply in the "Software Updates" forum and is the first post.
User avatar
cicciocb
Site Admin
Posts: 1900
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 407 times
Been thanked: 1271 times
Contact:

Re: ESP32 wont flash

Post by cicciocb »

You could probably miss of the serial port drivers for the specific module.
Does your module has been recognised by windows as a serial port?

You should check in the Device Manager of windows
User avatar
TrevorB
Posts: 15
Joined: Tue Jul 06, 2021 10:32 am
Been thanked: 1 time

Re: ESP32 wont flash

Post by TrevorB »

Thanks Cicciobcb

I now have the latest flash software
Tried it on two ESP8266 modules and it's OK
no connection to the serial monitor (if that helps)

The ESP makes all the right window connect bleeps when it's inserted
nothing changes in device manager when the ESP 32 is connected
Com3 comes and goes when you connect and disconnect an ESP8266 just not the ESP32

I have ordered a replacement ESP32 will let you know how I get on

Any other thoughts in the meantime let me know
ACarvalho
Posts: 3
Joined: Sun Feb 21, 2021 11:58 am
Has thanked: 2 times

Re: ESP32 wont flash

Post by ACarvalho »

Hi,
I'm not a Windows user so I don't know if this applies, but, I remember reading something about the need of driver for the CH340 serial controller on Windows.

Check if your ESP32 has a CP2102 or a CH340.

CP2102 and CH340 controllers are used to convert TTL (Serial) to USB, and back. They are one of the chips on the board.

https://cdn.shopify.com/s/files/1/0069/ ... 1547719991
User avatar
TrevorB
Posts: 15
Joined: Tue Jul 06, 2021 10:32 am
Been thanked: 1 time

Re: ESP32 wont flash

Post by TrevorB »

I'm not a Windows user so I don't know if this applies, but, I remember reading something about the need of driver for the CH340 serial controller on Windows.
Check if your ESP32 has a CP2102 or a CH340.
CP2102 and CH340 controllers are used to convert TTL (Serial) to USB, and back. They are one of the chips on the board.
https://cdn.shopify.com/s/files/1/0069/ ... 1547719991

ACarvalho thanks for the help the ESP8266's micros all have the shape of chip in your CH340 diagram and they infact identify themselves in Device Manager as CH340. Sorry I cannot read the print on the chips. These all flash OK

The ESP32 micro has the square chip your diagram shows as a CP2102 and I might just be able to see that number on the chip.
It could be Device Manager does not see the chip as its not a programmed micro, but I suspect not.

Could it be the other way around CH340 works ok under windows and that CP2102 does not ????? Anyone out there flashed one ???
Last edited by TrevorB on Thu Jul 08, 2021 5:16 pm, edited 1 time in total.
Post Reply