Page 1 of 1

VSCode 'Something went wrong while getting the serial port list'

Posted: Tue Mar 05, 2024 8:13 pm
by kerkhofsward
Hi,

I have just recently installed the vscode plugin, but I am unable to flash anything to my board.
I installed the plugin and made a copy of the blink example. Building this gives no issues that I can see, but flashing is not possible since the plugin defaults to COM1, while my board is connected to COM4. When I click on the button to change the PORT, I receive the error from the title. I have tried re-installing, but this did not solve the issue.

Does anyone know how to fix this? Or how to manually set the port to COM4, since this is the only port I will be using.
Thanks in advance

Re: VSCode 'Something went wrong while getting the serial port list'

Posted: Wed Mar 06, 2024 1:45 pm
by kerkhofsward
I have fixed my issue. I was using an older board and did not have the CP2102 driver installed, so my computer was not able to detect the serial port.

Re: VSCode 'Something went wrong while getting the serial port list'

Posted: Wed Mar 06, 2024 5:40 pm
by accacca
for a manual configuration you can try this
add

Code: Select all

"idf.portWin": "COM4"
in .vscode/settings.json

uart.png
uart.png (18.55 KiB) Viewed 1576 times

Re: VSCode 'Something went wrong while getting the serial port list'

Posted: Wed Mar 06, 2024 7:30 pm
by kerkhofsward
I posted a reply but it seemingly hasn't gone through.
The problem was occuring because I did not have the CP2021 driver required for the board, which I thought I had.

Thanks for the response though!