Skip to content

Error during Debug: Cannot get command line for tool: cannot get programmer tool: undefined 'debug.tool' property #119

Closed
@Matszwe02

Description

@Matszwe02

HI. I just downloaded Arduino Pro, uploaded a program into my leonardo and hit "debug", and the error appears.

Activity

rei-vilo

rei-vilo commented on Feb 28, 2020

@rei-vilo

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.

kampfk3ks

kampfk3ks commented on Feb 29, 2020

@kampfk3ks

is there a list of supported Boards? I tried with Uno, nano and Mega and nothing worked so far.

rei-vilo

rei-vilo commented on Feb 29, 2020

@rei-vilo

Changelog:

  • Debugger support for SAMD boards
Matszwe02

Matszwe02 commented on Feb 29, 2020

@Matszwe02
Author

Will it support 8 bit Atmega boards?

rei-vilo

rei-vilo commented on Feb 29, 2020

@rei-vilo

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.

ubidefeo

ubidefeo commented on Feb 29, 2020

@ubidefeo

@Matszwe02
debugging 8bit AVR involves using a protocol called DebugWire.
Right now we support SAMD chips, and since DebugWire is a complex thing to work with, I can't see it being supported.
You also need either an Atmel ICE, STK500 or Dragon

el-samiyel

el-samiyel commented on Mar 15, 2020

@el-samiyel

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?

ubidefeo

ubidefeo commented on Mar 15, 2020

@ubidefeo

@el-samiyel which board are you testing this with?

el-samiyel

el-samiyel commented on Mar 15, 2020

@el-samiyel

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

ubidefeo

ubidefeo commented on Mar 15, 2020

@ubidefeo

could you please provide a link to the product?
of course if you have SWD pins exposed you can debug, but need the board in question to have the extra config settings defined within boards.txt of its core

rei-vilo

rei-vilo commented on Mar 15, 2020

@rei-vilo

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.

el-samiyel

el-samiyel commented on Mar 15, 2020

@el-samiyel

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

ericklein

ericklein commented on May 31, 2020

@ericklein

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".

tomsihap

tomsihap commented on Sep 4, 2020

@tomsihap

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.

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 ?

ubidefeo

ubidefeo commented on Sep 4, 2020

@ubidefeo

@tomsihap
the ATMega328 (on the Arduino UNO) only supports debugging via WireDebug interface, which needs to be enabled at low level using fuses and is only supported by a bunch of programmers and has never really been successful.
We will support interfaces based on GDB and OpenOCD for our own boards, as well as hybrid debugging over USB like we're experimenting with the Portenta H7.
Debugging on each platform requires implementation by the platform supplier, with a series of debug scripts that launch the required tools, which also have to be installed based on platform specification.

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

19 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @rei-vilo@ubidefeo@tuxedo0801@tomsihap@ericklein

        Issue actions

          Error during Debug: Cannot get command line for tool: cannot get programmer tool: undefined 'debug.tool' property · Issue #119 · arduino/arduino-ide