How to upload the hex file to ATTiny via USB to TTL adapter?

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

Is it even possible?

 

I guess, it should be, I have managed to do it on ESP8266, but via Arduino IDE...

 

In addition, what is the software that could be used e.g. xloader, but on mac to upload hex via USB to ttl adapter (e.g. cp 2102 module) to the at tiny?

 

btw found the hex loader, but it does not support at tiny...

 

Best.

Bravo!!!

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

mu234 wrote:
Is it even possible?
Not immediately - for the AVR to accept code just using "UART" it has to be preloaded with some code called a "bootloader". To do that you need a "real" programmer to start with (and then if you have one of those you don't really need the bootloader anyway!)
mu234 wrote:
I have managed to do it on ESP8266,
"Fancier" chips often have some kind of bootloading mechanism pre-programmed in either flash or sometimes even burned into ROM. So just because an ESP did it does not imply that an AVR can do it.

 

(the only (AVR) chips Atmel tend to supply preloaded with a bootloading mechanism are the models that also have USB in which case Atmel usually put their "DFU" bootloader in as they deliver the chips).

 

What you need is a visit to eBay to spend $2 on a "USBAsp". But be sure it has support for the tiny you want to use. If it's one of the "brain dead" ones (tiny 4/5/9/10/20) then they use a programming mechanism that a USBAsp may not have support for. Same may be true for these very new Tiny like 817. But all the "traditional" ones use "ISP" and should be programmable with the $2 device.