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

Can't debug with Jlink #20997

Open
AlexKlimaj opened this issue Jan 24, 2023 · 3 comments
Open

Can't debug with Jlink #20997

AlexKlimaj opened this issue Jan 24, 2023 · 3 comments
Assignees

Comments

@AlexKlimaj
Copy link
Member

AlexKlimaj commented Jan 24, 2023

In the latest version of main, I am unable to debug using a j-link.

There is another unrelated issue of using newer versions of cortex debug in vscode.

image

@AlexKlimaj
Copy link
Member Author

Sometimes the latest version of cortex debug works and other times it doesn't.

image

@AlexKlimaj
Copy link
Member Author

It looks like the version of GDB that comes with GCC 9.3.1 is GDB 8. Which is not compatible with recent Cortex Debug versions. Adding these config lines to VSCode settings forces Cortex Debug to use a newer version of GDB.

"cortex-debug.gdbPath": "/opt/gcc-arm-none-eabi-10-2020-q4-major/bin/arm-none-eabi-gdb",
"cortex-debug.gdbPath.linux": "/opt/gcc-arm-none-eabi-10-2020-q4-major/bin/arm-none-eabi-gdb",

@AlexKlimaj
Copy link
Member Author

It appears that when I compile I end up with a file called jlink-nuttx and not jlink-nuttx.so which cortex debug is looking for. Adding the .so extension solves the problem.

image

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

No branches or pull requests

2 participants