I want to debug alternative item of mkr zero with ide 2.0.0

i want to debug mkr zero with ide 2.0.0

i want to use debugging function of arduino ide 2.0.0.

but i don't have SAMD arduino ,

i want to buy this board AT aliexpress

can i debug with above product with arduino ide 2.0.0 ?

is there anything just like data cable between arduino above and notebook that i need ?

is debugging information transmitted by usb cable ?

Hi @518digerati

Yes, you can do that.

Yes. You will need either a CMSIS-DAP compliant SWD debug probe (there are several options available) or else a Segger J-Link. You can learn more about both of those in this tutorial:

Please note that if you use the J-Link, you will need to install some additional software on your computer and also add a special configuration file to your sketches, as documented here:

With a CMSIS-DAP compliant debugger, no additional installation or special configuration is needed.

It is transmitted between the debug probe and the computer. The information is transmitted between the debug probe and the Arduino board via a cable attached to the 2x5 SWD header you see on the side of the board away from the USB socket.

Please note that it is not possible to use the Arduino IDE 2.x integrated debugger with these boards simply by connecting the board to your computer with the USB cable as you would do normally when uploading sketches to it or using the Serial Monitor. It is possible to do that with the Arduino Zero because that board has a built-in debug probe. This makes the Zero the most convenient board for use with the Arduino IDE 2.x debugger.

1 Like

thanks alot for your kind reply, i read all description of item i bought , that says, like....

The board is powered by SAMD21 MCU, which features a 32-bit ARM Cortex M0+ core.

One of its most important features is Atmel’s Embedded Debugger (EDBG), which provides a full debug interface without the need for additional hardware, significantly increasing the ease-of-use for software debugging.

EDBG also supports a virtual COM port that can be used for device and bootloader programming.

Compatible with Arduino Zero and Arduino M0.

this item is compatible with Arduino Zero.

The Arduino Zero board can be used without any external hardware.

so, i think , i don't need any additional device. just link usb cable between notebook and above item,

thanks alot for your kindness.

above item will be shipped on 9th november, so i will receive it 16th november,
after i receive it , i will test it , and i will reply the test result here . ^^

the original Zero has two usb connectors. one for the native port and second for the debugger. and the debugger chip is prominent on the PCB.

but on the photos there is another smaller samd21 board too. and the description feels like the other board is the debugger. maybe they have some firmware for it. but the cable for the 5x2 header is missing on photos.

or I don't understand why they sell two SAMD21 boards in a bundle

I'm sorry to tell you this is incorrect. It is very common for the Aliexpress sellers to provide false information and this is one of those cases.

It is just a normal ATSAMD21G18 dev board. I own one of these and even use it with the Arduino IDE 2.x debugger regularly (I actually bought it for that purpose since it has an SWD header that makes it easy for me to hook up).

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