I succeeded making my Arduino UNO a ISP programmer.
Now I want to program my ATTiny 2313, in the software you can only choose between 1MHz and 8MHz, but I only have a 16MHz crystal.
Is there a way I can program it at 16Mhz?
The current ATtiny2313A-20PU chips can run at up to 20 MHz. You will need to change the 'boards.txt' file. At a minimum you will want to change F_CPU to 1600000L so that timers work correctly. If the 1 MHz and 8 MHz boards use the internal 8MHz oscillator you will need to change the fuse settings to select the external crystal clock reference.
I changed the CPU thing to 16000000L.
Where to change te fuse settings and to what?
With changing the attiny2313at8.build.f_cpu to 16000000L I still get this error:
avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x14
avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x01
avrdude: stk500_initialize(): (a) protocol error, expect=0x14, resp=0x10
avrdude: initialization failed, rc=-1
- Double check connections and try again, or use -F to override*
- this check.*
avrdude: stk500_disable(): unknown response=0x12
Which core are you using?
Ehh, good question..?
Where can I see that?
You downloaded and installed something to get Arduino to support the 2313 processor. What did you download?
I followed this tutorial:
http://provideyourown.com/2011/arduino-program-attiny/
Programming it @ 8MHz internal clock is also a good solution. Then I don't even need a crystal.
Can someone help me with doing that?
Work through that tutorial using your 2313 processor instead of an 85 processor. Once you are able to program your 2313 @ 1 MHz, report back for further instructions.
I did that tutorial again, and I think i'm a step further.
Now I only get this error:
Yikes! Invalid device signature.
- Double check connections and try again, or use -F to override*
- this check.*
I did select the ATTiny2313 @ 8MHz.
I didn't modify anything except the boards.txt ( to select the upload.using arduino isp )
OMG IT WORKED, probably some loose connection...