Author Topic: "Flash timeout - flash failed" from Arduino IDE  (Read 4589 times)

atkulp

  • Newbie
  • *
  • Posts: 22
"Flash timeout - flash failed" from Arduino IDE
« on: March 21, 2016, 06:30:43 pm »
After many attempts, I finally got my Oak on the network and registered with Particle.  I ran the oak CLI tool to link it to the account.  Now everything should be fine, but when I try to upload the simple LED blink sketch in the Arduino IDE (1.6.7) I just get Flash Timeout.  I've tried multiple times and restarted both the Oak and the Arduino IDE.  What should I do next?

atkulp

  • Newbie
  • *
  • Posts: 22
Re: "Flash timeout - flash failed" from Arduino IDE
« Reply #1 on: March 21, 2016, 08:57:22 pm »
I've been retrying every hour or so the past few hours.  Last time it worked.  Sigh.  Such reliability.   :-\

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Re: "Flash timeout - flash failed" from Arduino IDE
« Reply #2 on: March 21, 2016, 09:06:06 pm »
There is a fix for some flash timeout error coming in the next build of OakCLI - should have it out tomorrow at the latest.

Z69

  • Newbie
  • *
  • Posts: 28
Re: "Flash timeout - flash failed" from Arduino IDE
« Reply #3 on: March 21, 2016, 11:17:27 pm »
Hi atkulp

I had similar issues see post here - https://digistump.com/board/index.php/topic,2092.0.html
I had to do the restore 3x before i had success in uploading code

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Re: "Flash timeout - flash failed" from Arduino IDE
« Reply #4 on: March 22, 2016, 10:10:45 pm »
OakCLI 1.0.1 will be available shortly (within the next hour) with this corrected here: https://github.com/digistump/OakCLI/releases/tag/1.0.1

jharsem

  • Newbie
  • *
  • Posts: 3
Re: "Flash timeout - flash failed" from Arduino IDE
« Reply #5 on: March 23, 2016, 05:24:24 pm »
Hiya,

I had the same issue and was (sample size of 1) able to upload when I noticed that my was disconnecting from Particle.io before it tried to flash it (grab the Particle App - it's useful to monitor that but I guess you could log in to the particle device dashboard  - blue flashing dot means online).

I did update the Oak CLI app to 1.0.1 but that alone didn't seem to do it. I also had to remove and re-update my arduino board definitions for Oak. 

Also noted that there are two entries for  "Oak by Digistump" (one for 1.0.0 and one for 1.0.1) in the package_digistump_index.json but arduino seems to keep installing the 1.0.0 - even though my OakCLI is at 1.0.1.

My Oak has been online for the last 5 minutes without a hitch (presses thumbs). =) 

PeterF

  • Hero Member
  • *****
  • Posts: 881
Re: "Flash timeout - flash failed" from Arduino IDE
« Reply #6 on: March 23, 2016, 09:15:30 pm »
My Arduino IDE just allowed an update to v1.0.1, so might be worth checking again. When you open the board manager and scroll down to the Oak core (after the board manager has finshed downloading package updates, of course!), you should get an update button when you click on the Oak entry. You can also chose which version to install via the dropdown, if you need to revert to an earlier version, etc.

jharsem

  • Newbie
  • *
  • Posts: 3
Re: "Flash timeout - flash failed" from Arduino IDE
« Reply #7 on: March 24, 2016, 12:17:02 am »
My Arduino IDE just allowed an update to v1.0.1, so might be worth checking again. When you open the board manager and scroll down to the Oak core (after the board manager has finshed downloading package updates, of course!), you should get an update button when you click on the Oak entry. You can also chose which version to install via the dropdown, if you need to revert to an earlier version, etc.

100% correct - thank you =). Updating now.