I’m using ubuntu, attempting to upload small test sketch to digistump digispark v2.
Have made the recommended changes to udev rules as outlined on the digistump troubleshooting linux page.
Unfortunately, no matter what I try I am seeing the following:
jeremy@makebook:~/Work/handscanner$ pio run -v -t upload
[Fri Nov 10 21:19:57 2017] Processing digispark-tiny (platform: atmelavr, board: digispark-tiny, framework: arduino)
------------------------------------------------------------------------------------------------------------
Collected 35 compatible libraries
Looking for dependencies...
Project does not have dependencies
BeforeUpload(["upload"], [".pioenvs/digispark-tiny/firmware.hex"])
Please unplug/plug device ...
micronucleus -c digispark --timeout 60 .pioenvs/digispark-tiny/firmware.hex
> Please plug in the device ...
> Press CTRL+C to terminate the program.
> Device is found!
connecting: 40% complete
> Device has firmware version 1.2
> Available space for user applications: 6010 bytes
> Suggested sleep time between sending pages: 8ms
> Whole page count: 94 page size: 64
> Erase function sleep duration: 752ms
parsing: 40% complete
parsing: 60% complete
> Erasing the memory ...
erasing: 79% complete
>> Flash erase error -71 has occured ...
>> Please unplug the device and restart the program.
======================================== [ERROR] Took 7.85 seconds ========================================
I have tried this with 2 different digisparks and am seeing the same error. This is directly connected to my laptop, no usb hub. I have tried all usb ports.
Any ideas or help greatly appreciated.
Thanks!
edit - I just tried this on my macbook pro and it worked… Must be something on the linux laptop.