Follow these steps to get OpenOCD building and debugging on Windows using VS Code.
- Install MSYS2. Install it in the default location (
C:\msys64
). - From the Start Menu, open a MSYS2 MINGW64 prompt.
- Get all build dependencies using
pacman
.
pacman -S base-devel mingw-w64-x86_64-gcc mingw-w64-x86_64-gdb git libtool autoconf automake mingw-w64-x86_64-libusb