Uploading issue on when "Using manually specified…"

i’ve tried to find a solution to this strange problem.
When I try to upload my program to an esp32 I have the following error:

Using manually specified: /dev/cu.wchusbserial55390044331
Uploading .pio/build/esp32doit-devkit-v1/firmware.bin
esptool.py v4.5.1
Serial port /dev/cu.wchusbserial55390044331

A fatal error occurred: Could not open /dev/cu.wchusbserial55390044331, the port doesn't exist
*** [upload] Error 2
=========================================== [FAILED] Took 2.18 seconds ===========================================

 *  The terminal process "platformio 'run', '--target', 'upload', '--upload-port', '/dev/cu.wchusbserial55390044331'" terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it.

The strange thing is i do NOT have manually specified anything…
here is my platformIO.ini

platform = espressif32
board = esp32doit-devkit-v1
framework = arduino
monitor_speed = 115200
;upload_port = /dev/cu.usbmodem55390147911

lib_deps =
me-no-dev/ESP Async WebServer
adafruit/Adafruit NeoPixel @ ^1.11.0

As you can see the upload_port is commented so my question is :
where does the /dev/cu.wchusbserial55390044331 come from ?

I’m running on macos 12.6.6, platformIO

  • Core 6.1.7
  • Home 3.4.4

Sorry if this is a silly question, i’ll be an eternal beginner I think :-/

Paris, France.

Are you sure you

  1. have selected the project and environment through the project environment switcher?
  2. do not have a serial port manually set through the taskbar? (“Auto”)

Hello !

Indeed, you’re right !
There was a specific port defined (forced) in the task bar.
I was not even aware of this possibility !
(I don’t know how I can have clicked here and there to get this result !)

I should have posted a screenshot too.
I was focussing on the content of the platformIO.ini content…

Many thanks.
I guess I owe you a beer if you come to Paris someday.