Would be useful to me now. I am experiencing (apparently) random resets of my Photon, seemingly associated with wifi connection loss (green flashing). I am wondering if compiling with 0.4.5 would resolve my issue, as other threads suggest. However none of my code is currently uploaded to the web IDE.
In this case you might like to hear that we should be seeing 0.4.7 today (if everything goes to plan ;-))
This should solve especially some connection issues.
I see that 0.4.7 did indeed get released ;-)) - and looks like having some nice features.
I am using Devā¦
Built a simple app and tried to download - the Photon went to ābreathing magentaā. So - as I have no idea how long this would take, I went ahead and downloaded the 0.4.7 bin, then installed them :-
All seemed to go fine, and the box was again ābreathing cyanāā¦
Rebuilt my code and downloaded again (using Dev), and it starts ābreathing magentaā all over again.
SO - reverted to 0.4.6
particle flash --usb system-part1-0.4.6-photon.bin
particle flash --usb system-part2-0.4.6-photon.bin
and repeated the exercise - and we get magenta again - which is to be expected if we just built with 0.4.7 (as there seems no way to specify a version in Dev - NB I even went to Build and changed to 0.4.6 there = no change.
So - repeat the process - load up 0.4.7
Rebuild code again and try to upload itā¦and weāre ābreathing magentaā again
So I am left not knowing what to do to get rid of this ābreathing magentaā - once againā¦
Guess Iāll leave it doing its thing and grab some lunch (yup I am on UK time ;-). Lets see what we get in half an hour or so :-O.
I had hoped that this version would eliminate these upgrade issues !!.
Can someone please enlighten me as to what I am doing wrong - or not doing ???.
Yup it was selected in Dev, I did load the photon code - and here we are 45+ minutes and still ābreathing magentaā
Incidentally - Dev tells me its ābreathing cyanā but not sure I have ever seen magenta in Devā¦
From CLI particle list
NSL2 [xxxxx] (Photon) is online
So - any guide as to how long I leave it breathing magenta ??? - as I have seen it do this for ages previously :-O. I usually give up and flash from the binā¦
Sorry but this is too much of a black art - its doing something but I have no way of identifying what :(( - so all I have is guessworkā¦
NB I am VERY worried about what my product will do āin the fieldā. I have one currently running in the US (5000 miles away), and I will NEED to update it soon - but I dare not as I canāt quite reach the OFF button (from the UK)
I do hope that someone can shed some light on this pleaseā¦
Magenta for almost an hour now I have done typing thisā¦
OK so I just downloaded the bins again from GitHub and did a file compare (I use Notepad++) and they are identical, so maybe the bins are different between OTA and github ???.
Going forward, we will have the infrastructure to automatically update the device to the correct system firmware. Currently this process is only triggered from Build (WebIDE) - the new services will trigger this everywhere, plus provide more transparency and control.
Just a side note here.
AFAIK if you intend to downgrade to a previous version you'd need to do it in reverse order (first part2 then part 1).
The fact that you did it the other way round might contribute to the pickle you're in now.
Again AFAIK after flashing the upgrade parts 1 and 2, it's normal to breathe magenta till you actually also flash compatible application firmware, which I haven't read you doing in your initial post about 0.4.7.
And again AFAIK Particle Dev builds application firmware against the latest firmware (for the time being) but does not trigger an auto-update, hence your initial magenta (0.4.7 app FW trying to run on 0.4.6 system FW).
So despite you might well be sick of doing it over and over again try to flash Blinky (0.4.7) from Web IDE/Particle Build and check if you only get the fast flash magenta flash - indicating 0.4.7 already present - or if you see the three/four phase magenta-reboot-magenta (give it good 15min) and see if Blinky works.
BTW: When trying to build/flash Blinky from Web IDE you first need to press Fork this Example before you get the save/build buttons enabled.
OK so that is now completely different ;-)) - AND has worked.
So - I guess that the server issues have been fixed then ;-)).
When I went back to the web IDE - the āVerifyā button was now available (wasnāt earlier) and pressing Flash has a completely new feel :-O.
It now did indeed FLASH the leds (magenta) as opposed to ābreatheā, so it became apparent that it was indeed being updated (or seemed to be) over the web :-)).
Blinky is now running, so I will go back to my Dev and see if I can now build from there.
Many thanks to those who got the server sorted ;-)).
Thanks for brining these issues to our attention, and please understand that we are continually working to improve the experience, particularly with upgrading firmware.
Throws a compiler error - as you cannot pass a String into prinf !! - or sprintf or printlnf (all the same really).
Look forward to future features to make upgrades more seamless ;-)).
NB I use Dev as my primary compile interface, but then have to use CLI if I want to grab (and archive etc.) the bin files produced. Maybe Dev could include grabbing the bin - then archiving would be simpler and NOT need a further rebuild (ie call compile from CLI).
Are there any updates concerning compiling using the cloud?
@mdma, is there already a way to tell CLI to compile with certain firmware? Iām programming my electron with Particle Dev and using CAN functionality. However, in the current standard firmware (0.4.8) CAN isnāt enabled yet. Can I instruct CLI to use the latest firmware?