probe-rs / vscode

VSCode debug extension for probe-rs. It uses the MS DAP protocol to communicate directly with the probe (via probe-rs), and supports basic command line debugging in addition to VSCode UI.
https://probe.rs/
Other
65 stars 5 forks source link

Timeout while attaching to target under reset #59

Closed tsadowski closed 1 year ago

tsadowski commented 1 year ago

Hello,

I had a working setup for debugging a micro:bit in VSCode. But the I decided to update to 0.18.0 and now I just get:

 INFO: Triggered DAP Event: Event {
    body: Some(
        Object {
            "message": String("Timeout while attaching to target under reset. This can happen if the target is not responding to the reset sequence. Ensure the chip's reset pin is connected, or try attaching without reset.\n"),
            "severity": String("error"),
        },
    ),
    event: "probe-rs-show-message",
    seq: 4,
    type_: "event",
}

I did not alter my launch configuration. Is there anything I need to add?

Cheers, Torsten

noppej commented 1 year ago

There were some changes to the handling of "connectUnderReset". Can you try it with that setting set to false (default) in the launch.json?

tsadowski commented 1 year ago

Thank you very much, That was it!

noppej commented 1 year ago

I will update the error message to clarify.