Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flash write error -1 has occurred #165

Open
anonymouspenguin000 opened this issue Feb 16, 2024 · 0 comments
Open

Flash write error -1 has occurred #165

anonymouspenguin000 opened this issue Feb 16, 2024 · 0 comments

Comments

@anonymouspenguin000
Copy link

I get the error "Flash write error -1" every time I try to upload to Digispark. Everything worked before, e.g. blinking led, leds in series, DigiKeyboard... I uploaded my code about 50-100 times. But suddenly even this empty code got unable to upload:

void setup() {}
void loop() {}

So I press "Upload" and then plug my Digispark. I get this output:

Sketch uses 302 bytes (5%) of program storage space. Maximum is 6012 bytes.
Global variables use 9 bytes of dynamic memory.
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.6
> Available space for user applications: 6012 bytes
> Suggested sleep time between sending pages: 8ms
> Whole page count: 94  page size: 64
> Erase function sleep duration: 752ms
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.

I tried to restart (and reinstall) the Arduino IDE, reboot my PC, switch USB port where I plug digispark, try from Windows (instead of Linux), I still get the same error.

Other details:
Arduino IDE v2.3.1
Manjaro (Arch) Linux x86
Board I've chosen:
Additional board manager URL
Board manager
Digispark Default 16.5MHz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant