Author Topic: Arduino 1.6.4 Digispark newbie  (Read 3144 times)

rich00

  • Newbie
  • *
  • Posts: 1
Arduino 1.6.4 Digispark newbie
« on: May 25, 2015, 07:05:14 am »
Hi all,

I just  received my digispark and trying upload the blink sketch and get the following error.
I'm using a usb 2.0 hub and on arduino IDE 1.6.4.

I have the ATTINY board seleceted and Processor attiny 85 selected clock set at 16 MHZ external. The port is greyed out. ANy ideas ?

I can get an UNO and a micro connected and sketches uploaded ok but not a digisaprk.

It shows uploading with the below error.

Sketch uses 790 bytes (9%) of program storage space. Maximum is 8,192 bytes.
Global variables use 9 bytes of dynamic memory.
java.lang.NullPointerException
   at cc.arduino.packages.uploaders.SerialUploader.uploadUsingProgrammer(SerialUploader.java:252)
   at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:78)
   at processing.app.debug.Compiler.upload(Compiler.java:163)
   at processing.app.Sketch.upload(Sketch.java:1220)
   at processing.app.Sketch.exportApplet(Sketch.java:1194)
   at processing.app.Sketch.exportApplet(Sketch.java:1166)
   at processing.app.Editor$DefaultExportHandler.run(Editor.java:2487)
   at java.lang.Thread.run(Thread.java:745)

dougal

  • Sr. Member
  • ****
  • Posts: 289
Re: Arduino 1.6.4 Digispark newbie
« Reply #1 on: May 26, 2015, 07:33:30 am »
If you haven't already, you need to install the new integration files:

  https://github.com/digistump/DigistumpArduino

And make sure you choose "micronucleus" as your Programmer.

bianchifan

  • Newbie
  • *
  • Posts: 4
Re: Arduino 1.6.4 Digispark newbie
« Reply #2 on: June 03, 2015, 05:16:07 am »
I never was successful with Digistump/Digigispark hardware addons.
I switched to an alternative, full explanation here -> http://highlowtech.org/?p=1695

I'm using https://github.com/damellis/attiny/tree/ide-1.6.x

Naked Attiny85/Digispark plus OLED via I2C are working like a charme... love it!