Author Topic: (Solved) Flash timeout  (Read 5538 times)

Z69

  • Newbie
  • *
  • Posts: 28
(Solved) Flash timeout
« on: March 19, 2016, 10:10:06 am »
Any one that can point me as to what i need to do?
I am unable to upload any code to my OAK, does not matter the size of the code, i get the following:

Using config file at: C:\Users\XXXX\AppData\Roaming\oak\config.json
Sending file to cloud, to flash to device...
Flashing to: Test Unit (Device ID: abcdefghijklmnopqrstuvwx) - NOT my ID, but i have the correct id as per the ID in Particle

Flashing............................................................

Flash timeout - flash failed.

(Solved)
So i did the https://github.com/digistump/OakRestore again after installing particle on my phone to confirm that i do not have bad connection.
After the 3rd restore.... Joy..... i can now program my Oak.
Still have no idea why this did not work before, the serial info from the Oak did not point to any issue, but it took multiple restores to get it working.
« Last Edit: March 21, 2016, 03:38:32 am by Z69 »

jwhendy

  • Newbie
  • *
  • Posts: 44
Re: Flash timeout
« Reply #1 on: March 19, 2016, 10:52:58 am »
I was having these issues and couldn't get it to stop until I went through the OakRestore process, followed by re-setting up through SoftAP. One thing you could try is installing the partlcle app on your phone. I could see that my device no longer stayed online for more than a few minutes. You could use the particle dashboard as well, it's just that my phone was easy to keep refreshing quickly in the app. I'd unplug/plug it in, constantly refresh the app, it would come online, and then disappear within minutes.

I believe my flashing was failing since my device dropped out before it received the update.

You could also try curl to make sure it's being seen by particle (device_id and access_token available from build.particle.io)?

Code: [Select]
curl "https://api.particle.io/v1/devices/device_id_goes_here?access_token=access_token_goes_here"

If should spit back some info with the key ones being "connected" (should be true) and "status" (normal). Hope that helps a little...

For what it's worth, when I had this behavior, restoring fixed it.

Z69

  • Newbie
  • *
  • Posts: 28
Re: Flash timeout
« Reply #2 on: March 19, 2016, 11:01:21 am »
Hi jwhendy

My device is seen by particle, it shows the device id and the device id has a flashing blue dot that show connected when i hover the mouse pointer over it.
I have done the oakrestore a few times and it  show success every time, but the result when programming it is always the same....  Flash timeout - flash failed.

When i upload code, the OAK led starts to flash.
I have looked at the signal strength of the connection on my router and it looks good, TX and RX @ 54Mb

jwhendy

  • Newbie
  • *
  • Posts: 44
Re: Flash timeout
« Reply #3 on: March 19, 2016, 11:03:51 am »
Silly question, but you set the device using oak_cli, correct?

Has it ever worked and now it's failing, or this is your first attempt on this device?

Z69

  • Newbie
  • *
  • Posts: 28
Re: Flash timeout
« Reply #4 on: March 19, 2016, 11:22:21 am »
Yes, i did do the oak cli.
I had partial success with 0.94 with the basic test code, it worked for a while, but i could never upload anything else.
Since updating the firmware to 0.95 and using Arduino 1.6.5, i have not been able to load any code.

I can see the unit downloading as the on-board led start to flash when i upload the code, but it always fail on time-out.
the on-board led flash for a long time after i get the time-out error

I am about to try a 3rd AP, old linksys, to see if i get a different result... my AP's are all ASUS units.

FYI - Same issue with my old Linksys AP.
Not sure if this is an issue, but i am located in South Africa, internet is a but crappy here compared to USA and Europe...
Can it be that due to my location i have "long" delays and exceed the timeout of Particle???
« Last Edit: March 19, 2016, 11:35:21 am by Z69 »

Z69

  • Newbie
  • *
  • Posts: 28
Re: Flash timeout
« Reply #5 on: March 20, 2016, 01:01:54 pm »
So i have updated to "firmware_1.bin" as per 192.168.0.1/info and still the same error.
Is there a log file that i can have a look at to see what is going on?
I feel like i am blind at the moment

Z69

  • Newbie
  • *
  • Posts: 28
Re: Flash timeout
« Reply #6 on: March 21, 2016, 01:50:39 am »
Hi jwhendy

I loaded the Particle app on my phone and checked to see if it disconnects.
After 30 min. it was still online, phone and web indicate the same status, but i still get flash timeout

emardee

  • Full Member
  • ***
  • Posts: 135
Re: (Solved) Flash timeout
« Reply #7 on: March 21, 2016, 04:29:36 am »
Does your firmware version on the oak, match the Oak zip file version you have downloaded into arduino ide?

The reason I ask, is that you mention 0.9.5 but wondering if the timing is such that you updated after v1.0.0 was soft released... but before docs and instructions came out. If you ran the update after anytime in last 9 days or so, you are probably on v1.0.0 and should download the zip file to match.

You might need to remove all the 0.9.5 stuff from arduino ide to be sure no old files remain....