Skip to content
This repository was archived by the owner on Oct 22, 2021. It is now read-only.

Alpha 0.0.5: Provide an example for configuring the debugger #216

Closed
rei-vilo opened this issue Feb 28, 2020 · 8 comments
Closed

Alpha 0.0.5: Provide an example for configuring the debugger #216

rei-vilo opened this issue Feb 28, 2020 · 8 comments
Labels
type: enhancement New feature or request

Comments

@rei-vilo
Copy link

Is your feature request related to a problem? Please describe.
Alpha 0.0.5 brings debugging to Arduino IDE Pro. But, how to configure it?

Describe the solution you'd like
Provide an example for configuring the debugger.

Describe alternatives you've considered
Wait for the next release!

Additional context
With an Arduino Zero board, programming USB port.

  • Error message

Capture 2020-02-28 à 11 33 06

  • Default configuration

Capture 2020-02-28 à 11 34 16

@rei-vilo rei-vilo added the type: enhancement New feature or request label Feb 28, 2020
@per1234
Copy link
Contributor

per1234 commented Feb 28, 2020

@rei-vilo the error:

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

indicates you are using a version of Arduino SAMD Boards prior to 1.8.5. Support for the debugger feature was only added in the Arduino SAMD Boards 1.8.5 release (arduino/ArduinoCore-samd@e6af98a).

So use Boards Manager to update Arduino SAMD Boards to 1.8.5 and you should be able to get started debugging with your Arduino Zero!

If you have any problems after that, let me know. I'm able to use the onboard debugger on the Zero with the Arduino Pro IDE, so I'll probably be able to help you out.

@rei-vilo
Copy link
Author

Thank you for your answer. I’ll give a try and let you know.

@rei-vilo
Copy link
Author

It works with Arduino SAMD Boards 1.8.5.

I expected the Arduino Pro IDE to check the boards packages were up to date.

@Team4513
Copy link

Team4513 commented Sep 29, 2020

My board manager only lists versions up to 1.8.3

@per1234
Copy link
Contributor

per1234 commented Sep 29, 2020

My board manager only lists versions up to 1.8.3

Are you referring to the "Arduino SAMD Boards (32-bits ARM Cortex-M0+)" platform?

@Team4513 I suspect you're looking at the Arduino AVR Boards platform. If so, it's correct that it only lists versions of that platform up to 1.8.3 because the latest release is 1.8.3.

There is no support in the Arduino AVR Boards platform for the debugging feature, nor are there any plans for adding support. However, if you have one of the Arduino SAMD Boards (e.g., Zero, MKR1000), you can use the debugging feature with it.

@Team4513
Copy link

Sorry, yes, I'm looking at the AVR boards. Disappointed that there will be no debugging support for those.

@ubidefeo
Copy link

@Team4513 there isn't much to be disappointed about: AVR Mega (not AVR X Mega) does not really support debug unless you get DebugWIre ICE programmers and go through the pain of not having a RESET pin as well as learning how to do debug over the DebugWIre using command line tools which, let's face it, are obscure to most people who have not digged into the meanders of AVR. I remember the awe when I was able to send a command to my UNO to stop execution of my program and start it again :D
You can read something about DebugWire here, especially the fact that it is neither documented nor open-source.

Some more advanced AVR boards have JTAG, and I'm sure someone has made a platform supporting that using Atmel ICE or JLINK, but I can't mention one out the top of my head, I'm sure googling might bare fruits :)

That said, everyone is allowed to extend our cores to implement debugging capabilities for debug-enabled microcontrollers.
In these posts you can find relevant answers along the same line we gave to other users

@Team4513
Copy link

Team4513 commented Sep 30, 2020 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants