Digistump Forums
The Digispark => Digispark (Original) Support => Topic started by: King Beetle on September 06, 2015, 07:34:48 pm
-
I am using the Arduino IDE version 1.6.5
Running 64bit Manjaro Linux (an Arch based distro)
I have added the udev rules.
The compiled version of micronucleus that installed when I added the Digispark boards to the IDE didn't execute, (it would crash after the erase, and before the upload) but after downloading the latest micronucleus and recompiling, it now uploads to the Digispark.
The Digispark is recognized when I am prompted to plug it in, and the process starts, but the issue I am having is that after the upload is complete, it fails to execute the program, generating an "error -1"
Shown below is the output from the IDE:
Running Digispark Uploader...
Plug in device now... (will timeout in 60 seconds)
> Please plug in the device ...
> Press CTRL+C to terminate the program.
> Device is found!
connecting: 16% complete
connecting: 22% complete
connecting: 28% complete
connecting: 33% complete
> Device has firmware version 1.11
> Available space for user applications: 6330 bytes
> Suggested sleep time between sending pages: 8ms
> Whole page count: 99 page size: 64
> Erase function sleep duration: 792ms
parsing: 50% complete
> Erasing the memory ...
erasing: 55% complete
erasing: 60% complete
erasing: 65% complete
> Starting to upload ...
writing: 70% complete
writing: 75% complete
writing: 80% complete
> Starting the user app ...
>> Run error -1 has occured ...
>> Please unplug the device and restart the program.
Any ideas on what is happening and what I need to do to make it work? I have spent countless hours getting this far, and I really want to play with my new toy. I have scoured the web for answers and gotten nowhere.
-
Sixty-plus views and two weeks later and no one even has a suggestion?
I'm more than a little disappointed that I can't get any help on the manufacturer's own product forum.
The Digispark is such a nifty little device and I REALLY want to experiment with it, but I'm frustrated that I can't get any help.
-
The "error -1" 's I got were 'flash write' on upload not RUN.
You don't give any indication what you are uploading? And if you've had any prior success or problems in uploading. Try the simple blink sketch perhaps. Do you have a second Digispark unit? Have you tried other cables - all the usual boilerplate may or may not apply - perhaps your IDE environment is 'non-functional' - or it may relate to your unique Linux install.
When I forum search for (with the quotes) "run error" I find your post and one other that may relate: http://digistump.com/board/index.php/topic,1696.msg7837.html#msg7837 (http://digistump.com/board/index.php/topic,1696.msg7837.html#msg7837)
You'll note how that post included the sketch involved so it could be diagnosed. Another place I visit has this as the page header: "Forum Rule: Always post complete source code & details to reproduce any issue! " - without the details from your situation providing details there is nothing to go on
Digistump has focus on wrapping his last Kickstarter - and many of regulars here (like me) may be working on other things and waiting on that to ship. Without an indication of what you are doing and what you tried to resolve it, a suggestion - other than boiler plate you can read on many other threads, is all that can be offered. hopefully this will help - directly or indirectly.
It is easy to get frustrated - showing it though without showing work on your end - at best usually gets you a louder & longer bunch of silence - rarely any attempt at a reasoned reply - and more easily appropriately flamed.