Author Topic: Get "micronucleus: 2: Syntax error: "(" unexpected on Ubuntu during upload  (Read 2821 times)

tozz88

  • Newbie
  • *
  • Posts: 15
When trying to upload the initial test program I get the following error:

Sketch uses 912 bytes (6%) of program storage space. Maximum is 14,844 bytes.
Global variables use 9 bytes of dynamic memory.
Running Digispark Uploader...
Plug in device now... (will timeout in 60 seconds)
/home/telegent/Sketchbook/hardware/digistump/avr/tools/micronucleus: 2: /home/telegent/Sketchbook/hardware/digistump/avr/tools/micronucleus: Syntax error: "(" unexpected

Here are my particulars:
arduino and arduino-core installed
using latest 32 bit arduino-1.5.8 from arduino.cc
have downloaded hardware/digistump file and placed in Sketchbook
created /etc/udev/rules.d/49-micronucleus.rules with contents cut and pasted from instructions
Running Ubuntu 12.04 LTS

Sadly the error is pretty cryptic so I don't even know where to start to look

any ideas?

tozz88

  • Newbie
  • *
  • Posts: 15
Re: Get "micronucleus: 2: Syntax error: "(" unexpected on Ubuntu during upload
« Reply #1 on: December 13, 2014, 12:08:07 pm »
Here is the verbose version of the upload:

Sketch uses 912 bytes (6%) of program storage space. Maximum is 14,844 bytes.
Global variables use 9 bytes of dynamic memory.
/home/telegent/Sketchbook/hardware/digistump/avr/tools/avrdude -cdigispark --timeout 60 -Uflash:w:/tmp/build8218465358024197802.tmp/digispark_test.cpp.hex:i
Running Digispark Uploader...
Plug in device now... (will timeout in 60 seconds)
/home/telegent/Sketchbook/hardware/digistump/avr/tools/micronucleus: 2: /home/telegent/Sketchbook/hardware/digistump/avr/tools/micronucleus: Syntax error: "(" unexpected


I checked the .hex file but there are no "(" in the file. What other files does micronucleus open?