Strange Photon Behavior After Flashing

Friends,

I have been having touble after flashing code to my photon. The device will go into safe mode (breathing magenta red and blue). Some times the issue will resolve itself and the divice will go to breathing cyan, but the code insnt responsive. And every once in a while it will go to rapidly flashing green after the orange,

Another issue I am having is happening when i press the RESET button while the device is breathing magenta. The device will continually flash cyan and blink orange intermittently. This same issues from This Post. The issue seemed to have resolved itself for a while, and i found a work around using particle update from the terminal CLI. But it has now come back with a vengeance.

If I let the device sit for a while it will breathe cyan eventually but the code is still unresponsive.

I am trying to flash the onboard led using the Blynk app, heres my code:

// This #include statement was automatically added by the Particle IDE.
#include <blynk.h>





char auth[] = "**OMITTED**";


void setup() {
    Blynk.begin(auth);
    
    delay(2000);
    
}

void loop() {
     Blynk.run();
     

    
  
}

What I have tried;

  • particle update/ flash tinker
    This works to temporarily but issues arise when flashing any other code
    -npm -g particle update cli
    -particle keys doctor
    -flashing different apps

any insight is greatly apprecitaed

particle update will put the most recent default system (currently 0.6.2) on your device. If you are flashing application firmware higher than that (e.g. targeted at 0.7.0-rc.3) the device will need updating again which is indicated by breathing magenta. And on WiFi devices this will be done automatically by Safe Mode Healer which will take some time.

So you better check what version you are actually targeting with your application firmware.

What IDE are you using?

1 Like

Thanks for your reply.

I am using the web IDE, doing a particle identify I get a system firmware version: 0.6.2.

Sometimes after the device has been off for a day or two, i have to do particle update twice in a row just to get it to a state where i can flash it.

Not sure if this is related but with tinker, the app does not allow me to control D7 (the embedded led), but does work for other digital pins. I have a from D3 to D7 that lets me flip the LED on and off