Author Topic: Problem with uploading sketches to Digispark in OSX 10.4 and 10.6  (Read 3471 times)

Dr B.

  • Newbie
  • *
  • Posts: 1
I have had problems uploading the DigisparkRGB sketch (and all others) to the Digispark. The sketches uploaded onto the Digispark ONLY on ONE computer running OSX 10.7.  It still did not work on two other computers running OSX 10.4 and 10.6 (both of these were Intel Core Duo's running at 1.83 GHz). The one running OSX 10.6 gave a different error message than the one that I listed, above:
 java.io.IOException: Cannot run program "/Applications/DigisparkArduino-MacOSX-1.0.4-May19/DigisparkArduino-MacOSX-1.0.4-May19/DigisparkArduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avrdude": error=86, Bad CPU type in executable
 at java.lang.ProcessBuilder.start(ProcessBuilder.java:470)
 at java.lang.Runtime.exec(Runtime.java:593)
 at java.lang.Runtime.exec(Runtime.java:466)
 at processing.app.debug.Uploader.executeUploadCommand(Uploader.java:125)
 at processing.app.debug.AvrdudeUploader.avrdude(AvrdudeUploader.java:331)
 at processing.app.debug.AvrdudeUploader.uploadUsingPreferences(AvrdudeUploader.java:64)
 at processing.app.Sketch.upload(Sketch.java:1671)
 at processing.app.Sketch.exportApplet(Sketch.java:1627)
 at processing.app.Sketch.exportApplet(Sketch.java:1599)
 at processing.app.Editor$DefaultExportHandler.run(Editor.java:2380)
 at java.lang.Thread.run(Thread.java:680)
Caused by: java.io.IOException: error=86, Bad CPU type in executable
 at java.lang.UNIXProcess.forkAndExec(Native Method)
 at java.lang.UNIXProcess.(UNIXProcess.java:53)
 at java.lang.ProcessImpl.start(ProcessImpl.java:91)
 at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
 ... 10 more
 
Apparently the Digispark IDE has a problem with the "Bad CPU type" (in two of the computers?).

Are these CPU chips too old to be compatible with the current Digispark IDE?
Will the Digispark IDE be patched to work on earlier versions of OSX (10.4, 10.6) and older Intel Core Duo processors?
 

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Re: Problem with uploading sketches to Digispark in OSX 10.4 and 10.6
« Reply #1 on: June 03, 2013, 02:59:46 pm »
This error occurs on 32-bit OSX systems - and can be solved by compiling the avrdude replacement and micronucleus on the 32 bit machine - we only have a 64 bit OSX system here, which is why we haven't been able to do it. If anyone does compile them on a 32bit machine it'd be great if they could upload them (or tell us how to compile for 32 bit on 64 bit)


Sources are here:
https://github.com/Bluebie/micronucleus-t85
https://github.com/digistump/avr-dummy