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

kerkhofsward
Posts: 6
Joined: Tue Mar 05, 2024 8:08 pm

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

Postby kerkhofsward » Tue Mar 05, 2024 8:13 pm

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

kerkhofsward
Posts: 6
Joined: Tue Mar 05, 2024 8:08 pm

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

Postby kerkhofsward » Wed Mar 06, 2024 1:45 pm

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.

accacca
Posts: 34
Joined: Mon Aug 06, 2018 4:59 pm

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

Postby accacca » Wed Mar 06, 2024 5:40 pm

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 1502 times

kerkhofsward
Posts: 6
Joined: Tue Mar 05, 2024 8:08 pm

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

Postby kerkhofsward » Wed Mar 06, 2024 7:30 pm

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!

Who is online

Users browsing this forum: Bing [Bot] and 237 guests