Problem with esptool

hello, when sending code to my arduino ESP32 CAM, i got this error (in french, sorry), the code is:

void setup() {
Serial.begin(9600);
Serial.print("hello");

}

void loop() {

}

and the error:

Traceback (most recent call last):
File "esptool.py", line 3682, in
File "esptool.py", line 3675, in main
File "esptool.py", line 3329, in main
File "esptool.py", line 263, 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 'COM4': WindowsError(31, 'Un p\xe9riph\xe9rique attach\xe9 au syst\xe8me ne fonctionne pas correctement.')
Failed to execute script esptool
le port série sélectionné Failed to execute script esptool
n'existe pas ou votre Arduino n'est pas connectée

Does Windows recognise show COM4 in Device Manager ?