Can't figure out how to program ATtiny817

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

Hello~

 

I'm currently working with the ATtiny817-XMini dev board and I'm planning on ordering a PCB soon with the ATtiny817. The plan was to order today, but we realized a key issue- we're not sure how to program the chips.

 

The more common ATtinys (particularly the 85) have plenty of documentation and resources online, with various programmer boards and even tutorials on how to use an Arduino Uno to program the ATtinys. However, for the 817 (and the corresponding series), there seems to be extremely little, from what pins to connect to AVR programmers that are compatible with it.

 

I'm sorry if I'm overlooking something important, but after triple checking and discussing the matter with a few different individuals, I'm still at a lost on how to program the ATtiny's that will go onto our PCB. The two dev/eval boards use the Atmel Mini Embedded Debugger (as well as an example application from Atmel), but otherwise, I'm at a complete loss.

 

Thank you for any and all help.

Last Edited: Tue. Nov 8, 2016 - 06:14 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

It's (yet another) new mechanism isn't it? I think they call it UPDI or something. Presumably that's to prevent the whole world using $3 USBAsp's and forcing them to buy $100 Atmel-ICEs ?

 

EDIT, yup, the whole of chapter 33 in the datasheet is dedicated to "Unified Program and Debug Interface"...

 

Last Edited: Tue. Nov 8, 2016 - 06:19 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thank you for the UPDI reference, and we're looking over it again at the moment. However, there are two issues I'm not sure about: first, I can't find much outside of the datasheet that references UPDI. And second, earlier we thought we would need to get a bootloader onto the chip itself first to use UPDI in the first place, which we're also unsure how to do. Sorry if this answer is pretty obvious, but would we be able to use UPDI without even a bootloader (assuming we figure out how to use the proprietary method in the first place, hardware wise)? 

On another interesting note, on this datasheet it's chapter 34 (just in case there are key differences between the two).

Once again, thank you!

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

The idea of a bootloader is to allow you to program (and update) the device without a special tool that uses something like UPDI. So you'd use an ICE to upload your bootloader onto the ATtiny817 then say you had your device connected to a USB port of a PC via a UART to USB converter IC then you could use the PC to program the application image. 

 

Edit: Funnily enough the ATMEL-ICE page on the Atmel website has no mention of being compatible with UPDI?

Last Edited: Tue. Nov 8, 2016 - 07:33 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

jawadmn wrote:
first, I can't find much outside of the datasheet that references UPDI.

So I started digging a bit, beginning with the User Guide:

http://www.atmel.com/Images/Atme...

 

On the first page:

The Xplained Mini series evaluation kits include an on-board mini embedded
debugger, and no external tools are necessary to program the ATtiny817.
 

Going further, the "drivers" are auto-detected in Studio.  [guess I'll need to go to Studio7 finally, eh?]

 

 

But I see no mention on how the provided interface can be used to program other '817s.  Some e.g. Cortex dev boards allow snapping off the programmer piece, or a header or similar, to be able to use that part of the dev board for other units.

 

Perhaps one can use the UPDI "disconnect point"...