Comments (7)
It looks like you have another openocd.exe somewhere in your PATH or configuration which is being launched instead of the version included with the Pico SDK. The logs say this is the executable: "C:/Users/Michael/DATA/Projects/openocd/openocd.exe"
.
The pico-env.cmd
script that sets up the PATH adds the OpenOCD path to the head of the list so it doesn't get over-ridden by another openocd.exe somewhere else. Do you perhaps have some VS Code configuration that you set up to use your own OpenOCD build?
from pico-setup-windows.
Yep, I built openocd from source following the setup guide instructions when I originally set up the pico sdk a few years ago. That's the version it's picking up. I didn't realize the setup script cloned and built its own version.
I moved my version of openocd to a different directory, so Powershell shouldn't be able to find it anymore. Running Get-Command openocd
in terminal picks up the setup script's version of openocd, and running openocd
in terminal gives the standard error output (it's running the setup script's exe). But when I hit F5 to start debugging it tries to launch my version. I checked through the config files in .vscode
, nothing looks out of place. How do I force it to use the right path?
I checked PATH btw, my openocd isn't in the User or System path (the script's version is still in the dev environment PATH, checked using ${env:PATH}
), so I don't know where it's pulling the path to my version from.
from pico-setup-windows.
Maybe the OpenOCD path is set in your VS Code user-level settings.json? The debugging is controlled by the cortex-debug extension which might have saved the path to your custom build.
from pico-setup-windows.
Yep, I found it in my user settings. Should I remove the user-level path altogether or change it?
from pico-setup-windows.
I think removing the user-level path will be a good idea; if you need to use a different OpenOCD build for a specific project, you can set that in your project-level settings.json: https://github.com/Marus/cortex-debug/blob/master/debug_attributes.md.
from pico-setup-windows.
Just tested it, it works now. Thanks! Maybe, for the future, warn the user during install that there is another build of openocd present on the system, or see if the project debug config can override the user one, if present?
from pico-setup-windows.
Great! Yes, we are working on a component which should be able to configure and validate these settings.
from pico-setup-windows.
Related Issues (20)
- No way to build Pico W examples from VSCode Cmake tab HOT 5
- New install not working HOT 12
- v1.5.1 does not create all registry keys anymore HOT 8
- Pico - Visual Studio Code link does nothing if VS code is not in PATH HOT 2
- Installer not checking PowerShell execution policy HOT 2
- Latest pico installer downloading as unconfirmed[random_number].crdownload HOT 2
- Problem finding path with new project HOT 2
- Installer Cant Get Pased The Choose Location HOT 2
- Installer able to install Pico_W SDK? HOT 3
- Keeping the SDK repo updated as often as possible HOT 2
- Installer not working on Windows 11 on Arm64 HOT 6
- TinyUSB are not visible in VSCode workspace HOT 4
- Use of $env:COMSPEC may be invalid in some cases. HOT 1
- No suitable code signing certificates found HOT 6
- GDB Error 1 in Visual Studio Code on Windows HOT 5
- Changing from debug to build and run for a Pico W HOT 11
- The system cannot find the file specified. HOT 2
- Add local Visual Studio Code just like other included software HOT 7
- cmake issue HOT 1
- Another cmake issue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pico-setup-windows.