hi
i’m currently trying to make a simple project using esp8266, however i simply can’t upload my program.
Program:
#include <Arduino.h>
#define LED 2
void setup() {
Serial.begin(115200);
pinMode(LED, OUTPUT);
}
void loop() {
digitalWrite(LED, HIGH);
Serial.println("LED is on");
delay(1000);
digitalWrite(LED, LOW);
Serial.println("LED is off");
delay(1000);
}
platformio.ini:
[env:esp12e]
platform = espressif8266
board = esp12e
framework = arduino
upload_protocol = esptool
upload_port = COM3
monitor_speed = 115200
when i try to upload i get this in terminal:
Processing esp12e (platform: espressif8266; board: esp12e; framework: arduino)
--------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/esp12e.html
PLATFORM: Espressif 8266 (4.2.1) > Espressif ESP8266 ESP-12E
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
PACKAGES:
- framework-arduinoespressif8266 @ 3.30102.0 (3.1.2)
- tool-esptool @ 1.413.0 (4.13)
- tool-esptoolpy @ 1.30000.201119 (3.0.0)
- tool-mklittlefs @ 1.203.210628 (2.3)
- tool-mkspiffs @ 1.200.0 (2.0)
- toolchain-xtensa @ 2.100300.220621 (10.3.0)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 37 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Retrieving maximum program size .pio\build\esp12e\firmware.elf
Checking size .pio\build\esp12e\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [=== ] 34.4% (used 28184 bytes from 81920 bytes)
Flash: [=== ] 25.5% (used 266167 bytes from 1044464 bytes)
Configuring upload protocol...
AVAILABLE: espota, esptool
CURRENT: upload_protocol = esptool
Looking for upload port...
Using manually specified: COM3
Uploading .pio\build\esp12e\firmware.bin
esptool.py v3.0
Serial port COM3
Traceback (most recent call last):
File "C:\Users\Seriegal\.platformio\packages\tool-esptoolpy\esptool.py", line 3969, in <module>
_main()
File "C:\Users\Seriegal\.platformio\packages\tool-esptoolpy\esptool.py", line 3962, in _main
main()
File "C:\Users\Seriegal\.platformio\packages\tool-esptoolpy\esptool.py", line 3551, in main
esp = chip_class(each_port, initial_baud, args.trace)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Seriegal\.platformio\packages\tool-esptoolpy\esptool.py", line 271, in __init__
self._port = serial.serial_for_url(port)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Seriegal\.platformio\penv\Lib\site-packages\serial\__init__.py", line 90, in serial_for_url
instance.open()
File "C:\Users\Seriegal\.platformio\penv\Lib\site-packages\serial\serialwin32.py", line 64, 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)
*** [upload] Error 1
at this point i have no idea what to do about this