Program ATSAMD21/ ItsyBitsy with stlink

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Post Reply
User avatar
ng0035
 
Posts: 1
Joined: Fri Mar 18, 2022 1:30 am

Program ATSAMD21/ ItsyBitsy with stlink

Post by ng0035 »

Hi i have a stlink v2 and i have a itsybitsy. Id like to know if its possible to program it with the stlink v2 via swd interface.

User avatar
mikeysklar
 
Posts: 15153
Joined: Mon Aug 01, 2016 8:10 pm

Re: Program ATSAMD21/ ItsyBitsy with stlink

Post by mikeysklar »

No, this programmer is designed for the STM* family of processors.

If you need to a debug a ATSAMD21 with JTAG then use the Black Magic Probe or Segger J-LINK EDU.

User avatar
brando555
 
Posts: 2
Joined: Tue Jun 11, 2024 7:30 am

Re: Program ATSAMD21/ ItsyBitsy with stlink

Post by brando555 »

Hello,
Yes, you can program an ItsyBitsy using an STLink V2 via the SWD interface. Connect SWDIO, SWCLK and GND pins between the STLink V2 and the Itsy Bitsy. Optionally, connect the power pin if needed. Use STM32CubeProgrammer or OpenOCD software to flash the firmware. Compile your program in Arduino IDE or another platform, then use the software tools to flash the compiled binary to the ItsyBitsy.

User avatar
westfw
 
Posts: 2015
Joined: Fri Apr 27, 2007 1:01 pm

Re: Program ATSAMD21/ ItsyBitsy with stlink

Post by westfw »

Heh. Two conflicting answers.

In theory, the STLINK is an SWD debugger, and the SAMD21 has an SWD interface, and SWD is an ARM standard comm/debug protocol, so you'd THINK it would work. But programming involves using SWD to talk to the (non-standard) flash controllers of the specific processor, and apparently there are problems:

https://electronics.stackexchange.com/q ... n-st-chips

Post Reply
Please be positive and constructive with your questions and comments.

Return to “Itsy Bitsy Boards”