-
-
Notifications
You must be signed in to change notification settings - Fork 431
Error during Debug: Cannot get command line for tool: cannot get programmer tool: undefined 'debug.tool' property #119
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
Comments
It seems only boards based on the SAMD MCU and featuring a debugger are supported. I tested debugging successfully against the Arduino Zero —see arduino/arduino-pro-ide#216. |
is there a list of supported Boards? I tried with Uno, nano and Mega and nothing worked so far. |
Changelog:
|
Will it support 8 bit Atmega boards? |
You need a debugger. Only the Arduino Zero board includes a debugger for the moment. The Arduino Nano 33 provisions pads for a SWD connection to an external debugger. |
@Matszwe02 |
Even with the atmel ICE the message remains: Error during Debug: Cannot get command line for tool: cannot get programmer tool: undefined 'debug.tool' property Does anything need to be done in a config? |
@el-samiyel which board are you testing this with? |
I am using the M0. Considering it doesn't have a edbg can't the atmel ice via swd be used in its place? Thanks |
could you please provide a link to the product? |
I tried first with the Arduino M0 Pro from Arduino.org and it didn’t work. Then, with the Arduino Zero from Arduino.cc / Genuino, debugging worked fine. |
Hi @ubidefeo Yes, just as @rei-vilo has said. I used an Arduino M0, this is the same as the Arduino zero but without the edgb. So I plug in my atmel ICE into the SWD connector but am presented with the message mentioned above. Its as if the PRO IDE doesn't see the Atmal ICE? However, what extra parameters should be set in the boards.txt? Board: https://store.arduino.cc/arduino-m0 Thanks |
What boards and external debuggers are currently supported and is there a configuration guide available? I've tried an Adafruit M0 Express via JLINK and get the error "https://adafruit.github.io/arduino-board-index/package_adafruit_index.json" and when I try a MKR1000 via JLINK I get the error "Error: unable to find CMSIS-DAP device". |
Could other boards (Arduino Uno for example) be supported in the future or is it technically not possible because of this lack of built-in debugger ? |
@tomsihap You can read about DebugWire here http://www.ruemohr.org/docs/debugwire.html out of curiosity, but I doubt anyone will ever put effort into implementing tooling for that |
same issue here as @el-samiyel described ... using M0 board with Atmel ICE SAM debugger. does not work. same error here. Uploading via Programme (Atmel ICE SAM) works ... but not debugging. |
@tuxedo0801
(notice the the block defining other boards such as the M0 (which has been discontinued way before we began this project and is not for sale anymore) does not have it. If you go and edit the IMPORTANT!!! let me know if you manage to make it work ✌️ |
Thanks @ubidefeo for your input.
So the new section for my "special board setup" in boards.txt now looks like:
As I use the ATMEL ICE debugger, I need to tell the Arduino Pro IDE the debugu launch configuration. I had this before in VS Code working. The launch.json looks like this: {
"version": "0.2.0",
"configurations": [
{
"name": "Atmel ICE - SAMD",
"type": "arduino",
"request": "launch",
"program": "${file}",
"cwd": "${workspaceFolder}",
"MIMode": "gdb",
"targetArchitecture": "arm",
"miDebuggerPath": "${env:HOME}/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-gdb",
"debugServerPath": "${env:HOME}/.arduino15/packages/arduino/tools/openocd/0.9.0-arduino5-static/bin/openocd",
"debugServerArgs": " -d2 -s ${env:HOME}/.arduino15/packages/arduino/tools/openocd/0.9.0-arduino5-static/share/openocd/scripts/ -f ${env:HOME}/.arduino15/packages/arduino/hardware/samd/1.8.8/variants/arduino_zero/openocd_scripts/arduino_zero.cfg",
"customLaunchSetupCommands": [
{
"text": "target remote localhost:3333"
},
{
"text": "file \"${file}\""
},
{
"text": "load"
},
{
"text": "monitor reset halt"
},
{
"text": "monitor reset init"
}
],
"stopAtEntry": true,
"serverStarted": "Info\\ :\\ [\\w\\d\\.]*:\\ hardware",
"launchCompleteCommand": "exec-continue",
"filterStderr": true,
"args": [],
"logging": { "trace": true, "traceResponse": true, "engineLogging": true }
}
]
} I no longer receive the message with missing debug.tool property. It now tells me:
... without any further details. Any hints on what's still wrong? |
hi @tuxedo0801 in theory once you change those files the Pro IDE should pick them up and let you debug. |
I checked the paths and files mentioned in launch.json twice... all fine, all existing, no typo. Looks like there is another issue invoking gdb. Is there a log file I can check or log-level I can activate? br, |
you could run the debug in the CLI and add a get back to you when I'm done :) |
@tuxedo0801 Unless the M0 (which is a board we retired a while back) has some other weird quirks it should work. do you have all the latest platforms updated through the Boards Manager? |
I finally set the board to MKR1000 (which is more or less compatible to mine) and now debugging works fine. Now I have to found out what's wrong with my own board definition. Thanks so far @ubidefeo |
it's my pleasure, @tuxedo0801 |
Would be great if IDE could tell the user, that Debugging is not foreseen for the selected board, instead of failing with Then, the issue can be closed. |
@tuxedo0801 |
@tuxedo0801 |
Hi All, Does anyone have a step by step for this, as I am interested in debugging the SAMD51 where possible. I believe its much the same as the SAMD21. Any assistance will be most appreciated. |
Hi @el-samiyel. Please request assistance over on the Arduino Forum. I'm sure we will be able to help you out over there: |
HI. I just downloaded Arduino Pro, uploaded a program into my leonardo and hit "debug", and the error appears.
The text was updated successfully, but these errors were encountered: