Trouble with double digit port number

I am running platformio extension on VS Code.

I have specified upload port upload_port = COM[13] in the platformio.ini file. The port number is valid and works with other serial utilities. While trying to upload the program the following error occurs.

Error: Please specify upload_port for environment or use global --upload-port option.

However when port is changed to single digit upload_port = COM[8] and changing port in windows using device manager. The code is uploaded without any error. Do we have double digit serial port support available with platformio?

Probably because you’re using [] unix style wildcard matching brackets?

By specificity COM[13] you’re telling PlatformIO to use COM1 or COM3… try COM13 instead. :wink:

See more here