Can i debug arduino due with arduino ide 2.0.2 without any debugging tool?

in these days, i have great interest in Debugging Arduino.

i have tried to debug arduino zero campatible board.

and now, i try to debug arduino DUE.

DUE HAS two USB PORT JUST LIKE arduino zero.

arduino zero can be debugged by ARDUINO IDE 2.0 series without any external debugging tools

so, i think , just like arduino zero, arduino due can be debugged by programming port and native port of DUE ,

i found some article that explain debugging arduino due using 10 PIN DEBUG JTAG PINS....

can i debug arduino due using programming port and native port without any debugging tools ?

Hi @518digerati. The Zero's "Programming Port" is connected to an onboard EDBG debug probe. This is what allows you to use the Zero with the Arduino IDE integrated sketch debugger without needing to connect external debug probe hardware to the Zero.

The Due is different. Its "Programming Port" is connected to a USB to serial adapter chip similar to how the USB interface works on the Uno and Mega boards.

For this reason, you would need to connect an external debug probe to the Due in order to use it with a debugger application.


Something else you should note is that the "Arduino SAM Boards (32-bits ARM Cortex-M3) platform of the Due has not been configured for use with the Arduino IDE integrated sketch debugger:

It is likely that the platform could be configured, but you would need to make that configuration yourself unlike the "Arduino SAMD Boards (32-bits ARM Cortex-M0+)" platform of the Zero, which Arduino configured for you. This is made more difficult by the fact that Arduino has not provided any documentation of how to make such a configuration (though you can see how it is done in the SAMD platform). So this is definitely a more challenging project than the Zero.

thanks alot for your kind reply,

i bought jlink edu mini compatible product.

can i debug arduino due with this product using 10pin JTAG CN2 ?

also, i want to debug "SAMD21 M0" (robotDYN)

too.

what is difference " jlink edu mini "and "OB ARM Emulator Debugger Programmer Downloader" ?

I think you will be able to do it with enough perseverance.

Please note that you must do some additional setup steps in order to use a J-Link debugger with the Arduino IDE integrated sketch debugger:

Here you can learn about the Segger J-Link EDU Mini

Here you can learn about the Segger J-Link OB:

1 Like

thanks alot again :heart_eyes:

You are welcome. I'm glad if I was able to be of assistance.

Regards,
Per

Thanks a~~~lot.

ptillisch,

i can debug arduino finally,,,

my dream comes true.

i can make it BECAUSE OF Y O U , PTILLISCH

THANK YOU SO MUCH.....

sincerely, Thank you....

i wish you a HAPPY MERRY CHRISTMAS in this Year 2022 !!! :heart_eyes:

You are welcome. I'm glad you were successful in getting all set up for debugging with Arduino IDE 2.x. It is a pretty cool feature!

Regards,
Per

I see Zero on the screenshot that makes me confused. Is it for Due or Zero because it is Due topic.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.