Jump to content

I need help plz

Luca Benoit

I am unable to figure out why I'm getting this error.:

Arduino: 1.8.9 (Windows 10), Board: "Node32s, 40MHz, 115200"

Sketch uses 205940 bytes (15%) of program storage space. Maximum is 1310720 bytes.
Global variables use 14172 bytes (4%) of dynamic memory, leaving 313508 bytes for local variables. Maximum is 327680 bytes.

esptool.py v2.6
Serial port COM9
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 'COM9': WindowsError(2, 'The system cannot find the file specified.')
Failed to execute script esptool
the selected serial port Failed to execute script esptool
 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.

This is the code.:

#include <IRremote.h>

const int RECV_PIN = 7;
IRrecv irrecv(RECV_PIN);
decode_results results;

void setup(){
  Serial.begin(9600);
  irrecv.enableIRIn();
  irrecv.blink13(true);
}

void loop(){
  if (irrecv.decode(&results)){
        Serial.println(results.value, HEX);
        irrecv.resume();
  }
}

Link to comment
Share on other sites

Link to post
Share on other sites

To me it looks like there is be a problem on the PC side of things. As it says in the error message, the issue seems to be connected with your virtual serial port (COM9 in this case). You could try to plug the board in to another physical USB port (try avoiding USB hubs). Also, if I'm right in assuming you're using the Arduino IDE, check whether the board is picked up under "Tools > Ports".

 

Hope that helps

 

PS.: If this doesn't help, try looking up the connection error

serial.serialutil.SerialException: could not open port 'COM9': WindowsError(2, 'The system cannot find the file specified.').

Maybe this is a known issue and workarounds exist.

Link to comment
Share on other sites

Link to post
Share on other sites

Bootloaders on the boards can sometimes cause this issue as well.

CPU: Intel i7 - 5820k @ 4.5GHz, Cooler: Corsair H80i, Motherboard: MSI X99S Gaming 7, RAM: Corsair Vengeance LPX 32GB DDR4 2666MHz CL16,

GPU: ASUS GTX 980 Strix, Case: Corsair 900D, PSU: Corsair AX860i 860W, Keyboard: Logitech G19, Mouse: Corsair M95, Storage: Intel 730 Series 480GB SSD, WD 1.5TB Black

Display: BenQ XL2730Z 2560x1440 144Hz

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×