Go Down

Topic: Mega as an AVR ISP (Read 1 time) previous topic - next topic

permnoob

I am pulling ALLLLL my hair out over this.  It should be simple, everyone agrees with me it should be simple.  I have a mega R3 and an ubuntu laptop and a blank attiny2313.

I loaded the arduino as an isp sketch, with the delay changed from 40 to 20 ms in heartbeat.
I have a home made cable (good crimps!) between the arduino and the breadboard
when I try to use avrdude, the heartbeat LED freezes and it just sits til I hit reset.  the RX light on the board flashes maybe once, and thats it.  AVRDUDE repsonds that the programmer is not responding, then says its work here is done and thanks me.  A thank you has never been so sinister.  I schurnk the delay down to 10 for kicks, no help.  put a 10uf cap between reset and gnd and occasionally get a programmer out of sync 0x15, but thats it.  I tried a 1k ohm resistor between reset and VCC on the mega, still didn't help.

wits end.  there are a hundrered threads on this, and even more walk throughs.  I can't get past this little simple project?
both those lines below fail me.   please, before I combust, help.
Code: [Select]

avrdude -p attiny2313-c avrisp -P /dev/ttyACM0

avrdude -p attiny2313-c avrisp -P /dev/ttyACM0 -b 19200


permnoob

oh I have at my disposal the following boards:

arduino ethernet
arduino mega R3
Sanguino

I don't care whatI use, I just want one that WORKs as an ISCP!

Erni

I use an Uno and windows.
Anyway this works, the partno is t2313

Code: [Select]
avrdude -P COM20 -b 19200 -p t2313 -c avrisp

permnoob

#3
Oct 04, 2012, 06:32 pm Last Edit: Oct 04, 2012, 06:37 pm by permnoob Reason: 1
those were typos,, not in my original attempt to upload.  Also, isnt the t2313 different than a attiny2313?

edit, my mistake, 2313 is different from t2313, makes more sense

permnoob

is it impossible to use a MEGA R3 for this?  I tried a .22 cap between reset and 5v, as well as a 10 uf, no dice.

permnoob

I am going to try that, I am almost ready to open my spare mega (sealed in box) and see if its the device, but that seems unlikely because it works in every other fasion.  Were you using 1.0?

As for pins, I am coming directly off the ICSP header on the MEGA for 5 connections, and pin 10 for reset.  which should be the same as what is in that picture. BUT I WILL TRY IT ANYWAYS BECAUSE ALKVNALDKFJLWKE.

the beutry of electronics is everything should be repeatable... Also for the record, do you recall the size of the capacitor you used?  and your mega was an R3, yes?

baselsw

#6
Oct 05, 2012, 01:39 am Last Edit: Oct 05, 2012, 01:45 am by baselsw Reason: 1
I've used a MEGA to program Attiny2313 with no problems. Just don't forget the capacitor between reset and ground (on the mega). Try this line and post the output here (in case it doesn't work).
Code: [Select]
avrdude -c stk500v1 -P /dev/ttyACM0 -p t2313 -b 19200 -v -v


Edit: This is how everything should be connected (The LED is optional).
Edit 2: The capacitor is 10uF.


Go Up