Photon stuck after flashing a code

Hello
today I had the same error as with the Boron but with a Photon, in this case anyway without having performed errors in my skecht . I flashed the attached code and the control led on the Photon remained in the “flashing color magenta” but without blinking, then after a few minutes it appeared red blinks and then went back online without changing the code. So I tried to run a flash of tinker via mobile but without success. I managed to recover via usb with: particle flash --usb tinker -v and then particle update -v and again particle flash --usb tinker -v … Is there any imcompatibility of the libraries? Or out of memory due to the 4 libraries
Thanks Valentino

// This #include statement was automatically added by the Particle IDE.
#include "Adafruit_GFX.h"
#include "Adafruit_SSD1306.h"
#include <OneWire.h>
#include <DS18.h>
 
DS18 sensor(D4);
float TempV1;
Adafruit_SSD1306 display(-1);

void setup() {
    Serial.begin(9600);
    display.begin(SSD1306_SWITCHCAPVCC,0x3C);
    display.display();
    }
 
void loop() {
  if (sensor.read()) {
    Serial.println(sensor.celsius());
    TempV1=sensor.celsius();
    display.clearDisplay();
    display.setTextSize(1);
    display.setTextColor(WHITE);
    display.setCursor(10,0);
    display.print("Temp Vasca Pesci");
    display.setCursor(45,9);
    display.print("Chris");
    display.setCursor(0,20); 
    /*display.print("TV1I:");display.print(ImpTemp1,1);display.println("C");
    display.setCursor(65,20);
    display.print("TV2I:");display.print(ImpTemp2,1);display.println("C");*/
    display.setCursor(0,30);
    display.print("TV1:");display.print(TempV1,1);display.println("C");
    display.setCursor(65,30);
    //display.print("TV2:");display.print(steinhart2,1);display.println("C");
    //display.setCursor(0,55);
    //display.println(Ora);
    display.display();
    char data[16];
    snprintf(data, sizeof(data), "%.2f",TempV1);
    Particle.publish("Temp", data, PRIVATE, NO_ACK);
    //Particle.publish("temperature", String(sensor.celsius()), PRIVATE);
  }
  delay(1000);
}

So I tried to flash the skecht attached in the previous post, as follows:
particle flash --usb tinker -v
particle update -v
particle flash --usb tinker -v
and so it worked without giving errors but the question always remains why so?
Regards Valentino

I guess your device was still running an older device OS and when you flashed the new application it would have updated the device OS along with the application but not expecting that you may have inadvertently interfered with the process causing it to get stuck in some limbo state from which it couldn’t recover alone.

Always make sure your application is targeted at the correct device OS version and when you want to upgrade the device OS make sure to let the process (involving multiple device restarts) finish uninterrupted.

1 Like

Hello @ScruffR thanks for the reply, for your information I let the device do its process without interfering but I am not sure that even in the second test (after having already made an update) it behaved the same way.
I flashed the Version 00 code and then the Versione 01 code (the one attached) and it behaved exactly as described in my initial post not even being able to flash the tinker via mobile.
Regards Valentino