-
Notifications
You must be signed in to change notification settings - Fork 1
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_project.py generates wrong lunch.json for Linux #16
Comments
Servertype is hardcoded: pico-vscode/scripts/pico_project.py Line 767 in 6e3f33c
pico-vscode/scripts/pico_project.py Line 792 in 6e3f33c
Did you mean why serverpath is openocd.exe on linux? Thats on purpose, openocd.exe on linux is a symlink to the openocd binary. But setting gdb on linux to gdb-multiarch may be a good solution as it would support arm on every host but would add a new requirement. What do you mean @will-v-pi? |
Ok, to be more specific, the gdbPath set to gdb doesn't work on Linux for the x86-64 architecture, however on Linux for ARM it works I guess, and there is no need to install gdb-multiarch. |
Thanks, I was scratching my head wondering why gdb wouldn't connect from my x86 laptop. I agree, this should be addressed in order to be usable from any non-ARM system.
|
The current reason for using just If that's not working on non-Arm Linux distros, then I think the first solution to look at would be to see if the Arm toolchain GDB works on those distros and use that on non-Arm Linux distros, like we do on MacOS and Windows (sticking with gdb for Raspberry Pi OS) @mr-kycho or @ncicek could you try out using the Arm provided gdb (the extension puts it at |
I put "gdbPath": "~/.pico-sdk/toolchain/13_2_Rel1/bin/arm-none-eabi-gdb" and got the following error:
|
Can you double check |
${userHome} made the difference. After installing python3.8 from AUR on my system it worked. I'm not familiar with vscode packaging, but is there a way to include the python3.8 dependency within this package? |
My system python is 3.12. This is the error I got before installing python3.8: Could not find platform independent libraries |
There are two issues when generating lunch.json for Linux in the pico_project.py script:
The text was updated successfully, but these errors were encountered: