Author Topic: Flash write error  (Read 4440 times)

KnutKnutsen

  • Newbie
  • *
  • Posts: 2
Flash write error
« on: November 13, 2014, 11:57:44 am »
Hi everyone,

I've got my digispark pro (finally) yesterday, after 10 days of waiting due to german customs. (Not to mention the endless packaging phase ;P)

After soldering the headers, I already tried some examples, which were fully working. I also buyed one of the DigiLEDs and could execute the example from the wiki.

But then I tried to make a program that changes constantly the color of the LED. I (successfully) uploaded the sketch once, but there was no change of the color.

But the actual problem is, that if I try to upload some code, the programmer puts the following to the console:

Code: [Select]
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 2.0
> Device signature: 0x1e9487
> Available space for user applications: 14970 bytes
> Suggested sleep time between sending pages: 7ms
> Whole page count: 234  page size: 64
> Erase function sleep duration: 1638ms
parsing: 50% complete
> Erasing the memory ...
erasing: 55% complete
erasing: 60% complete
erasing: 65% complete
> Starting to upload ...
>> Flash write error -1 has occured ...
>> Please unplug the device and restart the program.

Does anyone of you has some advices for me to fix the problem ? =)

Thanks and Greetings
Christian
« Last Edit: November 14, 2014, 05:49:03 am by KnutKnutsen »

KnutKnutsen

  • Newbie
  • *
  • Posts: 2
Re: Flash write error
« Reply #1 on: November 13, 2014, 12:18:33 pm »
Ok sorry,

know it works again. I don't know why. I just retried to upload the Blink sketch and it worked again.

But maybe someone can explain whats the "Flash write error -1" stands for ?!

Greetings
Christian
« Last Edit: November 13, 2014, 12:22:03 pm by KnutKnutsen »

BestSnowman

  • Newbie
  • *
  • Posts: 3
Re: Flash write error
« Reply #2 on: December 09, 2014, 05:16:51 pm »
Try a different USB port, I was having a similar problem but it appears the port I had been using was technically a hub not a root device and switching to a root port did the trick