Skip to content

Debuging with Arduino IDE 2.3.0 and JLinkGDBServe fails #2363

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

Closed
3 tasks done
lboue opened this issue Feb 10, 2024 · 3 comments
Closed
3 tasks done

Debuging with Arduino IDE 2.3.0 and JLinkGDBServe fails #2363

lboue opened this issue Feb 10, 2024 · 3 comments
Labels
type: imperfection Perceived defect in any part of project

Comments

@lboue
Copy link

lboue commented Feb 10, 2024

Describe the problem

Debuging with Arduino IDE fails with this error even if I followed this guide:
https://github.com/SiliconLabs/arduino?tab=readme-ov-file#debugger-configuration-file

Invalid servertype parameters. The following values are supported: "jlink", "openocd", "stlink", "stutil", "pyocd", "bmp", "pe", "qemu", "external"

debug_custom.json

{
    "servertype": "jlink",
    "device": "MGM240PB32VNA",
    "interface": "SWD",
    "serverpath": "C:/Program Files/SEGGER/JLink_V794d/JLinkGDBServerCL.exe"
}

Env

  • Arduino IDE version: 2.3.0

image

To reproduce

https://github.com/SiliconLabs/arduino?tab=readme-ov-file#debugger-configuration-file

debug_custom.json

{
    "servertype": "jlink",
    "device": "MGM240PB32VNA",
    "interface": "SWD",
    "serverpath": "C:/Program Files/SEGGER/JLink_V794d/JLinkGDBServerCL.exe"
}

Expected behavior

Start debugger.

Arduino IDE version

2.3.0

Operating system

Windows

Operating system version

Windows 11.2312.18.0

Additional context

No response

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details
@lboue lboue added the type: imperfection Perceived defect in any part of project label Feb 10, 2024
@dankeboy36
Copy link
Contributor

Hello, nice report, but not necessarily a bug. Your debug_custom.json content looks incorrect if you use IDE 2.3.0+. The JSON must be an array of objects and not an object. See from #2281 (comment):

BREAKING:

A new schema has been introduced for debug_custom.json.

The https://github.com/SiliconLabs/arduino?tab=readme-ov-file#debugger-configuration-file doc needs to be updated.

You must have something like this instead: #2299 (comment)

[
  {
    "configId": "here comes the FQBN of the board and the programmer. Copy it from the `launch.json`",
    "servertype": "jlink",
    "device": "MGM240PB32VNA",
    "interface": "SWD",
    "serverpath": "C:/Program Files/SEGGER/JLink_V794d/JLinkGDBServerCL.exe"
  }
]

@lboue
Copy link
Author

lboue commented Feb 10, 2024

Thanks for the explanation

@lboue lboue closed this as completed Feb 10, 2024
@dankeboy36
Copy link
Contributor

Please let me know if you need help getting it working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants