• AVR Freaks

Hot!How do I connect ATSAME70j21B to PICKIT 4

Author
nigelwright7557
Super Member
  • Total Posts : 447
  • Reward points : 0
  • Joined: 2006/11/06 08:15:51
  • Location: 0
  • Status: offline
2020/05/04 15:12:59 (permalink)
0

How do I connect ATSAME70j21B to PICKIT 4

There seems to be little information on connecting ATSAME70j21B to pickit4
Does anyone know of a pdf or datasheet with this information.
Does it connect straight to pickit4 or do I need an interface adaptor?
 
 
#1

10 Replies Related Threads

    MisterHemi
    Super Member
    • Total Posts : 276
    • Reward points : 0
    • Joined: 2017/11/02 12:24:21
    • Location: Commerce, CA USA
    • Status: offline
    Re: How do I connect ATSAME70j21B to PICKIT 4 2020/05/04 16:50:09 (permalink)
    0
    I'm not familiar with the ATSAME70J21B but have considered looking into the ATSAME70 series.
     
    I got the ICD4 RJ45 Universal Adapter board for future use (Part# AC102015) which connects to the PicKit4 and others. It is a breakout board with various other connectors: JTAG/SWD, JTAG, AVR JTAG, ICSP JTAG, and RJ45


    Here's the link:
    www.microchip.com/Developmenttools/ProductDetails/AC102015

    My configuration:
    MacBook Pro (Retina, 15-inch, Mid 2015) with MacOS Mojave (10.14.6) and MPLAB X IDE v5.30
     
    Curiosity PIC32MZ EF 1 & 2, PIC24F Curiosity, XPRESS EVAL BOARD (PIC16F18855), SAMA5D3 Xplained and various custom boards.
    #2
    nigelwright7557
    Super Member
    • Total Posts : 447
    • Reward points : 0
    • Joined: 2006/11/06 08:15:51
    • Location: 0
    • Status: offline
    Re: How do I connect ATSAME70j21B to PICKIT 4 2020/05/04 16:55:24 (permalink)
    0
    I am currently using SWD pins as a first guess.
    The picture is my programming port header.
    #3
    MisterHemi
    Super Member
    • Total Posts : 276
    • Reward points : 0
    • Joined: 2017/11/02 12:24:21
    • Location: Commerce, CA USA
    • Status: offline
    Re: How do I connect ATSAME70j21B to PICKIT 4 2020/05/04 17:37:01 (permalink)
    0
    Here is a photo of the board, it has small and large SWD connectors:
     

    Attached Image(s)


    My configuration:
    MacBook Pro (Retina, 15-inch, Mid 2015) with MacOS Mojave (10.14.6) and MPLAB X IDE v5.30
     
    Curiosity PIC32MZ EF 1 & 2, PIC24F Curiosity, XPRESS EVAL BOARD (PIC16F18855), SAMA5D3 Xplained and various custom boards.
    #4
    nigelwright7557
    Super Member
    • Total Posts : 447
    • Reward points : 0
    • Joined: 2006/11/06 08:15:51
    • Location: 0
    • Status: offline
    Re: How do I connect ATSAME70j21B to PICKIT 4 2020/05/05 17:56:55 (permalink)
    0
    MisterHemi
    Here is a photo of the board, it has small and large SWD connectors:

    Thanks. 
    I have designed my own pcb and used an 8 pin connector with same pin out as snap and pickit 4 connector.
    The snap is pretty cheap so I am going to buy one.
    If I go into MPLAB X and attempt a download it comes up with a list of compatible programmers.
     
    #5
    lacdael
    New Member
    • Total Posts : 8
    • Reward points : 0
    • Joined: 2016/11/03 18:52:39
    • Location: Norfolk, England
    • Status: offline
    Re: How do I connect ATSAME70j21B to PICKIT 4 2020/06/03 07:20:26 (permalink)
    0
    bump.
     
    Doc: 50002721A.pfg PICKit 4 In-Circuit Debugger, shows for Cortex SWD
        Pin#1 -
        Pin#2 VTG
        Pin#3 GND
        Pin#4 SWo
        Pin#5 SWCLK
        Pin#6 NRST
        Pin#7 -
        Pin#8 SWDIO
     
    https://microchipdevelope...kit4:interface-pinouts
        Pin#1 MCLR
        Pin#2 VTG
        Pin#3 GND
        Pin#4 SWo
        Pin#5 SWCLK
        Pin#6 
        Pin#7 -
        Pin#8 SWDIO
     
    With this second wiring I can:
    • find my device in IPEv5.4.
    • Read the device ID in IPEv5.4
    • Start Erasing in IPEv5.4 (The light strip goes yellow), however I get error: "Reception on endpoint 129 failed (err = -10121)
    I cannot find the device ID in Atmel Studio 7, or erase, or program.
    #6
    nigelwright7557
    Super Member
    • Total Posts : 447
    • Reward points : 0
    • Joined: 2006/11/06 08:15:51
    • Location: 0
    • Status: offline
    Re: How do I connect ATSAME70j21B to PICKIT 4 2020/06/03 08:52:24 (permalink)
    0
    The first document mentioned for cortex is wrong so I found out.
    It should be (which worked for me)::
    Pin#1 NRST
        Pin#2 VTG
        Pin#3 GND
        Pin#4 SWo
        Pin#5 SWCLK
        Pin#6 
        Pin#7 -
        Pin#8 SWDIO
    #7
    nigelwright7557
    Super Member
    • Total Posts : 447
    • Reward points : 0
    • Joined: 2006/11/06 08:15:51
    • Location: 0
    • Status: offline
    Re: How do I connect ATSAME70j21B to PICKIT 4 2020/06/03 08:59:43 (permalink)
    5 (1)
    I found  I had the endpoint error when NRST wasnt connected to pin 1.
    Once I put NRST to pin 1 on pickit connector it started to work ok.
    I also found sometimes the atsame wouldn't program and  I had to raise "ERASE" pin high and reset atsame to get it going  again.
     
     
    #8
    lacdael
    New Member
    • Total Posts : 8
    • Reward points : 0
    • Joined: 2016/11/03 18:52:39
    • Location: Norfolk, England
    • Status: offline
    Re: How do I connect ATSAME70j21B to PICKIT 4 2020/06/04 06:31:40 (permalink)
    0
    Thanks for your help. I managed to program and erase using the pickit4
     
    1. Re-installed IPEv4.5
       - made sure I had the tool pack for the PICKit. Tools->packs->Tool Packs: PICKit4_TP Release for 5.40
    2. Re-soldered connections
    3. I used the below pinouts 
        Pin#1 -
        Pin#2 VTG
        Pin#3 GND
        Pin#4 SWo
        Pin#5 SWCLK
        Pin#6 NRST
        Pin#7 -
        Pin#8 SWDIO
     
       PICKit box labels : 10-10084-R1,  (1P) PG164140 , (1T) BUR201773861
     
    I just ordered a dirt cheap J-Link programmer from china.
    #9
    nigelwright7557
    Super Member
    • Total Posts : 447
    • Reward points : 0
    • Joined: 2006/11/06 08:15:51
    • Location: 0
    • Status: offline
    Re: How do I connect ATSAME70j21B to PICKIT 4 2020/06/04 07:04:02 (permalink)
    0
    lacdael
    Thanks for your help. I managed to program and erase using the pickit4
     
    3. I used the below pinouts 
        Pin#1 -
      Pin#2 VTG
      Pin#3 GND
      Pin#4 SWo
      Pin#5 SWCLK
      Pin#6 NRST
      Pin#7 -
      Pin#8 SWDIO

    That definitely doesnt work with Snap.
    I had to connect NRST to pin 1.
    #10
    lacdael
    New Member
    • Total Posts : 8
    • Reward points : 0
    • Joined: 2016/11/03 18:52:39
    • Location: Norfolk, England
    • Status: offline
    Re: How do I connect ATSAME70j21B to PICKIT 4 2020/07/13 05:41:43 (permalink)
    0
    @nigelwright7557 is correct. Don't know why I saw "Programming Complete" with the other pinout.
     
    I wrote a "Blinking LED" program and MPLABX IDE/IPE consistently works with the following.
      Pin#1 NRST
      Pin#2 VTG
      Pin#3 GND
      Pin#4 SWo 
      Pin#5 SWCLK
      Pin#6 
      Pin#7 -
      Pin#8 SWDIO
     
    • An AVR Freaks forum post says ATMel Studio 7 & PICKIT4 doesn't work with SAM devices
    • In some other forum, it was mentioned SAM devices need to be powered externally.
    • There is also some issue with MPLABX importing Atmel Studio 7. I can't update the device pack in use in Atmel studio 7 and MPlabx won't accept the device pack that is used in Atmel Studio 7.
    • A $3 JLink device did not work consistently for programming, as I found I had to keep restarting the software, and I could not debug, so I bought a £40 ATmel-ICE programmer, which works with Mplab IPE and in Studio 7, and debugs lovely.
     
    tl:dr; I abandoned the PICKit4, as it  doesn't work with Atmel Studio 7 and SAM devices, also, IPE gave me the message: "configuration bit editing disabled for ARM devices."
    #11
    Jump to:
    © 2020 APG vNext Commercial Version 4.5