i've try another ESP32(ESP32 DEVKIT V1) and can upload sketch without error but when i use this ESP32 i got this error log
Sketch uses 996037 bytes (75%) of program storage space. Maximum is 1310720 bytes.
Global variables use 45420 bytes (13%) of dynamic memory, leaving 282260 bytes for local variables. Maximum is 327680 bytes.
esptool.py v4.6
Serial port COM4
Connecting.....
Chip is ESP32-D0WD-V3 (revision v3.1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 10:06:1c:f6:6e:14
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
WARNING: Failed to communicate with the flash chip, read/write operations will fail. Try checking the chip connections or removing any other hardware connected to IOs.
Configuring flash size...
Traceback (most recent call last):
File "esptool.py", line 37, in <module>
File "esptool\__init__.py", line 1064, in _main
File "esptool\__init__.py", line 859, in main
File "esptool\cmds.py", line 466, in write_flash
File "esptool\util.py", line 37, in flash_size_bytes
TypeError: argument of type 'NoneType' is not iterable
[744] Failed to execute script 'esptool' due to unhandled exception!
i try ESP32 Dev Module, ESP32 WROOM DA Module and DOIT ESP32 DEVKIT V1 but i get the same error. how did this happen? how solve this problem?. i think, this error because i select wrong board.
You can give the board named "ESP32 Dev Module" a try.
This works for many ESP32-boards.
The flash-chip is always connected to the same ESP32-pins
The message says:
WARNING: Failed to communicate with the flash chip, read/write operations will fail. Try checking the chip connections or removing any other hardware connected to IOs.
Does this happen with the ESP32-board connected to nothing else than the USB-cable or is there anything connected to the ESP32-board?
Your pciture shows a 36-pin-board. Which means the IO-pins connected to the flash-chip are accessible
Here is a list which IO-pins can be used and which not
About your question "Does this happen with the ESP32-board connected to nothing else than the USB-cable or is there anything connected to the ESP32-board?", i think, this happen with the ESP32-board connected to nothing else than the USB-cable. I think, when we upload sketch, we should remove all sensor or hardware connected with ESP32-Board.
You should not use the IO-pins that are connected to the internal flash-memory
As soon as you connect something to these IO-pins the flash-chip stops working
You might be able to upload code into flash if you have removed all sensors
As soon as you connect the sensor again these sensors will disturb the flash-chip
NEVER use IO-pins with numbers D6, D7, D8, D9, D10, D11