Author Topic: Oaks not updating  (Read 23253 times)

TravisF

  • Newbie
  • *
  • Posts: 14
Re: Oaks not updating
« Reply #15 on: February 22, 2016, 07:42:20 pm »
I just tried all my oaks again and they still won't download the firmware. My serial to USB adapter came in finally today so I'm trying the OakRestore but I'm running into a problem with that too. When I run the esptool command line it just gives a fatal error and says it couldn't connect to the ESP8266. Before it returns that I can see the LED on the adapter blinking like it is trying to talk to the Oak but then fails. I know the adapter is working because if I set the baud rate to 74880 and disconnect pin 2 from ground I get this: 
ets Jan  8 2013,rst cause:2, boot mode:(3,7)

load 0x40100000, len 3632, room 16
tail 0
chksum 0xc0
load 0x3ffe8000, len 352, room 8
tail 8
chksum 0x82
csum 0x82

OakBoot v1 - N,BU,0


But then when I connect pin 2 to ground and try running the esptool program it can't connect:
C:\Users\Travis\Desktop\restore>esptool --baud 115200 --port COM4 write_flash -fs 32m 0x1000 blank.bin 0x2000 oaksetup_restore.bin 0x0081000 oakupdate_restore.bin 0x101000 blank.bin 0x102000 blank.bin 0x202000 blank.bin
Connecting...

A fatal error occurred: Failed to connect to ESP8266
« Last Edit: February 22, 2016, 08:07:14 pm by TravisF »

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Re: Oaks not updating
« Reply #16 on: February 22, 2016, 08:37:52 pm »
Thanks for trying them again TravisF

A bad connection can cause that error, even if it is working to show the bootloader output - could be a bad USB TX to OAK RX connection (not used for boot message) or another one being flaky

TravisF

  • Newbie
  • *
  • Posts: 14
Re: Oaks not updating
« Reply #17 on: February 22, 2016, 08:47:47 pm »
The correct pin to ground is the one labeled RST, right? I went ahead and soldered the headers on all 3 of my oaks but I'm getting the same error with all of them

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Re: Oaks not updating
« Reply #18 on: February 22, 2016, 08:49:32 pm »
Pin 2 should go to GND - meaning the pin labeled P2 on the back of the Oak - right next to the P3/RX pin

TravisF

  • Newbie
  • *
  • Posts: 14
Re: Oaks not updating
« Reply #19 on: February 22, 2016, 09:01:30 pm »
OHHHHHHHHHHHHHHHHHHH

P2/SCL? I'll try that one now

It's flashing!

TravisF

  • Newbie
  • *
  • Posts: 14
Re: Oaks not updating
« Reply #20 on: February 22, 2016, 09:06:55 pm »
 ets Jan  8 2013,rst cause:2, boot mode:(3,0)

load 0x40100000, len 3632, room 16
tail 0
chksum 0xc0
load 0x3ffe8000, len 352, room 8
tail 8
chksum 0x82
csum 0x82

OakBoot v1 - N,BP,2

START UPDATE ROM
WIFI
WIFI CONNECT
GO TO UPDATE
START UPDATE
HOST LOOKUP OK
PARSING HTTP HEADER
HTTP/1.1 200 OK
FILE LENGTH: 778096
START WRITING UPDATE - NO OUTPUT SHOULD BE EXPECTED FOR UP TO 120 SECONDS
./+./+./+./+./+./+./+./+./+./+./+./+
Exception (28):
epc1=0x40103187 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000024 depc=0x00000000

ctx: cont
sp: 3fff1350 end: 3fff16f0 offset: 01a0

>>>stack>>>
3fff14f0:  3ffeb3ac 7fffffff 3ffeb3ac 00000001
3fff1500:  40104cc5 36363636 36363636 36363636
3fff1510:  00040000 00d960c2 505f2200 3ffeb37c
3fff1520:  4000050c 3fffc278 40104b48 3fffc200
3fff1530:  00000022 00000030 00000000 ffffffff
3fff1540:  4028293b 00000030 00000013 ffffffff
3fff1550:  40282938 0000002f 00000000 00000001
3fff1560:  fbf8ffff 04000002 3feffe00 00000100
3fff1570:  0000001a 00000018 04000102 00001000
3fff1580:  00001000 0000020d 0000000c 00000030
3fff1590:  3fff62e5 3fff1600 3fff2dd0 402995dc
3fff15a0:  8157e3f3 8e9b3ea3 dc312ff1 36aa44ed
3fff15b0:  5809fcee 00000000 3fff06d0 00005e3f
3fff15c0:  00000000 4000444e 40283e14 3fff06d0
3fff15d0:  00000000 400041bc 60000200 3fff57f0
3fff15e0:  00000100 40004b14 00001000 0020d000
3fff15f0:  00000100 3fff47f0 3fffc718 0020e000
3fff1600:  00001000 0000000f 401015f8 00001000
3fff1610:  3fff47f0 0000020d 0000000c 0000000f
3fff1620:  3fffc718 3fff47f0 00000000 401015fd
3fff1630:  0020d000 40282938 00001000 00001000
3fff1640:  3ffe9390 00000000 00002710 0000218d
3fff1650:  00000000 3fff2a40 3fff2d78 3fff2cf0
3fff1660:  0000000f 00000000 3fff2e98 0000002f
3fff1670:  00000001 00000001 40282c24 3fff045c
3fff1680:  000b1f70 00000000 00000001 00000000
3fff1690:  3fff47f0 00202000 00000202 40284dec
3fff16a0:  3ffe92d0 3fff06c8 3fff1740 3fff06c8
3fff16b0:  00003d34 3fff045c 3fff1740 402829fb
3fff16c0:  00003d34 3fff1740 3fff05b4 40282bca
3fff16d0:  3fffdc20 00000000 3fff06c0 40283e52
3fff16e0:  00000000 00000000 3fff06d0 40100114
<<<stack<<<

 ets Jan  8 2013,rst cause:2, boot mode:(3,0)

load 0x40100000, len 3632, room 16
tail 0
chksum 0xc0
load 0x3ffe8000, len 352, room 8
tail 8
chksum 0x82
csum 0x82

OakBoot v1 - E,BU,0

TravisF

  • Newbie
  • *
  • Posts: 14
Re: Oaks not updating
« Reply #21 on: February 22, 2016, 09:16:45 pm »
Tried again, this time it said this:

PARSING HTTP HEADER
HTTP/1.1 200 OK
FILE LENGTH: 778096
START WRITING UPDATE - NO OUTPUT SHOULD BE EXPECTED FOR UP TO 120 SECONDS
./+./+./+./+./+./+./+./+./+.SOCKET READ TIMEOUT
UPDATE FAILED

And a third time it just rebooted without saying anything:
PARSING HTTP HEADER
HTTP/1.1 200 OK
FILE LENGTH: 778096
START WRITING UPDATE - NO OUTPUT SHOULD BE EXPECTED FOR UP TO 120 SECONDS
./+./+./+./+./+./+./+./+./+./+./+
 ets Jan  8 2013,rst cause:4, boot mode:(3,0)

wdt reset
load 0x40100000, len 3632, room 16
tail 0
chksum 0xc0
load 0x3ffe8000, len 352, room 8
tail 8
chksum 0x82
csum 0x82

OakBoot v1 - H,BU,0

tcarleton

  • Newbie
  • *
  • Posts: 21
Re: Oaks not updating
« Reply #22 on: February 22, 2016, 10:04:45 pm »
(Posting my logs @ https://github.com/digistump/OakCore/issues/47)

One thing that sticks out to me -- The ./+./+ sequence is really inconsistent. Sometimes it crawls, sometimes it fills the line almost immediately.

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Re: Oaks not updating
« Reply #23 on: February 22, 2016, 10:33:01 pm »
Thank you both - I was able to duplicate this and I"m working on it now

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Re: Oaks not updating
« Reply #24 on: February 22, 2016, 10:52:16 pm »
If either of you can retest I'd be interested to know if it is working for you now - note you will need to re-download oakupdate_restore.bin from the repository

tdk337

  • Newbie
  • *
  • Posts: 3
Re: Oaks not updating
« Reply #25 on: February 23, 2016, 06:48:46 am »
When you say not updating I'm assuming you mean you received an error message while registering your Oak to Particle.io via webconfig tool located at http://rawgit.com/digistump/OakSoftAP/master/config.html. I've posted my solution at http://digistump.com/board/index.php/topic,1940.msg9203.html#msg9203.

TravisF

  • Newbie
  • *
  • Posts: 14
Re: Oaks not updating
« Reply #26 on: February 23, 2016, 07:58:56 am »
If either of you can retest I'd be interested to know if it is working for you now - note you will need to re-download oakupdate_restore.bin from the repository
I'll try it as soon as I get home tonight and report back here

TravisF

  • Newbie
  • *
  • Posts: 14
Re: Oaks not updating
« Reply #27 on: February 23, 2016, 08:00:19 am »
When you say not updating I'm assuming you mean you received an error message while registering your Oak to Particle.io via webconfig tool located at http://rawgit.com/digistump/OakSoftAP/master/config.html. I've posted my solution at http://digistump.com/board/index.php/topic,1940.msg9203.html#msg9203.
Our problem is the firmware won't even finish downloading. Not even making it to the point of it trying to contact particle. Also for what it's worth I've had zero luck running the config.html from github. I have to download it to my computer and run it locally.

eumb

  • Newbie
  • *
  • Posts: 3
Re: Oaks not updating
« Reply #28 on: February 23, 2016, 01:19:31 pm »
This is my attempt to update using http://rawgit.com/digistump/OakSoftAP/master/config.html

Serial log:


 ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x40100000, len 3632, room 16
tail 0
chksum 0xc0
load 0x3ffe8000, len 352, room 8
tail 8
chksum 0x82
csum 0x82

OakBoot v1 - N,BP,2


 ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x40100000, len 3632, room 16
tail 0
chksum 0xc0
load 0x3ffe8000, len 352, room 8
tail 8
chksum 0x82
csum 0x82

OakBoot v1 - N,BU,0



Oak is not updated.

I will attempt a force update and inform you how it goes

TravisF

  • Newbie
  • *
  • Posts: 14
Re: Oaks not updating
« Reply #29 on: February 23, 2016, 04:44:21 pm »
No change with the newest oakupdate_restore.bin, still getting the socket timeout
« Last Edit: February 23, 2016, 05:54:02 pm by TravisF »