Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By NVelichkovski
#84934 My IDE cant connect with the module. I'm new at these things, still learning, I've been working with some Arduino electronics before but never had any problem like this. I think that everything is set up correctly:

    Additional board manager URLs: "http://arduino.esp8266.com/stable/package_esp8266com_index.json"
    Board: Generic ESP8266 Module
    Port: "COM3" (Its the only one that's available)


However, when I try to compile the code I get a warning first then on upload the following error:
Code: Select allArduino: 1.8.10 (Windows 10), Board: "Generic ESP8266 Module, 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), dtr (aka nodemcu), 26 MHz, 40MHz, DOUT (compatible), 1MB (FS:64KB OTA:~470KB), 2, nonos-sdk 2.2.1+100 (190703), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

Executable segment sizes:


IROM   : 235644          - code in flash         (default or ICACHE_FLASH_ATTR)


IRAM   : 26908   / 32768 - code in IRAM          (ICACHE_RAM_ATTR, ISRs...)


DATA   : 1264  )         - initialized variables (global, static) in RAM/HEAP


RODATA : 752   ) / 81920 - constants             (global, static) in RAM/HEAP


BSS    : 24976 )         - zeroed variables      (global, static) in RAM/HEAP


Sketch uses 264568 bytes (27%) of program storage space. Maximum is 958448 bytes.
Global variables use 26992 bytes (32%) of dynamic memory, leaving 54928 bytes for local variables. Maximum is 81920 bytes.
esptool.py v2.8
Serial port COM3
Traceback (most recent call last):
  File "C:\Users\38971\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.6.3/tools/upload.py", line 65, in <module>
    esptool.main(cmdline)
  File "C:/Users/38971/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.6.3/tools/esptool\esptool.py", line 2889, in main
    esp = chip_class(each_port, initial_baud, args.trace)
  File "C:/Users/38971/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.6.3/tools/esptool\esptool.py", line 237, in __init__
    self._port = serial.serial_for_url(port)
  File "C:/Users/38971/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.6.3/tools/pyserial\serial\__init__.py", line 88, in serial_for_url
    instance.open()
  File "C:/Users/38971/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.6.3/tools/pyserial\serial\serialwin32.py", line 62, in open
    raise SerialException("could not open port {!r}: {!r}".format(self.portstr, ctypes.WinError()))
serial.serialutil.SerialException: could not open port 'COM3': PermissionError(13, 'Access is denied.', None, 5)
serial.serialutil.SerialException: could not open port 'COM3': PermissionError(13, 'Access is denied.', None, 5)

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

Can you guys suggest me what are my options with the following issue or address me where can I find a solution?