Try to upload AtTiny85 .hex using atmega2560 as ISP

Hello,

I configured my Atmega2560 as ISP to program a AtTiny85. I used ArduinoISP sample and try the AtTiny85 with the basic Blink sample. It's works well.

My project is to a upload a .hex file to the AtTiny85. I don't have the "Arduino IDE" project/code of this .hex then I can't do the upload as the Blink sample.

I use this command line : .\avrdude.exe -v -v -pattiny85 -cstk500v1 -PCOM6 -b19200 -Uflash:w:tvbgone.hex -F -C avrdude.conf

The .hex come from : TV-B-Gone Version C-Hack Mk I – C-Hack

Do I need to buy a real ISP programmer ? Did I missed sommething ?
( Is the AtMega2560 with ArduinoIsp a real ISP programmer ?)

Thanks !

( I'm not really comfortable with all arduino and ISP thing :confused: )

avrdude.txt (7.84 KB)

Actually I cannot upload the blink sample from Arduino IDE in a new AtTiny85 nor in the first one. (however the led still blinking)

I cannot "Burn boot loader" on the two AtTiny85, I don't know what I changed...

avrdude: Device signature = 0x000000
avrdude: Yikes!  Invalid device signature.
         Double check connections and try again, or use -F to override
         this check.

I will investigate.

(I have the same "Invalid device signature." with the avrdude that's why I used the -F )

Ok I fixed my problem with #define USE_OLD_STYLE_WIRING in the ArduinoISP.
I didn't know how the Blink Sample could work the first time....

Now I can write and read hex files.

I suspect that that issue is just a matter of the wrong pin being used to drive reset?

As an aside, I would recommend two things:

Point avrdude to the avrdude.conf that comes with my core (you can tell it to upload, and copy the command from the IDE output pane) The t85 is fine with the default one IIRC, but a lot of other attiny parts aren't (ie, the good ones). Also use my core if you aren't already if you're going to be using the IDE to generate hex files - in addition to the better feature set of my core, with my core "export compiled binary" will also give you an assembly listing (in the sketch folder) to assist with finding what is hogging all that flash.

Get a real ISP programmer - either a USBAsp (be sure to get the 10p-6p adapter with it), or a cheap nano, load arduino as ISP onto it, solder 10uF cap between reset and ground, solder the ISP wires going to 2x3 pin dupont connector on, and stick em to the back with hot-glue (so they don't fatigue and break off in handling). Either way, it's like under $4 shipped, and then you have a dedicated programmer. I have a bin (4" x 4" x 2" filled to overflowing with USBAsps, USBTinyISP's and so-wired nanos - and a similar bin full of serial adapters) - but maybe I'm not typical on that sort of thing... I also just buy any module that's cheap and looks vaguely interesting on ebay, just in case I decide I want such a thing, so I don't have to wait for shipping, by which time I will have lost interest...

Thanks you !

I installed http://drazzy.com/package_drazzy.com_index.json and I used the avrdude.conf with an updated avrdude and it's working.

I will get a real ISP programmer. The AtTiny are cool !