Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pico SDK 2.1.0 Error when Launch Debug tab is started #2194

Open
benji7480 opened this issue Jan 18, 2025 · 4 comments
Open

Pico SDK 2.1.0 Error when Launch Debug tab is started #2194

benji7480 opened this issue Jan 18, 2025 · 4 comments

Comments

@benji7480
Copy link

benji7480 commented Jan 18, 2025

I am able to Build/Compile the example projects from the SDK 2.1.0
but after successful build, when launching debug tab i get the below shown error lines on the debug console.

Any help to overcome these errors wud be good. Thanks

ERROR: Unable to start debugging. Unexpected GDB output from command "-exec-run". Don't know how to run. Try "help target".

The program 'C:\Users\vijay\Documents\pico-examples-master\hello_pwm\build\hello_pwm.elf' has exited with code 42 (0x0000002a).

@lurch
Copy link
Contributor

lurch commented Jan 18, 2025

ping @will-v-pi as this sounds like it might be the VSCode plugin.

@will-v-pi
Copy link
Contributor

I'm not sure - sounds like they're using something else in VSCode rather than our extension, as that folder structure looks odd. I think we need more information to help.

@benji7480
Copy link
Author

I'm not sure - sounds like they're using something else in VSCode rather than our extension, as that folder structure looks odd. I think we need more information to help.

Hello Will-v-Pi,

Here is the content of the VSCode extensions.json file below from one of the example projects:

{
"recommendations": [
"marus25.cortex-debug",
"ms-vscode.cpptools",
"ms-vscode.cpptools-extension-pack",
"ms-vscode.vscode-serial-monitor",
"raspberry-pi.raspberry-pi-pico"
]
}

let me know if u need any other info to figure out the problem. any folder structure info? Thanks

@will-v-pi
Copy link
Contributor

It sounds like you're clicking the wrong button to debug your project - if you're using the Pico VS Code extension, then you need to use it's Debug Project button (see section 4.3 of the getting started guide) which uses Cortex-Debug. If you're still getting errors then please reply with a full set of steps to reproduce this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants