ATtiny816 programming via ATMEL-ICE fails

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

Hi,

I have troubles with programming ATtiny816 on my custom board.

Am unable to program it using ATMEL-ICE, no operation works including Read_Signature, Erase,..

 

My header for programming contains:

+5V = connected to VDD pin of micro

GND = connected to GND pin of micro

UPDI = connected to pad 19 of micro, i.e. PA0_UPDI_RESET

 

My programming cable interconnects header signal UPDI with ATMEL-ICE/AVR-port/pin_3 (TDO).

 

This type of cable worked well with ATtiny817 Xplained board;

(I had removed one resitor that interconnects mEDBG_chip <---> ATtiny817/pin PA0_UPDI i.e. disabled programming via mEDBG and enabled programming via ATMEL-ICE, to check it works..).

 

Is there any reason why it shouldn't work the same way with ATtiny816 ?

I measured the pin PA0_UPDI and there appear some 3 pulses about 2us long on Read_Signature. But always fails.

Before these pulses and after them it seems to be floating or voltage around 1.8-2.3V, is it necessary to have any Pull-Up or Pull-Down connected to this pin ?

 

If anybody successfully programs ATtiny816 or similar chip (via UPDI), please share your circuit diagram. I am lost.

Thanks.

 

Last Edited: Tue. Dec 18, 2018 - 06:35 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Silly question I know, but does the target AVR have power?

I ask because the ICE does not supply power to the target AVR.

 

Jim

 

 

(Possum Lodge oath) Quando omni flunkus, moritati.

"I thought growing old would take longer"

 

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

Yes, there is +5V from external supply.

 

I would mainly need:

- confirmation there is only 1 pin needed for programming, it is PA0_UPDI (+VCC and GND)

- confirmation new chips have PA0 configured as UPDI and not as GPIO (because then 12V programming would be necessary to change the fuse)

 

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

PA0 should be all you need, and it _should_ be on by default.

Perhaps try a ~10k pull-up on UPDI?

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

I didnt need any pull up resistor on UPDI, I am using a custom board and flashing my program through UPDI. please refer to this datasheet

 

Are you connecting it right ?

 

Atmel-ICE AVR port pin / Your board (Tiny816)

Pin 2 (GND) ----------->   GND

Pin 3 (TDO) ----------->   PA0

Pin 4 (VTG) ----------->    V+

 

- check the cable signals with a multimeter from point a to b. if its fine

- connect the atmel-ICE VCC somewhere else and not from VDD

- Check GND to GND

- Stupid point: Check that your board is already powered, means check when not connecting the Atmel-ICE and the board is powered, how much voltage on VDD

 

give a feedback, if it didnt work please take a picture and schematics for how u are connecting ur board to atmel-ICE

 

EDIT: datasheet page 19

 

Last Edited: Wed. Dec 19, 2018 - 09:53 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Uprom wrote:

Yes, there is +5V from external supply.

 

I would mainly need:

- confirmation there is only 1 pin needed for programming, it is PA0_UPDI (+VCC and GND)

- confirmation new chips have PA0 configured as UPDI and not as GPIO (because then 12V programming would be necessary to change the fuse)

 

I confirm what you said but please check the points i refered you to

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

Thank you all for your comments and advices.

Microcontrollers were not soldered properly on both samples I made.

After resoldering the micros several times it started to work.

 

I still don't understand how is that possible, I checked there was no short connection between adjacent pads.

In order to check that pins are solderd to pads I am used to use diode-meter, it shows voltage drop on input-protection-schottky-diodes @1mA - I did this, no problems found.

 

I worked with QFN64 and 48 before (SAMD21, pitch 0.5mm) and made >10 prototype boards without any problem, so I underestimated soldering issues;

not easy to solder this VQFN20 (pitch 0.45mm).

Once more I apollogize for this thread.

 

@Moe123 - yes, this cable is correct, and no pull-up needed.

 

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

Good, have fun programming/debugging :)

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

Lesson learned, ALWAYS check for solder errors on NEW boards! 

Been there, seen that many times!

Good luck with your project.

 

Jim

 

 

(Possum Lodge oath) Quando omni flunkus, moritati.

"I thought growing old would take longer"

 

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

Hi, Moe: I had the same problem today. I am working on attiny816 for an accelerometer operation. I did not connect the attiny816 to any sensors yet, just bare attiny816 with three wires soldered. The device tiny816 is supplied with 4.5v power through battery, PA0/UPDI is connected to the atmel-ice pin 3. Checked the connections using multimeter, and also check it under magnifier. Soldering connections are ok, but when I went to "device programing", I cannot read the signature, and the read target voltage is 0v when using JTAGICE3, or 0.2V when using ATMEL-ICE. Would you please give some advice on what is wrong for my setting?  Thanks,

 

Jun

Jun

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

What does atmel-ice pin 3 mean?

 

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

Sorry for not being clear. Using ATMEL ICE Pin3 which is TDO ,as UPDI_DATA for program.

Jun

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

This is it.

Connect all PINs 2, 3 and 4.

The ICE will not connect if VTG cannot detect the target voltage.

 

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

Thank you, it is working now after following you advice by connecting Pin2 and Pin4 to GND and VTG to the device's GND and VCC. Thanks again.

Jun

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

Remember the reset line has different config than other IOs when you do your diode test.

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

thanks, I am not going to use this pin and will not change this pin to reset. 

Jun