Comments (10)
IT WORKS!!!!!!!
1b
works for me, and also, 1a
is not mandatory, but works both with and without runtimeExecutable
(but probe-rs-debugger
did not work! only probe-rs
work;)).
2
also works.
3
, sorry I don't fully understand what you intended to,(because I'm not sure even dap-server!!) but if you intend to check probe-rs
works as dap-server, yes, it works.
Thank you! So now my issue has finished, I close this issue but in case you think to improve error catching, feel free to reopen this issue and ask me to offer more context and information(if it's necessary)!
from probe-rs.
You need to install the newest version of the extension to work with the newest version of probe-rs :)
from probe-rs.
Hmm...I'm using probe-rs 0.19.0, and Debugger for probe-rs which is last released 6/29/2023, 22:53:36.
Seems newest?
from probe-rs.
You need the newest version of the extension not the debugger. The extension still tries to find the old binary name.
from probe-rs.
I mean...I'm using "Debugger for probe-rs" extension last released 6/29/23, 22:53:36. :)
I installed it yesterday from VSCode Marketplace...So I think it is the newest?
from probe-rs.
@Dicklessgreat From your description, it appears as if you are following the correct steps, so the devil might be in the details. Can you please do the following:
- Post your
launch.json
- At the point where you get the dialog with the
ECONNREFUSED
error, can you please open another window and look to see if anyprobe-rs
processes have been launched in the background?
from probe-rs.
@noppej Thanks reply!
I closed all windows that corresponds to development but the Pico debugging VSCode window, and hit F5, same dialog show up. At that moment, I run Get-Process
on Power Shell and I couldn't find probe-rs
processes.
- launch.json
there're no changes from original template but "runtimeExecutable"
// The format of this file is specified in https://probe.rs/docs/tools/vscode/#start-a-debug-session-with-minimum-configuration
{
"version": "0.2.0",
"configurations": [
{
"preLaunchTask": "rust: cargo build",
"type": "probe-rs-debug",
"request": "launch",
"name": "rp2040-project",
"cwd": "${workspaceFolder}",
"chip": "rp2040",
// RP2040 doesn't support connectUnderReset
"connectUnderReset": false,
"speed": 4000,
"runtimeExecutable": "probe-rs",
"runtimeArgs": [
"debug"
],
"flashingConfig": {
"flashingEnabled": true,
"resetAfterFlashing": true,
"haltAfterReset": true,
},
"coreConfigs": [
{
"coreIndex": 0,
"programBinary": "target/thumbv6m-none-eabi/debug/rp2040-project-template",
"chip": "RP2040",
// Uncomment this if you've downloaded the SVD from
// https://github.com/raspberrypi/pico-sdk/raw/1.3.1/src/rp2040/hardware_regs/rp2040.svd
// and placed it in the .vscode directory
// "svdFile": "./.vscode/rp2040.svd",
"rttEnabled": true,
"options": {
"env": {
"DEFMT_LOG": "debug"
}
},
}
],
"consoleLogLevel": "Info", //Error, Warn, Info, Debug, Trace
"wireProtocol": "Swd"
}
]
}
from probe-rs.
Thanks. To me that implies that the process launch failed silently (ouch)
Before I try to reproduce with a deliberately bad process, can I ask you three more tests please:
- Run it without
runtimeExecutable
andruntimeArgs
...
a. TheruntimeExecutable
should only be required if you have a custom start script, or the executable is not in the default path.
b. TheruntimeArgs
value you used is outdated. It should bedap-server
... please see the doc example or the `doc list of valid options - Then, in
runtimExecutable
, please specify the fully qualified path and file name for theprobe-rs
executable. - Finally, open a terminal window in
probe-rs
and try to runprobe-rs dap-server --port 50223
from the command line.
My gut feel is that your problem is in 2b) above. If that is correct, then there is an "opportunity" to improve the probe-rs
error catching :)
from probe-rs.
Re-opening to address the error handling for future users.
from probe-rs.
Closing as addressed in probe-rs/vscode#63 and #1699
from probe-rs.
Related Issues (20)
- VSCode extension and DAP server support for `vector catch`
- Add support for EFR32MG24 HOT 15
- probe-rs run fails on nrf9160 HOT 20
- cargo flash: No flash memory contains the entire requested memory range HOT 1
- [Request] Make the RegisterDataType enum public HOT 1
- Linking with `cc` failed error while trying to install HOT 3
- cargo embed RTT invalid chars and incomplete output HOT 2
- Renamed `STM32G471RE` to `STM32G491RE`? HOT 1
- Add support for Texas Instruments CC13xx/CC26xx devices HOT 2
- STM32F103 - Cargo flash problem HOT 2
- cargo-flash documentation references `cargo flash --list-chips` HOT 1
- Support for Linux GPIO subsystem based bit-bang driver on the single board computers (like the Raspberry Pi and the BeagleBoards)
- Tracking Issue: `src/debug` adding functionality and refactoring as required - will require multiple PR's
- RTT/defmt broken since #1738 HOT 2
- broken release links HOT 2
- Supporting CMSIS-DAP DAP_PACKET_COUNT to enhance speed. HOT 6
- UF2 Support HOT 3
- Incorrect reset behaviour HOT 5
- Broken arguments HOT 1
- Parse JTAG scan chain from CMSIS-SDF file HOT 4
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 probe-rs.