0

ISP pin Identification
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

ISP pin Identification

by magno_grail on Tue Jun 01, 2021 12:53 am

There is an ISP header on the Metro M4 board but no indication which is pin #1. I want to use an STK500 programmer. Thanks.

magno_grail
 
Posts: 6
Joined: Tue May 25, 2021 8:52 pm

Re: ISP pin Identification

by blnkjns on Tue Jun 01, 2021 7:49 am

You mean these pins:
Image
The 5V and GND pins are easiest to find the correct orientation if pins are labelled differently.
Or the SWD connector below, which has pin 1 marked with the triangle and is for debugging:
https://learn.adafruit.com/adafruit-met ... 51/pinouts (bottom of the page)
Some more debugging info:
viewtopic.php?f=63&t=140725

blnkjns
 
Posts: 663
Joined: Fri Oct 02, 2020 3:33 am

Re: ISP pin Identification

by magno_grail on Wed Jun 02, 2021 3:07 am

Thanks, that is the same order as the STK500. However, the MOSI, CLK, MISO and /RESET pins are connected directly to D11, D12, D13 and PIN52 so the signals should be 3.3V, yes? It appears the STK500 should be set to 3.3V for programming.
Should I just connect the MOSI, CLK, MISO and GND pins to the STK500 and use the power jack to power the M4 board? The power pin marked +5V is connected to both the output of the 5V regulator NCP1117 and the input of the 3.3V regulator AP2112K so is applying 5V to that pin is not recommended?
The STK500 applies the same voltage to the SPI and power pins. The drop out voltage of the AP2212K is 1.0-1.3V.

magno_grail
 
Posts: 6
Joined: Tue May 25, 2021 8:52 pm

Re: ISP pin Identification

by moonie223 on Wed Jun 02, 2021 4:18 am

Is that not an AVR debugger?

The metro M4 uses a ARM core, not AVR. You cannot debug or program through SPI, pretty sure you can't use that debugger either.

I think the cheapest option available is the Jlink mini edu, then your debugger will plug right into the SWD debugging port under the confusing "ICSP" pins. The comparable Atmel/Microchip offering is the ICE, which is also an AVR programmer/debugger.

moonie223
 
Posts: 40
Joined: Sun Feb 05, 2017 2:44 pm

Re: ISP pin Identification

by magno_grail on Wed Jun 02, 2021 6:10 pm

I did not see that the SAM chips use SWD, not the ISP. It looks like the Atmel ICE BASIC would be best as it also would replace the STK500 and Dragon. I already have Studio 7.

magno_grail
 
Posts: 6
Joined: Tue May 25, 2021 8:52 pm

Please be positive and constructive with your questions and comments.