[ESP32-C6] [Remote Flashing and Debugging]: How to Configure VS Code to Use OpenOCD for Remote Flashing and Debugging
Posted: Mon May 11, 2026 12:33 pm
Hello, I’m a beginner in ESP32 development.
I connected an ESP32-C6 development board to computer A, and started OpenOCD using a command like openocd ... -c "bindto xxxx".
Now I want to use VS Code on another computer, computer B, which is on the same local network, so that when I click the Build, Flash, and Debug buttons in VS Code, it can directly operate on the ESP32-C6 development board connected to computer A.
I looked up some information here:
https://docs.espressif.com/projects/vsc ... oject.html
However, the configuration examples there seem to be mainly for debugging, and the provided settings are not very easy for me to understand.
So I’d like to ask whether anyone has successfully set up this kind of configuration before and could offer some help. Many thanks.
I connected an ESP32-C6 development board to computer A, and started OpenOCD using a command like openocd ... -c "bindto xxxx".
Now I want to use VS Code on another computer, computer B, which is on the same local network, so that when I click the Build, Flash, and Debug buttons in VS Code, it can directly operate on the ESP32-C6 development board connected to computer A.
I looked up some information here:
https://docs.espressif.com/projects/vsc ... oject.html
However, the configuration examples there seem to be mainly for debugging, and the provided settings are not very easy for me to understand.
So I’d like to ask whether anyone has successfully set up this kind of configuration before and could offer some help. Many thanks.