Attiny85 with Arduino Leonardo as ISP, on OSX.

Hi all,

just spent 5 hours or so getting this to work, following this tutorial :High-Low Tech – Programming an ATtiny w/ Arduino 1.6 (or 1.0)

The breadboarded circuit is OK (checked 50 times), and the Attiny shows up in boards.

However, I can't get even BLINK to compile for it, always get this error :

processing.app.debug.RunnerException
at processing.app.debug.Compiler.getCommandCompilerCPP(Compiler.java:562)
at processing.app.debug.Compiler.compileFiles(Compiler.java:254)
at processing.app.debug.Compiler.compileSketch(Compiler.java:607)
at processing.app.debug.Compiler.compile(Compiler.java:104)
at processing.app.Sketch.build(Sketch.java:1542)
at processing.app.Sketch.exportApplet(Sketch.java:1564)
at processing.app.Sketch.exportApplet(Sketch.java:1550)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2399)
at java.lang.Thread.run(Thread.java:695)
Caused by: java.lang.NullPointerException
at processing.app.helpers.StringReplacer.replaceFromMapping(StringReplacer.java:99)
at processing.app.helpers.StringReplacer.replaceFromMapping(StringReplacer.java:91)
at processing.app.helpers.StringReplacer.formatAndSplit(StringReplacer.java:39)
at processing.app.debug.Compiler.getCommandCompilerCPP(Compiler.java:560)
... 8 more

This happens even in an empty sketch... :astonished:
Everything compiles when I change board to Leonardo though...

Also, I tried burning the boot loader again and this fails with this output :

Arduino: 1.5.5 (Mac OS X), Board: "ATtiny85 (internal 1 MHz clock)"

java.lang.NullPointerException
at java.util.HashMap.putAll(HashMap.java:498)
at cc.arduino.packages.uploaders.SerialUploader.burnBootloader(SerialUploader.java:272)
at processing.app.Editor$47.run(Editor.java:2571)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:715)
at java.awt.EventQueue.access$400(EventQueue.java:82)
at java.awt.EventQueue$2.run(EventQueue.java:676)
at java.awt.EventQueue$2.run(EventQueue.java:674)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:685)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.

:grin:

Can anyone much smarter than me please tell me what I am doing wrong here?

Thanks

Programming an ATtiny w/ Arduino_ 1.0 _

So the latest is not always the greatest right??? Didn't see that one coming... Thank you VERY much!!! 8)

This core will probably work with Arduino 1.5.5 ...
https://code.google.com/p/arduino-tiny/

Second link in the center section.

Thank you!