Author Topic: How to upload .hex files into a ATtiny45?  (Read 1513 times)

0 Members and 1 Guest are viewing this topic.

Offline wintechTopic starter

  • Contributor
  • Posts: 20
  • Country: ro
How to upload .hex files into a ATtiny45?
« on: July 18, 2019, 10:35:15 am »
Recently I have found a cool project that uses an ATtiny45 and the problem is that it uses a .hex file.Can someone help me?
https://www.youtube.com/watch?time_continue=1&v=T9_tprW_3cc
 
The following users thanked this post: Mechatrommer

Offline andersm

  • Super Contributor
  • ***
  • Posts: 1198
  • Country: fi
Re: How to upload .hex files into a ATtiny45?
« Reply #1 on: July 18, 2019, 12:02:01 pm »
Most programming tools (eg. AVRDUDE) can handle ihex or srec just fine. What tools are you using, what have you tried, what did not work?
 
The following users thanked this post: wintech

Offline wintechTopic starter

  • Contributor
  • Posts: 20
  • Country: ro
Re: How to upload .hex files into a ATtiny45?
« Reply #2 on: July 18, 2019, 12:11:10 pm »
Well I had tried Xloader ,but the program freezed.
 

Online oPossum

  • Super Contributor
  • ***
  • Posts: 1415
  • Country: us
  • Very dangerous - may attack at any time
Re: How to upload .hex files into a ATtiny45?
« Reply #3 on: July 18, 2019, 04:26:18 pm »
  • USBASP
  • Arduino using Arduino as ISP sketch
  • Microchip MPLAB Snap
  • Microchip PICkit 4

Only the PICkit 4 will be able to program the '45 a second time because that audio player code disables the reset line and that prevents using SPI programming.
« Last Edit: July 19, 2019, 02:27:14 am by oPossum »
 
The following users thanked this post: wintech

Online Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11535
  • Country: my
  • reassessing directives...
Re: How to upload .hex files into a ATtiny45?
« Reply #4 on: July 18, 2019, 05:30:00 pm »
because that audio player code disables the reset line and that prevents using SPI programming.
that sucks as the project can be educative. maybe someone can port the project to arduino board. code will be edited and compiled in avr studio, and hex uploaded with avrdude, no programmer HW is needed.
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 
The following users thanked this post: wintech

Offline andersm

  • Super Contributor
  • ***
  • Posts: 1198
  • Country: fi
Re: How to upload .hex files into a ATtiny45?
« Reply #5 on: July 18, 2019, 08:13:35 pm »
I've never heard of Xloader, but it seems to be for uploading Arduino sketches, so presumably it needs the Arduino bootloader to be present in the device to work.

Offline james_s

  • Super Contributor
  • ***
  • Posts: 21611
  • Country: us
Re: How to upload .hex files into a ATtiny45?
« Reply #6 on: July 18, 2019, 10:47:50 pm »
AVR programmers are dirt cheap and .hex is the standard file format that has been used for decades. Not sure what the issue is.
 
The following users thanked this post: wintech

Offline amyk

  • Super Contributor
  • ***
  • Posts: 8240
Re: How to upload .hex files into a ATtiny45?
« Reply #7 on: July 19, 2019, 01:20:48 am »
because that audio player code disables the reset line and that prevents using SPI programming.
that sucks as the project can be educative. maybe someone can port the project to arduino board. code will be edited and compiled in avr studio, and hex uploaded with avrdude, no programmer HW is needed.
It can also be "educative" in the sense that it teaches you to use a real programmer. ;) Either that, or build your own HVSP eraser --- some switches, LEDs, and a 12V supply are sufficient if all you need to do is a full chip erase and a reset of the fuses.
 

Online Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11535
  • Country: my
  • reassessing directives...
Re: How to upload .hex files into a ATtiny45?
« Reply #8 on: July 19, 2019, 01:39:30 am »
so in order to reprogram it we have to 1) HVP erase it with a tool, and then 2) normal programming with another tool. or... buy or spend another time to diy another programmer capable of HV programming and throw our existing LVP/ICSP in a bin.. or as i suggested, port this to arduino board that every artists loved, hence no programmer needed, when we got feed up with the project we can recycle the arduino board for another project ::)
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Offline james_s

  • Super Contributor
  • ***
  • Posts: 21611
  • Country: us
Re: How to upload .hex files into a ATtiny45?
« Reply #9 on: July 19, 2019, 01:53:36 am »
But you can get an AVR programmer for like $5, or use an arduino as a programmer, what's the problem? Arduino is a great starting point but it's a crutch, sooner or later the goal should be to graduate on to a real development platform.
 

Online Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11535
  • Country: my
  • reassessing directives...
Re: How to upload .hex files into a ATtiny45?
« Reply #10 on: July 19, 2019, 02:10:51 am »
but programmer with HVP capability is not $5, and we already have a descent enclosed avr knock off programmer. the point for arduino is development stage where we can keep upgrading the FW and reusing it. once firmed it can be transported to real circuit. but the fact that atTiny45 is running out of pin, imho its wise to switch to another avr mcu, someone is going to do it anyway, say for eg, if we want lcd and up down switches to select song/file. and looking at the circuit, it less ideal since the speaker is directly driven from the attiny pin, only good for small speaker. so if we want bigger speaker, changes to original circuit is inevitable. ymmv.
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Offline gardner

  • Regular Contributor
  • *
  • Posts: 151
  • Country: ca
Re: How to upload .hex files into a ATtiny45?
« Reply #11 on: July 19, 2019, 03:33:07 am »
I used my trusty TL866.  I gather it does HVSP, at least when the chip is in the socket.  I have never had trouble with miss-set fuses, at any rate.
--- Gardner
 
The following users thanked this post: Mechatrommer

Offline ledtester

  • Super Contributor
  • ***
  • Posts: 3032
  • Country: us
Re: How to upload .hex files into a ATtiny45?
« Reply #12 on: July 19, 2019, 01:10:20 pm »
Maybe this is the project:

http://elm-chan.org/works/sd8p/report.html

There's a link for the source code at the bottom.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf