I uploaded the ArduinoISP to my duemilanove, then, when trying to upload the blink example to an ATtiny2313, I got:
java.lang.NullPointerException
at processing.app.debug.AvrdudeUploader.getProgrammerCommands(AvrdudeUploader.java:106)
at processing.app.debug.AvrdudeUploader.uploadUsingPreferences(AvrdudeUploader.java:68)
at processing.app.Sketch.upload(Sketch.java:1603)
at processing.app.Sketch.exportApplet(Sketch.java:1568)
at processing.app.Sketch.exportApplet(Sketch.java:1524)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2293)
at java.lang.Thread.run(Thread.java:637)
I am using codingbadly's cores, and have followed hlt's tutorial and the arduinoisp tutorial, to no luck.
Yep... I just found that. However, the timing seems to be off... while running the blink example, the 1Mhz clock behaved perfectly, but the 8Mhz clock was VERY slow. I checked the boards.txt file for errors, and don't see any... Any ideas?
When a processor leaves the factory, it is configured to run at 1 MHz using the internal oscillator. You can either change the fuses or fiddle with a register to get the processor running at 8 MHz. I suggest changing the fuses...
• Ensure the Arduino ISP sketch is loaded and ready
• Connect the Arduino to the ATtiny2313 as you would for programming
• Start the Arduino IDE
• Select the "ATtiny2313 @ 8 MHz" board
• Click [u]Tools[/u] / [u]Burn Bootloader[/u] / [u]Arduino as ISP[/u]
When finished, the ATtiny2313 is erased and configured to run at 8 MHz.