Node EMCU ESP-32S Code Uploading Error


Arduino: 1.8.18 (Windows 10), Board: "NodeMCU-32S, 80MHz, 115200, None, Disabled"

Sketch uses 283057 bytes (21%) of program storage space. Maximum is 1310720 bytes.

Global variables use 20240 bytes (6%) of dynamic memory, leaving 307440 bytes for local variables. Maximum is 327680 bytes.

esptool.py v4.6

Serial port COM8

Connecting....Traceback (most recent call last):

File "esptool.py", line 37, in

Chip is ESP32-D0WDQ6-V3 (revision v3.0)

File "esptool_init_.py", line 1064, in _main

Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None

File "esptool_init_.py", line 859, in main

Crystal is 40MHz

File "esptool\cmds.py", line 466, in write_flash

MAC: c8:c9:a3:fc:f9:28

File "esptool\util.py", line 37, in flash_size_bytes

Uploading stub...

TypeError: argument of type 'NoneType' is not iterable

Running stub...

[1076] Failed to execute script 'esptool' due to unhandled exception!

Stub running...

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...

the selected serial port Configuring flash size...

does not exist or your board is not connected

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Step 1, turn on verbose.

Done Next Step ?

Run it again and post the entire error log in code tags error log

@adil3403 This is the Nano ESP32 section. Are you using a Nano ESP32 ?