Recently I had found an intersting project on youtube,that uses an ATtiny45,but the problem is that it uses a .hex file and I had tried to use Xloader,but it freezes and works only with Arduino Uno,Mega and nano.Can someone help me?
Here is the original video:
and .zip file with .hex file: https://drive.google.com/file/d/18RHu1mRysgIyZgAZpnH1My8_tV7FsqGi/view
Hi @wintech,
You will need to use avrdude to load it. This will also require a programmer like the USBasp. The programmer is very inexpensive and can be found online for usually less than 5$USD.
As for avrdude, you will need to get the AVR gcc toolset for whatever OS you run.
Scott
Thanks a lot!!!But I have question,how do I use AVRdude or AVR gcc?
Something similar to this from the command line: avrdude -c usbasp -p t45 -u -U flash:w:yourfile.hex
Also, there are a couple of avrdude tutorials about on the net.
Hope this helps,
Scott
Not sure if this would help your specific situation, but I've programmed ATtiny85/45s with this method.
--
Dale
@newburypi thanks
@wintech Let us know how you make out and which method you ended up using. I can learn from your experience.
DroneBot Workshop Robotics Engineer
James
Sorry @robo-pi for my late reply.I will do @jscottbee's method(USBasp and ATMEL studio 7)
Yes. This is the best video I've found on USBasp. I've been using Arduino IDE and PlatformIO as well. Things get a little hairier when using Linux, but can be fixed up with some quick command-line work.
--
Dale