Author Topic: Oak on Particle Web IDE  (Read 4808 times)

pkourany

  • Newbie
  • *
  • Posts: 25
Oak on Particle Web IDE
« on: July 26, 2016, 09:07:05 am »
I noticed that my oaks are not only listing as devices in the Particle Web IDE but also showing available firmware.  The only problem is that only firmware v1.03 is listed.  I'm not sure this is an oversight and v1.05 is actually being used or if it truly v1.03.

Has anyone confirmed which version the IDE is serving?

PeterF

  • Hero Member
  • *****
  • Posts: 881
Re: Oak on Particle Web IDE
« Reply #1 on: July 26, 2016, 08:40:23 pm »
Holey Macaroni! The Build IDE compiles!

And ... bummer... it looks like it was a good way for b0rk an Oak... it tried to flash, said that it had failed as normal ("succeeded" in other words) and then promptly did nothing... and is drawing a grand total of 32ma... so something went terribly terribly wrong there. I'll restore it and try again just in case the test subject was last serial programmed (meaning it was likely to flunk the test regardless of if the IDE or Particle IDE programmed it).

emardee

  • Full Member
  • ***
  • Posts: 135
Re: Oak on Particle Web IDE
« Reply #2 on: July 26, 2016, 10:41:44 pm »
Be wary in case you are really getting v1.0.3 from it...

Might be worth flicking Erik an email to ask him if that is correct (he might not realise it has the wrong version uploaded!). He ought to be told if v1.0.3 is being offered somewhere as that is one of the broken releases!

My guess is that this "feature" (Particle IDE) is still in beta testing and isn't ready for the unwashed masses yet.... so play at your own risk. Anyone who isn't confident with serial restore, should wait until official announcements are made. Encouraging that it is clearly making progress though.... can't wait!

Mike

PeterF

  • Hero Member
  • *****
  • Posts: 881
Re: Oak on Particle Web IDE
« Reply #3 on: July 27, 2016, 12:19:45 am »
Well, I can say with certainty that it ain't a working version of 1.0.3 at that either ;) It does seem like a good way to get a non-responsive Oak... so some more testing is indeed needed ;) And an update to 1.0.5 to avoid all that loopy nastiness!

Regardless, a step in the right direction... so shouldn't be too long now! Compile and flash is working from the IDE... just it isn't compiling anything that wants to place nice!

PeterF

  • Hero Member
  • *****
  • Posts: 881
Re: Oak on Particle Web IDE
« Reply #4 on: July 29, 2016, 12:29:13 am »
It appears someone noticed that the firmware on Build wasn't the current one...  ;) It's now 1.0.5 prerelease, but still bricks my Oak with a simple blink sketch. So they just need to fix that bit!  ;D ;D

emardee

  • Full Member
  • ***
  • Posts: 135
Re: Oak on Particle Web IDE
« Reply #5 on: July 29, 2016, 01:39:34 am »
A while ago, wasn't Erik giving away free Oaks to people who could reliably and repeatably brick an OAK!  ;)  :P  (joke)

I can't wait for the Particle IDE to go live.... I'm never near the only machine I have with Arduino IDE installed... (I'm always on my work laptop which I can't install it on), so most of my OAK dabbling has been paused waiting for Particle IDE to be released... to let me upload from any computer without software installed. It's been a long wait.... hopefully nearly over now!

PeterF

  • Hero Member
  • *****
  • Posts: 881
Re: Oak on Particle Web IDE
« Reply #6 on: July 29, 2016, 02:37:31 am »
Only if you could then provide a patch that would prevent it from being bricked!  :o

Indeed, it looks so near yet to far.

If you can't install the Arduino IDE... can you run stuff as long as it doesn't need to be installed? i.e. a program installed on a flash drive, or one that can be run from a folder without installation, etc? Or is it really, really tightly locked down? If not, you might be able to 'side-load' the Arduino IDE by using a manual zip install, and avoiding other permission-related errors by running it in portable mode, so it will be essentially self-contained in the one folder.

emardee

  • Full Member
  • ***
  • Posts: 135
Re: Oak on Particle Web IDE
« Reply #7 on: July 29, 2016, 05:40:12 am »
I hadn't thought of that. Good idea. Portable install on a thumb drive might work.

Equally, I chose the Oaks so I can use the cloud to flash them, and if it really is imminent, I might just wait a few more days now. (but I'll keep your idea as a plan B in case Particle IDE take too long to get stable!)

I presume Erik is busy working on it all behind the scenes, but so frustrating to have no status updates.... (I hope he hasn't been abducted by aliens!)  :P  ;D

t4ce

  • Newbie
  • *
  • Posts: 5
Re: Oak on Particle Web IDE
« Reply #8 on: July 29, 2016, 09:26:27 am »
Within the particle web ide i can select 1.0.5 (prerelease) for all of my 3 oaks. I messed up 2 of them doing this:

1. log into build.particle.io
2. select an oak to flash (by clicking the star) and selecting the 1.0.5 firmware instead of "No firmware avaliable". (made error 500 go away)
3. flash a small example:
Code: [Select]
int test(String command){
    return 123;
}

void setup() {
    Particle.function("test", test);
}

void loop() {

}

Now the oaks do not enter my wifi, they dont broadcast ap and ofcourse i cant see them online with particle tools.
Is there anything i can do, to flash my oaks again?

By the way, how does the firmware thing work anyway? Is there a way to see the current firmware? How to install latest firmware for oaks?

PeterF

  • Hero Member
  • *****
  • Posts: 881
Re: Oak on Particle Web IDE
« Reply #9 on: July 29, 2016, 07:36:31 pm »
I noticed with mine they were consuming an odd amount of power, so assumed the firmware isn't quite right, and so they have crashed.

I can't remember if I bothered trying safe mode at all - I simply did a serial update of the firmware back to the current firmware version as per the serial update tutorial instructions. It was easy enough to do as my two test subjects have header pins on, and I leave the serial programming rig set up on a breadboard so I can just plug them in if they need fixing.

As far as the current firmware version, it is currently v1.0.5, but the version being used on Particle Build is pre-release, and Oak-breaking at present. If you follow the serial update instructions it tells you where to download the latest firmware file from.

I believe the idea behind the firmware selection on the Particle Build IDE is because they used a couple different ones - the tinker firmware that they use on their own boards to allow control from the Particle mobile apps, or the 'standard' version used for everything else. Once the system is up and running for us it will probably allow access to the current 1.0.5, and then future versions as they are released. 

PeterF

  • Hero Member
  • *****
  • Posts: 881
Re: Oak on Particle Web IDE
« Reply #10 on: July 31, 2016, 06:26:07 pm »
I decided to look a little closer at this, and see that when the Oak boots up, it immediately hits a fatal exception and doesn't get any further. The last two lines just keep repeating endlessly whilst the Oak is powered. And unfortunately, it seems to nuke safe mode whilst it's at it... so a forced serial firmware update is the best fix once you've sufficiently determined that you have a repeatable Oak brick case ;)

Code: [Select]
ets Jan  8 2013,rst cause:2, boot mode:(3,2)

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,8

Fatal exception (3):
epc1=0x4000df64, epc2=0x00000000, epc3=0x00000000, excvaddr=0x40201010, depc=0x00000000
Fatal exception (3):
epc1=0x4000df64, epc2=0x00000000, epc3=0x00000000, excvaddr=0x40201010, depc=0x00000000
Fatal exception (3):
epc1=0x4000df64, epc2=0x00000000, epc3=0x00000000, excvaddr=0x40201010, depc=0x00000000
Fatal exception (3):
epc1=0x4000df64, epc2=0x00000000, epc3=0x00000000, excvaddr=0x40201010, depc=0x00000000
Fatal exception (3):
epc1=0x4000df64, epc2=0x00000000, epc3=0x00000000, excvaddr=0x40201010, depc=0x00000000
...

For reference, here is the startup for the same Oak running v1.0.5 with a slightly modified blink sketch. As you can see, the OakBoot startup seems exactly the same, so nothing appears to be wrong there.

Code: [Select]
ets Jan  8 2013,rst cause:2, boot mode:(3,2)

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,8


Blink sketch starting

« Last Edit: July 31, 2016, 06:34:56 pm by PeterF »

emardee

  • Full Member
  • ***
  • Posts: 135
Re: Oak on Particle Web IDE
« Reply #11 on: August 02, 2016, 06:24:26 am »
Did everyone get the email from Particle today?

I'm assuming this is to announce their new features they shipped to the platform recently, (albeit these features that are still broken for Oaks... which prompted this thread!)

We really could do with an update from Erik, otherwise I foresee people following the email to try flashing firmware to their Oak via Particle IDE and bricking their device!

At least v1.0.5 is marked as pre-release in the Particle tool, so hopefully that will protect a few people!

Mike

PeterF

  • Hero Member
  • *****
  • Posts: 881
Re: Oak on Particle Web IDE
« Reply #12 on: August 02, 2016, 10:19:11 pm »
Yes, I got that email earlier also. Looks like the main 'new' feature is the console bit - as the integrations section has been live for more than few weeks now. The extra icon that has been added to do with product management is pretty much useless for us atm as the Oak isn't listed as a supported device. Also, the link has changed - its no longer https://dashboard.particle.io/user/devices, but https://console.particle.io/devices...