I am using SAMD21 MINI by robotdyn. I wanted to flash it with debugger/Programmmer instead of USB

How you are powering your ATSAMD21 controller . Is it getting powered by "CMSIS-DAP compliant debug probe" or separately given power by differentUSB ?

I power it via the USB socket on the ATSAMD21 dev board. The debug probe does not provide power to the board as you can see from pin 1 of the SWD header not being connected here on the schematic:

https://github.com/ataradov/free-dap/blob/master/hardware/d11-nano-dbg/d11-nano-dbg.pdf

It should be easy enough to make an adapter board that allows injecting power into the programmer cable.

Can you give me part number or any alternative debugger like this , It is not being deliverable in india it says in the website.

Kindly, send me a picture with part number also , how we are connecting the dev board via debugger, since much time went on it.

Last 2-3 projects we seen debuggers with USB power itself supplying the power to board . No need to power dev board externally.

There is a suggestion for an alternative in the product listing I linked above:

https://www.tindie.com/products/ataradov/cmsis-dap-compliant-swd-debugger/

If you just need any debugger, consider using Raspberry Pi Pico with a firmware binary from here. You will get the same exact behaviour as with this tool.

I haven't tried it, but it looks very promising. The Raspberry Pi Pico board is reasonably priced and widely available. It is a nice board to have as a general development board beyond the specific use case as a debug probe.

You will need to devise a way to make the connections between the pins on the Raspberry Pi Pico board and the SWD header on your ATSAMD21G18 development board. One of these SWD header breakouts will be a convenient way to accomplish that:

If something like that is not accessible to you, it is also possible to make an equivalent by soldering a 2x5 SMD 0.05" (1.27 mm) pitch header to a SOIC-14 or SOP-14 adapter board.

The headers I'm referring to can either be bought in a 2x50 form and then a 2x5 section cut from the strip, like this:

Or you can also procure the headers in a 2x5 form.

The SOIC-14 or SOP-14 adapter boards I'm referring to look something like this:

Even though the adapter was made for use with an IC, the footprint happens to be compatible with the header. Four of the pins are not used on the adapter board, but there is no such thing as an SOIC-10 or SOP-10 package so the 14 pin adapter is the closest thing to it.

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