UPDI interface with Attiny3217 isn't working

Go To Last Post
7 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I am trying to program ATtiny3217. The datasheet says, it only supports UPDI interface, Not ISP :( .

 

Tools and Software using:

1) ATmel STudio 7

2) Atmel ICE

3) Windows 10

 

This is the schematic:  . As, one can see, since this is a new chip, my hardware designer has though it supports ICSP and has given the connections accordingly. However, I would need UPDI connections.

 

UPDI requires, GND, VCC, UPDI_DATA and PC5 pin according to Atmel ICE user guide. Even though, PC5 is connected, it is not used for any purpose.

 

Things done:

1) Initially ATmel ICE was not getting detected by WIndows 10 and Studio 7. Fixed both the issues by updating default Atmel drivers with USB input device driver

2) Removed R13 and C3 to convert this ICSP pins to UPDI pins, used,  ATtiny3217 Xplained Pro Evaluation Kit ( ATTINY3217-XPRO )  Schematic Link to cross check the UPDI pin connections.

3) Connected the ATmel ICE pins to this modified PCB board pins, specifically, used pins 2,5 and 10 in the above schematic. There is a test point for PC5 (not shown in the above image) which is connected to pin 6 of Atmel ICE header.

 

Pin Connections:

             ATmel ICE header                          Target board

            a) Pin 4                          ----->         Pin 2                      ---VCC

            b) Pin 3                          ----->         Pin 5                      ---UPDI_DATA

            c) Pin 2                          ----->         Pin 10                     ---GND

           d) Pin 6                          ----->         Pin PC5

 

4) Then supplied 5V to the board, checked voltage on the board and at Pin 2 on the target board header, this is working

5) Tried programming from Studio 7 from here: 

 

 

6) Receiving the following error: 

 

Require help, to able to program the board, thanks in advance!

 

 

 

 

     

This topic has a solution.
Last Edited: Sat. Jul 13, 2019 - 10:11 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Do you have an isolated UPDI chip where you can test? Or just unsolder one from the board?

This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

NareshR wrote:
UPDI requires, GND, VCC, UPDI_DATA and PC5 pin according to Atmel ICE user guide. Even though, PC5 is connected, it is not used for any purpose.

 

Hi,

 

The Tiny 1 series is programmed by UPDI. this updi requires only three pins which is UPDI, VCC & GND connected directly from the atmel ICE to your custom board specific pins. no resistors or caps needed. only if your wire is long and you want to filter the signals (production purposes"not for Atmel ICE") from noise then you would require to design a filter.

for the timebeing try only to connect these three pins and see if you can flash your program/hex file..etc

 

regards,

Moe

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Time to spin another PC board, this time connect the proper pins for programming, and verify with a design review meeting before sending the design out to the board house.

It happens to us all, we have all done it!

 

Jim

 

Click Link: Get Free Stock: Retire early! PM for strategy

share.robinhood.com/jamesc3274
get $5 free gold/silver https://www.onegold.com/join/713...

 

 

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

ki0bk wrote:

Time to spin another PC board, this time connect the proper pins for programming, and verify with a design review meeting before sending the design out to the board house.

It happens to us all, we have all done it!

 

Jim

 

 

Exactly, I agree with Jim.

 

Good luck!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Your 5x2 ICSP header looks like the 5x2 USBASP pinout.

The 10k R13 should be fine.   Just remove C3.   It would have been inappropriate for USBASP anyway.

 

I presume that your nRESET pin#5 and the TP10 nRESET test point are connected.

I suggest that you wire the UPDI pin to the pin#3 on the 5x2 (which is currently n.c.)

 

Connect the ATMEL-ICE squid wires to GND, VCC, UPDI (10, 2, 3 on the 5x2)

 

Personally,   I would re-wire your 5x2 to receive the standard 3x2 ribbon from the ATMEL-ICE.

A new pcb should have 3x2 header  (preferably keyed)

 

David.

Last Edited: Wed. Jun 26, 2019 - 01:43 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

david.prentice wrote:

Your 5x2 ICSP header looks like the 5x2 USBASP pinout.

The 10k R13 should be fine.   Just remove C3.   It would have been inappropriate for USBASP anyway.

 

I presume that your nRESET pin#5 and the TP10 nRESET test point are connected.

I suggest that you wire the UPDI pin to the pin#3 on the 5x2 (which is currently n.c.)

 

Connect the ATMEL-ICE squid wires to GND, VCC, UPDI (10, 2, 3 on the 5x2)

 

Personally,   I would re-wire your 5x2 to receive the standard 3x2 ribbon from the ATMEL-ICE.

A new pcb should have 3x2 header  (preferably keyed)

 

David.

 

Tried your suggestion, it worked, thanks!!